![Digi Rabbit 5000 User Manual Download Page 95](http://html1.mh-extra.com/html/digi/rabbit-5000/rabbit-5000_user-manual_2496192095.webp)
Chapter 9 Parallel Port B
95
9.2.4 Interrupts
There are no interrupts associated with Parallel Port B, except when the slave port is being
used.
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 external 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 external 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 on that pin 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 an input.
1
The corresponding port bit is an output.
Summary of Contents for Rabbit 5000
Page 1: ...Rabbit 5000 Microprocessor User s Manual 019 0168_E...
Page 11: ...Table of Contents Appendix B Rabbit 5000 Errata 401 B 1 Errata 401 Index 405...
Page 12: ...Rabbit 5000 Microprocessor User s Manual...
Page 20: ...20 Rabbit 5000 Microprocessor User s Manual...
Page 36: ...36 Rabbit 5000 Microprocessor User s Manual...
Page 56: ...56 Rabbit 5000 Microprocessor User s Manual...
Page 92: ...92 Rabbit 5000 Microprocessor User s Manual...
Page 104: ...104 Rabbit 5000 Microprocessor User s Manual...
Page 122: ...122 Rabbit 4000 Microprocessor User s Manual...
Page 142: ...142 Rabbit 5000 Microprocessor User s Manual...
Page 214: ...214 Rabbit 5000 Microprocessor User s Manual...
Page 228: ...228 Rabbit 5000 Microprocessor User s Manual...
Page 280: ...280 Rabbit 5000 Microprocessor User s Manual...
Page 298: ...298 Rabbit 5000 Microprocessor User s Manual...
Page 306: ...306 Rabbit 5000 Microprocessor User s Manual...
Page 314: ...314 Rabbit 5000 Microprocessor User s Manual...
Page 368: ...368 Rabbit 5000 Microprocessor User s Manual...
Page 388: ...388 Rabbit 5000 Microprocessor User s Manual...
Page 396: ...396 Rabbit 5000 Microprocessor User s Manual...
Page 404: ...404 Rabbit 5000 Microprocessor User s Manual...