Rabbit 4000 Microprocessor User's Manual |
8. Parallel Port A
8.1 Overview
Parallel Port A is a byte-wide port that can be used as an input or an output port. Parallel Port A is also used as the data bus for the slave port and auxiliary I/O bus. The Slave Port Control Register (SPCR) is used to configure how Parallel Port A is used. Parallel Port A is an input at startup or reset. If the SMODE pins have selected the slave port bootstrap mode, Parallel Port A will be the slave port data bus until disabled by the processor. Parallel Port A can also be used as an external I/O data bus to isolate external I/O from the main data bus.
Table 8-1. Parallel Port A Pin Alternate Output Functions
8.1.1 Block Diagram
8.1.2 Registers
Port A Data Register
8.2 Dependencies
8.2.1 I/O Pins
Parallel Port A uses pins PA0 through PA7. These pins can be used as follows.
- General-purpose 8-bit data input (write 0x080 to SPCR)
- General-purpose 8-bit data output (write 0x084 to SPCR)
- Slave port data bus (write 0x088 to SPCR)
- Data bus of the auxiliary I/O bus (write 0x08C to SPCR)
All Parallel Port A bits are inputs at startup or reset.
See the associated peripheral chapters for details on how they use Parallel Port A.
8.2.2 Clocks
Any outputs on Parallel Port A are clocked by the peripheral clock.
8.2.3 Other Registers
SPCR
Used to set up Parallel Port A.
8.2.4 Interrupts
There are no interrupts associated with Parallel Port A.
8.3 Operation
The following steps explain how to set up Parallel Port A.
- Select the desired mode using SPCR.
- If the slave port or auxiliary I/O bus is selected, refer to the chapters for those peripherals for further setup.
Once Parallel Port A is set up, data can be read or written by accessing PADR. Note that Parallel Port A is not available for general-purpose I/O while the slave port or the auxiliary I/O bus is selected. Selecting these options for Parallel Port A affects Parallel Port B because Parallel Port B is then used for address and control signals.
8.4 Register Descriptions
Rabbit Semiconductor www.rabbit.com |