User`s manual

User’s Manual 137
A.5 I/O Address Assignments
Table A-4 lists the external I/O address assignments.
Table A-4. Display and Keypad I/O Addresses
External Address Signal Name Function
PBDR (Write) PB7 Port Pin
0 = LED off, 1 = LED on
PB7-Up_Good LCD indicator
PBDR (Read) PB5
serial data from device
PB5_ADC_SDO Data from A/D converter or touchscreen
PDDR (Write) PD3
0 = ADC chip selected,
1 = touchscreen chip selected
/PD3_ADC_CS CS for A/D converter or touchscreen
PEDR (Write) PE0
clock data to device on 0/1 trans.
PE0_ADC_SK CLK for A/D converter or touchscreen
PEDR (Write) PE1
serial data to the device
PE1_ADC_SDI Data to A/D converter or touchscreen
PBDR (Read) PB4
0 = touchscreen active,
1 = touchscreen not active
/PB4_TSC_PIRQ Touchscreen status
PADR (Read) PA0–PA7 port pins IN0–IN7 Digital inputs IN0–IN7
0x8000 (Read) D0–D7 data lines IN8–IN15 Digital inputs IN8–IN15
0x8000–0x8007 (Write)
0 = driver enabled,
1 = driver disabled
SINK0–SINK7 Sinking driver control lines
0x8008–0x800F (Write)
0 = driver enabled,
1 = driver disabled
SOURCE0–
SOURCE7
Sourcing driver control lines
0xA000 (Read) Data line D5,
0 = key active, 1 = no active keys
K0 Keypad row 0
0xA000 (Read) Data line D6,
0 = key active, 1 = no active keys
K1 Keypad row 1
0xA000 (Read) Data line D7,
0 = key active, 1 = no active keys
K2 Keypad row 2
0xA000 (Write)
1 = assert key scan line,
0 = deassert key scan line
/KB-S0 Keypad column 0
0xA001 (Write)
1 = assert key scan line,
0 = deassert key scan line
/KB-S1 Keypad column 1
0xA002 (Write)
1 = assert key scan line,
0 = deassert key scan line
/KB-S2 Keypad column 2
0xA003 (Write)
1 = assert key scan line,
0 = deassert key scan line
/KB-S3 Keypad column 3