Table of Contents
1.0 General Description ......................................................................................................................... 1
2.0 Features ........................................................................................................................................ 1
3.0 Applications .................................................................................................................................... 1
4.0 Block Diagram ................................................................................................................................ 1
5.0 Ordering Information ........................................................................................................................ 2
6.0 Pin Assignments ............................................................................................................................. 2
7.0 Signal Descriptions .......................................................................................................................... 5
7.1 TERMINATION OF UNUSED SIGNALS ...................................................................................... 6
8.0 Application Example ........................................................................................................................ 7
8.1 FEATURES ............................................................................................................................. 7
9.0 Clocks ........................................................................................................................................... 8
9.1 INTERNAL EXECUTION CYCLE ............................................................................................... 8
9.2 BUFFERED CLOCK ................................................................................................................. 8
9.3 CLOCK CONFIGURATION ....................................................................................................... 9
10.0 Reset ......................................................................................................................................... 10
10.1 EXTERNAL RESET .............................................................................................................. 10
10.2 POWER-ON RESET (POR) ................................................................................................... 10
10.3 PIN CONFIGURATION AFTER RESET ................................................................................... 10
10.4 DEVICE CONFIGURATION AFTER RESET ............................................................................ 11
10.5 CONFIGURATION INPUTS ................................................................................................... 11
10.6 INITIALIZATION ................................................................................................................... 11
10.7 INITIALIZATION EXAMPLE ................................................................................................... 13
11.0 Halt Mode ................................................................................................................................... 13
11.1 ACCESS.bus ACTIVITY ........................................................................................................ 13
12.0 Keypad Interface ......................................................................................................................... 14
12.1 EVENT CODE ASSIGNMENT ................................................................................................ 14
12.2 KEYPAD SCAN CYCLES ...................................................................................................... 14
12.2.1 Timing Parameters ..................................................................................................... 15
12.2.2 Multiple Key Pressings ................................................................................................ 15
12.3 EXAMPLE KEYPAD CONFIGURATION .................................................................................. 15
13.0 General-Purpose I/O Ports ............................................................................................................ 16
13.1 USING THE CONFIG_X PINS FOR GPIO ............................................................................... 17
13.2 GPIO TIMING ...................................................................................................................... 17
14.0 PWM Output Generation ............................................................................................................... 18
14.1 COMMAND QUEUE ............................................................................................................. 18
14.2 PWM TIMER OPERATION .................................................................................................... 18
14.3 PWM SCRIPT COMMANDS .................................................................................................. 19
14.4 RAMP COMMAND ............................................................................................................... 20
14.5 SET_PWM COMMAND ......................................................................................................... 20
14.6 GO_TO_START COMMAND ................................................................................................. 20
14.7 BRANCH COMMAND ........................................................................................................... 20
14.8 END COMMAND .................................................................................................................. 21
14.9 TRIGGER COMMAND .......................................................................................................... 21
14.10 PWM SCRIPT EXAMPLE .................................................................................................... 21
14.10.1 PWM Channel 0 Script .............................................................................................. 22
14.10.2 PWM Channel 1 Script .............................................................................................. 22
14.10.3 PWM Channel 2 Script .............................................................................................. 22
14.11 SELECTABLE SCRIPT EXAMPLE ........................................................................................ 23
15.0 Digital Multiplexers ....................................................................................................................... 24
16.0 Host Interface ............................................................................................................................. 25
16.1 START AND STOP CONDITIONS .......................................................................................... 25
16.2 CONTINUOUS COMMAND STRINGS .................................................................................... 25
16.3 DEVICE ADDRESS .............................................................................................................. 25
16.4 HOST WRITE COMMANDS .................................................................................................. 25
16.5 HOST READ COMMANDS .................................................................................................... 26
16.6 INTERRUPTS ...................................................................................................................... 26
16.7 INTERRUPT CODE .............................................................................................................. 27
16.8 ERROR CODE ..................................................................................................................... 27
16.9 WAKE-UP FROM HALT MODE .............................................................................................. 27
17.0 Host Commands .......................................................................................................................... 29
17.1 READ_ID COMMAND ........................................................................................................... 30
17.2 WRITE_CFG COMMAND ...................................................................................................... 30
17.3 READ_INT COMMAND ......................................................................................................... 31
17.4 RESET COMMAND .............................................................................................................. 31
3 www.national.com
300136 Version 7 Revision 2 Print Date/Time: 2011/10/04 16:24:29
LM8322