ADUC845BCP8-5 Analog Devices, ADUC845BCP8-5 Datasheet - Page 74
![no-image](/images/manufacturer_photos/0/0/56/analog_devices_sml.jpg)
ADUC845BCP8-5
Manufacturer Part Number
ADUC845BCP8-5
Description
MicroConverter Multichannel 24-/16-Bit ADCs with Embedded 62 kB Flash and Single-Cycle MCU
Manufacturer
Analog Devices
Datasheet
1.ADUC845BCP8-5.pdf
(108 pages)
- Current page: 74 of 108
- Download datasheet (2Mb)
ADuC845/ADuC847/ADuC848
P2.5 and P2.6 can also be used as PWM outputs, while P2.7 can
act as an alternate PWM clock source. When selected as the
PWM outputs, they overwrite anything written to P2.5 or P2.6.
Table 47. Port 2 Alternate Functions
Pin No.
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
Port 3
Port 3 is a bidirectional port with internal pull-ups directly
controlled via the P3 SFR (B0H). Port 3 pins that have 1s
written to them are pulled high by the internal pull-ups and, in
that state, can be used as inputs. As inputs, Port 3 pins pulled
externally low source current because of the internal pull-ups.
Port 3 pins with 0s written to them drive a logic low output
voltage (V
have various secondary functions as described in Table 48. The
alternate functions of Port 3 pins can be activated only if the
corresponding bit latch in the P3 SFR contains a 1. Otherwise,
the port pin remains at 0.
Table 48. Port 3 Alternate Functions
Pin No.
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
TO LATCH
INTERNAL
LATCH
WRITE
READ
READ
BUS
PIN
OL
Alternate Function
SCLOCK for SPI
MOSI for SPI
MISO for SPI
SS and T2 clock input
T2EX alternate control for T2
PWM0 output
PWM1 output
PWMCLK
Alternate Function
RxD (UART input pin, or serial data I/O in Mode 0)
TxD (UART output pin, or serial clock output in Mode 0)
INT0 (External Interrupt 0)
INT1 (External Interrupt 1)
T0 (Timer/Counter 0 external input)
T1 (Timer/Counter 1 external input)
WR (external data memory write strobe)
RD (external data memory read strobe)
) and are capable of sinking 4 mA. Port 3 pins also
Figure 50. Port 2 Bit Latch and I/O Buffer
LATCH
CL
D
Q
Q
ADDR
CONTROL
DV
DD
DV
DD
INTERNAL
PULL-UP
P2.x
PIN
Rev. A | Page 74 of 108
Read-Modify-Write Instructions
Some 8051 instructions read the latch while others read the pin.
The instructions that read the latch rather than the pins are the
ones that read a value, possibly change it, and rewrite it to the
latch. These are called read-modify-write instructions, which
are listed in Table 49. When the destination operand is a port or
a port bit, these instructions read the latch rather than the pin.
Table 49. Read-Modify-Write Instructions
Instruction
ANL
ORL
XRL
JBC
CPL
INC
DEC
DJNZ
MOV PX.Y, C
CLR PX.Y
SETB PX.Y
___________________________________________
1
and write the new byte back to the latch.
Read-modify-write instructions are directed to the latch rather
than to the pin to avoid a possible misinterpretation of the
voltage level of a pin. For example, a port pin might be used to
drive the base of a transistor. When 1 is written to the bit, the
transistor is turned on. If the CPU reads the same port bit at the
pin rather than the latch, it reads the base voltage of the
transistor and interprets it as Logic 0. Reading the latch rather
than the pin returns the correct value of 1.
These instructions read the port byte (all 8 bits), modify the addressed bit,
INTERNAL
TO LATCH
LATCH
1
WRITE
READ
READ
1
BUS
PIN
1
Figure 51. Port 3 Bit Latch and I/O Buffer
Description
Logical AND, for example, ANL P1, A
Logical OR, for example, ORL P2, A
Logical EX-OR, for example, XRL P3, A
Jump if Bit = 1 and clear bit, for example, JBC
P1.1, LABEL
Complement bit, for example, CPL P3.0
Increment, for example, INC P2
Decrement, for example, DEC P2
Decrement and jump if not zero, for example,
DJNZ P3, LABEL
Move Carry to Bit Y of Port X
Clear Bit Y of Port X
Set Bit Y of Port X
LATCH
D
CL
Q
Q
ALTERNATE
ALTERNATE
FUNCTION
FUNCTION
OUTPUT
INPUT
DV
DD
INTERNAL
PULL-UP
P3.x
PIN
Related parts for ADUC845BCP8-5
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ADUC845](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
MicroConverter Multichannel 24-/16-Bit ADCs with Embedded 62 kB Flash and Single-Cycle MCU
Manufacturer:
Analog Devices
Datasheet:
![REF195G](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Devices -
Manufacturer:
Analog Devices
Datasheet:
![AD539S](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Devices [Wideband Dual-Channel Linear Multiplier/Divider]
Manufacturer:
Analog Devices
Datasheet:
![AD9873](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Front End Converter for Set-top Box, Cable Modem, and Other Broadband Communication Applications
Manufacturer:
Analog Devices
Datasheet:
![AN342](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Signal Handling for High Speed and Accuracy,
Manufacturer:
Analog Devices
![ADUC7126](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, Large Memory, ARM7TDMI MCU with Enhanced IRQ Handler
Manufacturer:
Analog Devices
Datasheet:
![ADUC7124](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, Large Memory, ARM7TDMI MCU with Enhanced IRQ Handler
Manufacturer:
Analog Devices
Datasheet:
![ADUC7122](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI® MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7023](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7029](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7121](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7028](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7019](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7020](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet: