![Rabbit Rabbit 4000 User Manual Download Page 89](http://html1.mh-extra.com/html/rabbit/rabbit-4000/rabbit-4000_user-manual_3116714089.webp)
79
9.2.4 Interrupts
There are no interrupts associated with Parallel Port B.
9.3 Operation
The following steps must be taken before using Parallel Port B.
1. Select the desired input/output direction for each pin via PBDDR. Note that this setting
is superseded for some pins if the slave port or auxiliary I/O bus is enabled in SPCR or
if the clocked serial mode is enabled for serial ports A or B.
2. If the slave port or the auxiliary I/O bus is selected, refer to the chapters for those
peripherals for further setup information.
Once the port is set up, data can be read or written by accessing PBDR. The value in
PBDR of an output pin will reflect its current output value, but any value written to an
input pin will not appear until that pin becomes an output.
9.4 Register Descriptions
Parallel Port B Data Register
(PBDR)
(Address = 0x0040)
Bit(s)
Value
Description
7:0
Read
The current state of Parallel Port B pins PB7–PB0 is reported.
Write
The Parallel Port B buffer is written with this value for transfer to the Parallel
Port B output register on the next rising edge of the peripheral clock.
Parallel Port B Data Direction Register
(PBDDR)
(Address = 0x0047)
Bit(s)
Value
Description
7:0
0
The corresponding port bit is input.
1
The corresponding port bit is an output.
Summary of Contents for Rabbit 4000
Page 1: ...Rabbit 4000 Microprocessor User s Manual 019 0152 070720 H...
Page 18: ...8 Rabbit 4000 Microprocessor User s Manual...
Page 40: ...30 Rabbit 4000 Microprocessor User s Manual...
Page 74: ...64 Rabbit 4000 Microprocessor User s Manual...
Page 82: ...72 Rabbit 4000 Microprocessor User s Manual...
Page 86: ...76 Rabbit 4000 Microprocessor User s Manual...
Page 96: ...86 Rabbit 4000 Microprocessor User s Manual...
Page 182: ...172 Rabbit 4000 Microprocessor User s Manual...
Page 240: ...230 Rabbit 4000 Microprocessor User s Manual...
Page 248: ...238 Rabbit 4000 Microprocessor User s Manual...
Page 256: ...246 Rabbit 4000 Microprocessor User s Manual...
Page 310: ...300 Rabbit 4000 Microprocessor User s Manual...
Page 330: ...320 Rabbit 4000 Microprocessor User s Manual...
Page 348: ...338 Rabbit 4000 Microprocessor User s Manual...