118
Rabbit 3000 Microprocessor
9.3 Parallel Port C
Parallel Port C, shown in Table 9-6, has four inputs and four outputs. The even-numbered ports, PC0, PC2,
PC4, and PC6, are outputs. The odd-numbered ports, PC1, PC3, PC5, and PC7, are inputs. When the data
register is read, bits 1,3,5,7 return the value of the voltage on the pin. Bits 0,2,4,6 return the value of the
signal driving the output buffers. The signal driving the output buffers and the value of the output pin are
normally the same. Either the Port C data register is driving these pins or one of the serial port transmit lines
is driving the pin. The bits set in the PCFR Parallel Port C Function Register identify whether the data
register or the serial port transmit lines were driving the pins.
Parallel Port C shares its pins with serial ports A-D. The parallel port inputs can be config-
ured as serial port inputs while the dedicated outputs as serial port outputs.
When serving as serial inputs, the data lines can still be read from the Parallel Port C data
register. The parallel port outputs can be selected to be serial port outputs by setting the
corresponding bit positions in the Port C Function register (PCFR). When a parallel port
output pin is selected to be a serial port output, the value stored in the data register is
ignored.
On reset the active (even-numbered) function register bits are zeroed resulting in Port C to
behave as an I/O port. Bit 6 of the Port C data register is zeroed while the remaining even
numbered bits are set to 1.
Table 9-5. Parallel Port C Registers
Register Name
Mnemonic
I/O address
R/W
Reset
Port C Data Register
PCDR
0x50
R/W
x1x1x1x1
Port C Function Register
PCFR
0x55
W
x0x0x0x0
Table 9-6. Parallel Port C register bit functions
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PCDR (r)
adr = 050h
PC7 in
Echo
drive
PC5 in
Echo
drive
PC3 in
Echo
drive
PC1 in
Echo
drive
PCDR (w)
adr = 050h
x
PC6
x
PC4
x
PC2
x
PC0
PCFR (w)
adr = 055h
x
Drive
TXA
x
Drive
TXB
x
Drive
TXC
x
Drive
TXD
Содержание 3000
Страница 1: ...Rabbit 3000 Microprocessor User s Manual 019 0108 020426 A...
Страница 8: ...Rabbit 3000 Microprocessor...
Страница 28: ...20 Rabbit 3000 Microprocessor...
Страница 73: ...User s Manual 65 6 RABBIT INTERNAL I O REGISTERS...
Страница 122: ...114 Rabbit 3000 Microprocessor...
Страница 138: ...130 Rabbit 3000 Microprocessor...
Страница 150: ...142 Rabbit 3000 Microprocessor...
Страница 188: ...180 Rabbit 3000 Microprocessor...
Страница 208: ...200 Rabbit 3000 Microprocessor...
Страница 228: ...220 Rabbit 3000 Microprocessor...
Страница 232: ...224 Rabbit 3000 Microprocessor...
Страница 238: ...230 Rabbit 3000 Microprocessor...
Страница 260: ...252 Rabbit 3000 Microprocessor...
Страница 266: ......