Samsung S3C84I8 User Manual page 241

Table of Contents

Advertisement

I/O PORTS
PORT 2
Port 2 is an 8-bit I/O port with individually configurable pins. Port 2 pins are accessed directly by writing or reading
the port 2 data register, P2 at location E2H in set 1, bank 0. P2.0–P2.7 can serve as digital inputs, outputs (push
pull) or you can configure the following alternative functions:
— General-purpose digital I/O
— Alternative function: ADC4, ADC7, SI, T1CAP0, T1OUT0, T1CK0, TBPWM, PWM
Port 2 Control Register (P2CONH, P2CONL)
Port 2 has two 8-bit control registers: P2CONH for P2.4–P2.7 and P2CONL for P2.0–P2.3. A reset clears the
P2CONH and P2CONL registers to "00H", configuring all pins to input mode. You use control registers settings to
select input or output mode (push-pull) and enable the alternative functions.
When programming the port, please remember that any alternative peripheral I/O function you configure using the
port 2 control registers must also be enabled in the associated peripheral module.
Port 2 Pull-up control Registers (P2PUR)
Using the port 2 pull-up control register, P2PUR (FA, SET1,BANK0), you can configure pull-up resistors to
individual port 0 pins.
9-8
Port 1 Interrupt Enable Register (P1INT)
EBH, Set1, Bank0, R/W, Reset value="00H"
MSB
.7
.6
[.7-.6] P1.3's Interrupt Enable/Disable Selection Bit
0X = Disable Interrupt
10 = Enable Interrupt; Falling Edge
11 =
Enable Interrupt; Rising Edge
[.5-.4] P1.2s Interrupt Enable/Disable Selection Bit
0X = Disable Interrupt
10 = Enable Interrupt; Falling Edge
11 =
Enable Interrupt; Rising Edge
[.3-.2] P1.1's Interrupt Enable/Disable Selection Bit
0X = Disable Interrupt
10 = Enable Interrupt; Falling Edge
11 =
Enable Interrupt; Rising Edge
[.1-.0] P1.0's Interrupt Enable/Disable Selection Bit
0X = Disable Interrupt
10 = Enable Interrupt; Falling Edge
11 =
Enable Interrupt; Rising Edge
Figure 9-5. Port 1 Interrupt Enable Register (P1INT)
.5
.4
.3
.2
S3C84I8/F84I8/84I9/F84I9
.1
.0
LSB

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c84i9S3f84i8S3f84i9

Table of Contents