S1C17W03/S1C17W04 ADC12A Sample Software Copyright(C) SEIKO EPSON CORPORATION 2016. All rights reserved. History - 28 May, 2015 rev1.0.0 Newly developed. - 16 Dec, 2015 rev1.1.0 Add GNU17v3 project. - 19 Jan, 2016 rev1.1.1 Change GNU17v3 project file. ----------------------------------------------------------------------------- 1. Folder Configuration s1c17w03_w04_adc12a_sample |_ inc_w03 Header file for S1C17W03 |_ inc_w04 Header file for S1C17W04 |_ s1c17w03_w04_adc12a_gnu17v2 Sample project for GNU17v2 |_ s1c17w03_w04_adc12a_gnu17v3 Sample project for GNU17v3 2. Sample Software Specification This sample software executes the processing shown below using the 12-bit A/D converter embedded in the microcontroller. - Executes A/D conversion in one-time conversion mode - Executes A/D conversion in continuous conversion mode - Executes A/D conversion with 16-bit timer underflow trigger - Executes A/D conversion with software trigger 3. Hardware Requirements This sample software use P35 and P34 for ADIN00 and ADIN01, respectively, as analog signal input. See technical manual of the microcontroller on connection between the microcontroller and external devices. 4. Behavior 1) Executes A/D conversion 3 times in one-time conversion mode with 16-bit timer underflow trigger. 2) Executes A/D conversion once in one-time conversion mode with software trigger. 3) Executes A/D conversion 12 times in continuous conversion mode with software trigger. 5. Adjustment This sample software includes GNU17v2.x and GNU17v3.x source code. Before using the sample software, follow instructions below to adjust the sample software either to GNU17v2.x or GNU17v3.x used. 1)Copy the header files for each model to sample software's [inc] folder. For example,if the target is [S1C17W03], copy the [c17w03_reg.h] file and [reg] folder under[inc_w03] subfolder into [inc] subfolder in the sample software's [s1c17w03_w04_adc12a_gnu17vx] folder. 2)Open Import Wizard to import this sample program into workspace. [File] > [Import] > [General] > [Existing Projects into Workspace] 3)Select the folder containing the sample program. For GNU17v2.x, select "s1c17w03_w04_adc12a_gnu17v2" project. For GNU17v3.x, select "s1c17w03_w04_adc12a_gnu17v3" project. 4)Check "Copy projects into workspace" and click "Finish" to import. This sample software includes header files defining peripheral circuit control registers of both S1C17W03 and S1C17W04. Before using the sample software, follow instructions below to adjust the sample software either to S1C17W03 or S1C17W04 used. 1) Select target CPU, which is in one of property when [Properties] is selected from project of the sample software. 2) Set the Debugger Startup Commands for the microcontroller on [GNU17 GDB Commands] dialog box, which is one of the property lists. Click [Create commands from template], select ICDmini for [Debugger], and [Overwrite] the command file for GNU17v2.x. 3) Select microcontroller used at upper portion in init.h. As to configurations on GNU17 in detail, refer to S5U1C17001C Manual. EOF