Port 2 - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00

9.1.1.3 Port 2

Port 2 is an 8-bit I/O port that you can use in two ways:
General-purpose I/O
Alternative function
Port 2 is accessed directly by writing or reading the port 2 data register, P2, at location E2H, Set1 Bank0.
9.1.1.3.1 Port 2 Control Register (P2CONH, P2CONL)
Port 2 pins are configured individually by setting bit-pair in two control registers located at P2CONL (low byte,
E9H, Set1 Bank0) and P2CONH (high byte, E8H, Set1 Bank0).
When you select the output mode, a push-pull circuit is configured. In the input mode, pull-up resistor can be
configured as on or off. Different selections are available such as:
Input mode
Output mode (Push-pull, Open-drain)
Alternative function: ADC – ADC0-ADC7 analog input
Alternative function: CMP2 – CMP2_N
Alternative function: CMP3 – CMP3_N
9-9
9 I/O PORTS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents