REV. 0
ADuC812
–6–
PIN FUNCTION DESCRIPTIONS
Mnemonic Type Function
DV
DD
P Digital Positive Supply Voltage, +3 V or +5 V nominal.
AV
DD
P Analog Positive Supply Voltage, +3 V or +5 V nominal.
C
REF
I Decoupling pin for on-chip reference. Connect 0.1 µF between this pin and AGND.
V
REF
I/O Reference Input/Output. This pin is connected to the internal reference through a series resistor and is the
reference source for the analog-to-digital converter. The nominal internal reference voltage is 2.5 V and this
appears at the pin (once the ADC or DAC peripherals are enabled). This pin can be overdriven by an exter-
nal reference.
AGND G Analog Ground. Ground Reference point for the analog circuitry.
P1.0–P1.7 I Port 1 is an 8-bit Input Port only. Unlike other Ports, Port 1 defaults to Analog Input Mode, to configure
any of these Port Pins as a digital input, write a “0” to the port bit. Port 1 pins are multifunction and share
the following functionality.
ADC0–ADC7 I Analog Inputs. Eight single-ended analog inputs. Channel selection is via ADCCON2 SFR.
T2 I Timer 2 Digital Input. Input to Timer/Counter 2. When Enabled, Counter 2 is incremented in response to
a 1 to 0 transition of the T2 input.
T2EX I Digital Input. Capture/Reload trigger for Counter 2 and also functions as an Up/Down control input for
Counter 2.
SS I Slave Select input for the SPI interface.
SDATA I/O User selectable, I
2
C-Compatible Input/Output pin or SPI Data Input/Output pin.
SCLOCK I/O Serial Clock pin for I
2
C-Compatible or SPI serial interface clock.
MOSI I/O SPI Master Output/Slave Input Data I/O pin for SPI interface.
MISO I/O Master Input/Slave Output Data I/O pin for SPI Serial Interface.
DAC0 O Voltage Output from DAC0.
DAC1 O Voltage Output from DAC1.
RESET I Digital Input. A high level on this pin for 24 master clock cycles while the oscillator is running resets the
device.
P3.0–P3.7 I/O Port 3 is a bidirectional port with internal pull-up resistors. Port 3 pins that have 1s written to them are
pulled high by the internal pull-up resistors, and in that state they can be used as inputs. As inputs Port 3
pins being pulled externally low will source current because of the internal pull-up resistors. Port 3 pins also
contain various secondary functions which are described below.
RxD I/O Receiver Data Input (asynchronous) or Data Input/ Output (synchronous) of serial (UART) port.
TxD O Transmitter Data Output (asynchronous) or Clock Output (synchronous) of serial (UART) port.
INT0 I Interrupt 0, programmable edge or level triggered Interrupt input, which can be programmed to one of two
priority levels. This pin can also be used as a gate control input to Timer 0.
INT1 I Interrupt 1, programmable edge or level triggered Interrupt input, which can be programmed to one of two
priority levels. This pin can also be used as a gate control input to Timer 1.
T0 I Timer/Counter 0 Input.
T1 I Timer/Counter 1 Input.
CONVST I Active low Convert Start Logic input for the ADC block when the external Convert start function is en-
abled. A low-to-high transition on this input puts the track/hold into its hold mode and starts conversion.
WR O Write Control Signal, Logic Output. Latches the data byte from Port 0 into the external data memory.
RD O Read Control Signal, Logic Output. Enables the external data memory to Port 0.
XTAL2 O Output of the inverting oscillator amplifier.
XTAL1 I Input to the inverting oscillator amplifier and input to the internal clock generator circuits.
DGND G Digital Ground. Ground reference point for the digital circuitry.
P2.0–P2.7 I/O Port 2 is a bidirectional port with internal pull-up resistors. Port 2 pins that have 1s written to them are
(A8–A15) pulled high by the internal pull-up resistors, and in that state they can be used as inputs. As inputs Port 2
(A16–A23) pins being pulled externally low will source current because of the internal pull-up resistors. Port 2 emits
the high order address bytes during fetches from external program memory and middle and high order
address bytes during accesses to the external 24-bit external data memory space.
PSEN O Program Store Enable, Logic Output. This output is a control signal that enables the external program
memory to the bus during external fetch operations. It is active every six oscillator periods except during
external data memory accesses. This pin remains high during internal program execution. PSEN can also be
used to enable serial download mode when pulled low through a resistor on power-up or RESET.