Table 5-1. Rabbit Pin Descriptions
Pin Group
|
Pin Name
|
Direction
|
Function
|
Pin Numbers
|
Hardware
|
CLK
|
Output
|
Peripheral clock output. This signal is derived internally from the main system oscillator as perclk, and may be divided by 8, doubled, or both, by programmable internal circuitry. This signal is enabled after reset. Under program control, this pin can output the full internal clock frequency, or 1/2 the internal frequency, or it can be used as a general-purpose output pin under software control. See Table 7-4, "Global Output Control Register (GOCR = 0x0E)."
|
1
|
/RESET
|
Input
|
Master reset.
|
37
|
XTALA1
|
Input
|
Quartz crystal for 32 kHz clock oscillator. Lines to the crystal should be short and shielded from crosstalk. If an external clock is used, this pin should be driven by the external clock.
|
40
|
XTALA2
|
Output
|
Quartz crystal for 32 kHz crystal oscillator. Do not connect if an external clock is used.
|
41
|
XTALB1
|
Input
|
Quartz crystal for main system oscillator. Lines to the crystal should be short and shielded from crosstalk. If an external clock is used this pin should be driven by the external clock.
|
90
|
XTALB2
|
Output
|
Quartz crystal for main system oscillator. Do not connect if an external clock is used.
|
91
|
CPU Buses
|
A0-A19
|
Output
|
Address bus.
|
7, 17-20, 61-68, 70-75, 79
|
D0-D7
|
Bidirectional
|
Data bus.
|
9-16
|
Status/ Control
|
/WDTOUT
|
Output
|
WDT timeout--outputs a pulse when the internal watchdog times out. May also be used to output a 30 µs pulse.
|
34
|
Status
|
STATUS
|
Output
|
Programmable for functions: 1. driven low on first opcode fetch cycle 2. driven low during interrupt acknowledge cycle 3. to serve as a general-purpose output. See Table 7-4, "Global Output Control Register (GOCR = 0x0E).".
|
38
|
Status
|
SMODE1 SMODE0
|
Input
|
Startup mode select (SMODE1 = pin 35, SMODE0 = pin 36) to determine bootstrap procedure. (SMODE1 = 0, SMODE0 = 0) start executing at address zero. (0,1) cold boot from slave port. (1,0) cold boot from clocked serial port A. (1,1) cold boot from asynchronous serial port A at 2400 bps. The SMODE pins can be used as general input pins once the cold boot is complete.
|
35-36 (1:0)
|
Chip Selects
|
/CS0
|
Output
|
Memory Chip Select 0--connects directly to static memory chip select pin. Normally this pin is used to select base flash memory that holds the program.
|
8
|
/CS1
|
Output
|
Memory Chip Select 1--normally this pin is connected directly to static RAM chip select. /CS1 can be optionally forced continuously low under software control, a feature that aids in the use of battery-backed RAM when the chip select must pass through a controller that may have a slow propagation time.
|
5
|
/CS2
|
Output
|
Memory Chip Select 2--connect to static memory chip. Use this chip select last.
|
4
|
Output Enables
|
/OE0
|
Output
|
Memory Output Enable 0--connect directly to static memory chip.
|
6
|
/OE1
|
Output
|
Memory Output Enable 1--alternate memory output enable allows chip selects to be shared between two memory chips.
|
76
|
Write Enables
|
/WE0
|
Output
|
Memory Write Enable 0--connect directly to static memory chip. This pin may be disabled under software control to write protect the chip.
|
69
|
/WE1
|
Output
|
Memory Write Enable 1--connect directly to static memory chip. This pin may be disabled under software control to write protect the chip.
|
80
|
I/O Control
|
/BUFEN
|
Output
|
I/O Buffer Enable--this signal is driven low during an external I/O cycle and may be used to control 3-state enable on the bus buffer. The purpose is to save power by not driving the I/O address or data lines on every bus cycle.
|
33
|
I/O Read Strobe
|
/IORD
|
Output
|
I/O read strobe. Driven low on an external I/O read bus cycle. May be used to drive glue logic concerned with I/O expansion, such as the direction pin on a bidirectional bus buffer. See also programmable strobes in port E.
|
32
|
I/O Write Strobe
|
/IOWR
|
Output
|
I/O write strobe. Driven low as a write strobe during external I/O write cycles. Is enabled by the I/O bank control register. See also programmable strobes in port E.
|
31
|
I/O Port A
|
PA0-PA7
|
Input/ Output
|
These 8 bits serve as general-purpose input output or they serve as the data port for the slave port. On reset these pins are set to inputs and they float.
|
81-88
|
I/O Port B
|
PB0-PB7
|
6 In/2 Out
|
I/O Port B. When used as parallel I/O, PB7 and PB6 are outputs only. PB0-PB5 are inputs only.
PB0 and PB1 can be outputs when set up as the clock for the clocked serial ports. On reset, the outputs are set to zero. If the slave port is enabled, the following alternate assignments apply:
PB7--/SLAVEATTN: slave requests attention.
PB5, PB4--address lines (SA1, SA0) for slave registers.
PB3--slave negative read strobe from master.
PB2--slave negative write strobe from master.
If serial port A is enabled in clocked mode, then PB1 is the bidirectional clock line. If serial port B is enabled in clocked mode, then PB0 is the bidirectional clock line.
|
93-100
|
I/O Port C
|
PC0-PC7
|
4 In/4 Out
|
I/O Port C. When used as a parallel port, bits 1, 3, 5, 7 are inputs and bits 0, 2, 4, 6 are outputs. Bits 0, 2, 4, 6 can alternately be selectively enabled to serve as the serial data output for serial ports D, C, B, A respectively. Bits 1, 3, 5, 7 serve as the serial data inputs for serial ports D, C, B, A. These inputs can also be read from the parallel port register when they are being used by the serial port UART.
|
51, 54-60
|
I/O Port D
|
PD0-PD7
|
Input/ Output/ output open drain
|
I/O Port D. Each bit may be individually selected to be an input or output. Each output may be selected to be high-low drive or open drain. Outputs are buffered by timer-synchronizable registers for precision edge control. PD6 can be programmed to be an optional serial output for serial port A. PD4 can be programmed to be an optional serial output for serial port B. PD7 and PD5 can be used as alternate serial inputs by serial ports A and B, in which case these pins should be programmed as inputs.
|
43-50
|
I/O Port E
|
PE7-PE0
|
Input/ Output
|
I/O Port E. Each bit may be individually selected to be an input or output. Outputs are buffered by timer-synchronizable registers for precision edge control. Each of the port lines can be individually selected to be an I/O control signal instead of a parallel I/O line. Each of the 8 possible I/O control signals is a strobe energized on an external I/O cycle to 1/8th of the 64K external I/O space. Each strobe can be programmed to be a chip select, a write strobe, a read strobe or a combined read and write strobe. Any port bit used as an I/O control strobe must be programmed as an output bit. If the slave port is enabled, PE7 is used as the slave register chip select signal (negative active). PE7 should be programmed as an input for the slave register chip select function to work. If PE7 is programmed as an output and set low, then the slave register chip select will always be activated. PE0 and PE4 serve as alternate inputs for external interrupt 0. PE1 and PE5 serve as alternate inputs for external interrupt 1. If PE0 is enabled, then PE1 must also be enabled and similarly for PE4 and PE5. The interrupt is triggered in software on fall, rising or both edges. If both interrupts are enabled, they are or'ed together after edge detection has been performed on each input individually. The port bits must be set up as inputs for the to use them as interrupt request inputs.
|
21-26, 29, 30
|
Power
|
VBAT
|
|
+3.0 V (battery backup), +3.3 V or +5.0 V
|
42
|
VDD
|
|
+3.3 V or +5.0 V
|
3, 28, 53, 78, 92
|
VSS
|
|
Ground
|
2, 27, 39, 52, 77, 89
|
Serial Ports
|
CLKA
|
Input/ Output
|
Clock for serial port A when operating in synchronous mode. Alternate assignment for PB1.
|
94
|
CLKB
|
Input/ Output
|
Clock for serial port B when operating in synchronous mode. Alternate assignment for PB0.
|
93
|
RXA, TXA, RXB, TXB, RXC, TXC, RXD, TXD
|
RX--input
TX--output
|
Serial inputs and output for serial ports A-D. These are alternate pin assignments for parallel port C.
|
51, 54-60
|
ARXA, ATXA, ARXB, ATXB
|
RX--input
TX--output
|
Alternate serial inputs and output for serial ports A and B. These are alternate pin assignments for parallel port D, PD4-PD7.
|
43-46
|
Slave Port
|
SD0-SD7
|
Bidirectional
|
Slave port data bus. An alternate assignment for parallel port A.
|
81-88
|
/SLAVEATTN
|
Output
|
/SLAVEATTN--Slave is requesting attention from the master. An alternate pin assignment for parallel port B, bit 7.
|
100
|
/SRD
|
Input
|
Strobe used to read one of the slave registers. An alternate pin assignment for parallel port B, bit 3.
|
96
|
/SWR
|
Input
|
Strobe used to write a slave register. An alternate pin assignment for parallel port B, bit 2.
|
95
|
SA0, SA1
|
Input
|
Address lines to address slave registers. An alternate pin assignment for parallel port B, bits 4 and 5.
|
97,98
|
/SCS
|
Input
|
Chip select for slave port, active low. An alternate pin assignment for parallel port E, bit 7.
|
21
|
I/O Strobes
|
/I0,/I1,
/I2, /I3,
/I4, /I5,
/I6, /I7
|
Outputs
|
I/O strobes. Each strobe uses 1/8th of the I/O space or 8K addresses. Each strobe can be programmed as: chip select, read, write, combined read or write. These are alternate pin assignment for parallel port E, bits 0-7. Each pin may be individually re-assigned from parallel port to strobe functionality.
|
21-26, 29, 30
|
External Interrupt 0
|
INT0A, INT0B
|
Inputs
|
These pins are sampled and an interrupt request for external interrupt number 0 is latched on a specified transition (pos, neg, either). There is a separate latch for each pin. May be enabled when this pin is set up as input for parallel port E. The value of the pin may also be read via the parallel port. Uses bits 0, 4 of the parallel port. If parallel port is set up as output, the parallel port output may be used to cause the interrupt.
|
24, 30
|
External Interrupt 1
|
INT1A, INT1B
|
Inputs
|
These pins are sampled and an interrupt request for external interrupt number 1 is latched on a specified transition (pos, neg, either). There is a separate latch for each pin. May be enabled when this pin is set up as input for parallel port E. The value of the pin may also be read via the parallel port. Uses bits 1, 5 of the parallel port. If parallel port is set up as output, the parallel port output may be used to cause the interrupt.
|
23, 29
|