Datasheet
REV. 0
ADuC831
–9–
PIN FUNCTION DESCRIPTIONS
Mnemonic Type Function
DV
DD
PDigital Positive Supply Voltage, 3 V or 5 V Nominal
AV
DD
PAnalog Positive Supply Voltage, 3 V or 5 V Nominal
C
REF
IDecoupling Input 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. This pin can be overdriven by an external 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 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 SPI 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.
PWMC I PWM Clock Input
PWM0 O PWM0 Voltage Output. PWM outputs can be configured to use ports 2.6 and 2.7, or 3.4 and 3.3.
PWM1 O PWM1 Voltage Output. See CFG831 Register for further information.
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 Enabled.
A low-to-high transition on this input puts the track-and-hold into its hold mode and starts conversion.
WR OWrite Control Signal, Logic Output. Latches the data byte from Port 0 into the external data memory.
RD ORead 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.