Download Print this page

Seg30/P5.6 - Samsung S3C8248 User Manual

8-bit cmos

Advertisement

I/O PORTS
PORT 5
Port 5 is an 8-bit I/O port with individually configurable pins. Port 5 pins are accessed directly by writing or
reading the port 5 data register, P5 at location FBH in set 1, bank 0. P5.0–P5.7 can serve as inputs (with without
pull-ups), as output (open drain or push-pull). And, they can serve as segment pins for LCD also.
Port 5 Control Registers
Port 5 has two 8-bit control registers: P5CONH for P5.4–P5.7 and P5CONL for P5.0–P5.3. A reset clears the
P5CONH and P5CONL registers to "00H", configuring all pins to input mode.
9-14
Port 5 Control Register, High Byte
EEH, Set 1, Bank 1, R/W
MSB
.7
.6
.5
P5.6/SEG30
P5.7/SEG31
P5CONH bit-pair pin configuration settings
00
Input mode
01
Input mode, pull-up
10
Opendrain output mode
11
Output mode, push-pull
NOTE: If LCD is enabled by LCON.7, SEG signal go out
otherwise port 5 I/0 can be selected.
Figure 9-14. Port 5 High-Byte Control Register (P5CONH)
S3C8248/C8245/P8245/C8247/C8249/P8249
.4
.3
.2
.1
P5.4/SEG28
P5.5/SEG29
.0
LSB

Advertisement

loading

This manual is also suitable for:

C8245P8245C8249C8247P8249