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