LM8322EVALKIT National Semiconductor, LM8322EVALKIT Datasheet - Page 28

no-image

LM8322EVALKIT

Manufacturer Part Number
LM8322EVALKIT
Description
BOARD EVALUATION LM8322
Manufacturer
National Semiconductor
Datasheet

Specifications of LM8322EVALKIT

Main Purpose
Interface, Special Purpose
Embedded
No
Utilized Ic / Part
LM8322
Primary Attributes
Mobile I/O Companion with Key-Scan, I/O Expansion, PWM, Access.bus Host
Secondary Attributes
Board has MCU for USB to PC GUI
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
www.national.com
17.0 Host Commands
READ_PORT_SEL
READ_PORT_STA
WRITE_PORT_SE
WRITE_PULL_DO
WRITE_PORT_ST
RPT_READ_FIFO
SET_DEBOUNCE
READ_KEY_SIZE
SET_KEY_SIZE
WRITE_CLOCK
READ_ERROR
READ_CLOCK
PWM_WRITE
PWM_START
SET_ACTIVE
WRITE_CFG
PWM_STOP
READ_FIFO
READ_CFG
READ_INT
READ_ID
Function
RESET
ATE
WN
TE
L
0x8A
0x8B
0x8C
Cmd
0x80
0x81
0x82
0x83
0x84
0x85
0x86
0x87
0x88
0x89
0x8F
0x90
0x91
0x92
0x93
0x94
0x95
0x96
0x97
Dir
W
W
W
W
W
W
W
W
W
W
W
W
R
R
R
R
R
R
R
R
R
R
Up to 15 event
Up to 15 event
Data Bytes
nnnn nnnn
pppp pppp
nnnn nnnn
nnnn nnnn
nnnn nnnn
nnnn nnnn
pppp pppp
nnnn nnnn
pppp pppp
nnnn nnnn
pppp pppp
nnnn nnnn
pppp pppp
nnnn nnnn
pppp pppp
nnnn nnnn
nnnn nnnn
nnnn nnnn
nnnn pppp
nnnn pppp
nnnn nnnn
nnnn nnnn
nnnn nnnn
aaaa aann
pppp pppp
qqqq qqqq
aaaa aann
0000 00nn
codes
codes
28
Read the manufacturer code (nnnn nnnn) and the device
revision number (pppp pppp).
Write the hardware configuration register.
Read the interrupt code, deassert the IRQ output, and clear
the code. (If the NOINIT bit is set, it remains set and IRQ
remains asserted until a WRITE_CFG command is received.
Reset the LM8322. Error if nnnn nnnn is not 0xAA.
Select pullup (0) or pulldown (1) direction for the
corresponding general-purpose I/O (GPIO) port pins.
Select input (0) or output (1) for the corresponding general-
purpose I/O (GPIO) port pins.
For pins configured as inputs, 0 selects high-impedance
mode and 1 enables a weak pullup. For pins configured as
outputs, each bit specifies the logic level driven on the pin.
Read the direction of the corresponding GPIO port pins.
Read the state on the corresponding GPIO port pins.
Read an event from the FIFO.
Maximum of 14 event codes stored in the FIFO.
Repeats a FIFO read without advancing the FIFO pointer,
for example to retry a read after an error.
Set the time during which the LM8322 stays active before
entering Halt mode. The active time must be greater than the
debounce time. The default time is 500 milliseconds. The
valid range is 1255. Active time = n × 4 milliseconds.
Read and clear the error code.
Set the time for rescanning the keypad after detecting a key-
press or key-release event to verify the event. The default
time is 12 milliseconds. The valid range is 1255. Debounce
time = n × 4 milliseconds and must not exceed active time.
Set keypad size. nnnn = KP-Xx pins, pppp = KP-Yx pins
Read keypad size. nnnn = KP-Xx pins, pppp = KP-Yx pins
Read the hardware configuration register.
Write the clock configuration register.
Read the clock configuration register.
Write a command to the PWM script command file.
nn = PWM channel number (01, 10, or 11)
aaaaaa = address in script command file (059)
pppp pppp = high byte of script command
qqqq qqqq = low byte of script command
Start script on channel nn (01, 10, or 11) at address aaaaaa.
Stop script on channel nn (01, 10, or 11).
Description

Related parts for LM8322EVALKIT