| Electronic Components Datasheet Search |
|
GPES216B2 Datasheet(PDF) 5 Page - Generalplus Technology Inc. |
|
|
|||||||||||||||||||||||||||||
GPES216B2 Datasheet(HTML) 5 Page - Generalplus Technology Inc. |
|
5 / 14 page ![]() GPES216B2 © Generalplus Technology Inc. Proprietary & Confidential 5 JAN. 06, 2009 Version: 1.1 5. FUNCTIONAL DESCRIPTIONS 5.1. Instruction Sets Nine instructions involve LD, JP, LSR, ADD, SUB, AND, ORR, EOR, and END. “LD” represents LOAD and “JP” indicates JUMP. “LSR” shifts a register’s value one bit to the right. “ADD” and “SUB” are addition and subtraction. “AND”, “ORR” and “EOR” are logical operations which indicate AND, OR and, Exclusive OR respectively. “END” ends program and enters into sleep mode for power saving purpose. 5.2. I/O Description GPES II has the following I/O pins: TG1, TG2, TG3, TG4, STOP [0:7]. The TG1, TG2, TG3 and TG4 are input pins and STOP [0:7] are output pins; moreover, STOP [6:7] can be shared with LED drive pins. PIN Configuration TG1 Input TG2 Input TG3 Input TG4 Input STOP.0 Output STOP.1 Output STOP.2 Output STOP.3 Output STOP.4 Output STOP.5 Output STOP.6 Output (shared with LED2 pin) STOP.7 Output (shared with LED1 pin) 5.3. Program Structure Overview The following description is an overview of GPES II program structure. For more information about GPES II programming method, please refer to GPES II Programming Guide. 5.3.1. Definition area The beginning of a program is the Definition Area that defines some declarations before Initialization such as IC body, variable, frequency, debounce time and low voltage reset option. 5.3.1.1. IC body The first element defined in a program is a GPES II body. Example: SPES216B ;select SPES216B EXT_CLK_4M Freq4 ;Set default speech ;sample frequency to 7.8K LVR_DISABLE ... POI: ... ... 5.3.1.2. Debounce A key debounce time can be defined in Definition Area. The range of debounce time is 5ms ~ 35ms. 5.3.1.3. Variable A variable can be defined by adding a “#define” in front of a variable. A variable can be the combination of numbers and characters, but not underscore. Variable Syntax: #define VariableName <Register | NUM> Example1: #define var R0 ;define var as R0 Example2: #define const 8 ;define const as 8 5.3.1.4. External clock Users can define one external clock out of the following selections in a program. This option must be defined in definition area. EXT_CLK_3M; (3.0MHz) EXT_CLK_4M; (4.0MHz) EXT_CLK_6M; (6.0MHz) |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |