100
Rabbit 2000 Microprocessor
9.1 Parallel Port A
Parallel Port A has a single read/write register.
This register should not be used if the slave port is enabled.
The slave port control register is used to control whether Parallel Port A is an output or an
input. To make the port an input, store 0x080 in the SPCR (slave port control register). To
make the port an output, store 0x084 in SPCR. Parallel Port A is set up as an input port on
reset.
When the port is read, the value read reflects the voltages on the pins, "1" for high and "0"
for low. This could be different than the value stored in the output register if the pin is
forced to a different state by an external voltage.
Table 9-1. Parallel Port A Registers
Register Name
Mnemonic
I/O address
R/W
Reset
Port A Data Register
PADR
0x30
R/W
xxxxxxxx
Slave Port Control Register
SPCR
0x24
R/W
0xx00000
Table 9-2. Parallel Port A Data Register Bit Functions
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PADR (R/W)
adr = 0x030
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
Содержание 2000
Страница 1: ...Rabbit 2000 Microprocessor User s Manual 019 0069 041018 M...
Страница 12: ...6 Rabbit 2000 Microprocessor...
Страница 46: ...40 Rabbit 2000 Microprocessor...
Страница 54: ...48 Rabbit 2000 Microprocessor...
Страница 76: ...70 Rabbit 2000 Microprocessor...
Страница 96: ...90 Rabbit 2000 Microprocessor...
Страница 142: ...136 Rabbit 2000 Microprocessor...
Страница 154: ...148 Rabbit 2000 Microprocessor...
Страница 170: ...164 Rabbit 2000 Microprocessor...
Страница 174: ...168 Rabbit 2000 Microprocessor...
Страница 180: ...174 Rabbit 2000 Microprocessor...
Страница 202: ...196 Rabbit 2000 Microprocessor...
Страница 206: ...200 Rabbit 2000 Microprocessor...
Страница 226: ......
Страница 230: ...224 Rabbit 2000 Microprocessor...