s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 241

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
PORT MODE FLAGS (PM FLAGS)
Port mode flags (PM) are used to configure I/O ports to input or output mode by setting or clearing the corresponding
I/O buffer.
For convenient program reference, PM flags are organized into six groups — PMG1, PMG2, PMG3, PMG4, PMG5
and PMG6 as shown in Table 10-3. They are addressable by 8-bit write instructions only.
When a PM flag is "0", the port is set to input mode; when it is "1", the port is enabled for output. RESET clears all
port mode flags to logical zero, automatically configuring the corresponding I/O ports to input mode.
NOTE:
+
Configure ports 0 and 2 as an output port:
PM Group ID
PROGRAMMING TIP — Configuring I/O Ports to Input or Output
PMG1
PMG2
PMG3
PMG4
PMG5
PMG6
If bit = "0", the corresponding I/O pin is set to input mode. If bit = "1", the pin is set to output mode: PM0.0 for P0.0,
PM0.1 for P0.1, etc,. All flags are cleared to "0" following RESET.
BITS
SMB
LD
LD
Address
FEAH
FEBH
FECH
FEDH
FEEH
FEFH
FE2H
FE3H
FE6H
FE7H
FE8H
FE9H
EMB
15
EA,#0FFH
PMG1,EA
Table 10-3. Port Mode Group Flags
PM10.3
PM11.3
PM12.3
PM13.3
PM0.3
PM2.3
PM3.3
PM6.3
PM7.3
PM8.3
PM9.3
Bit 3
"0"
; P0 and P2
PM10.2
PM11.2
PM12.2
PM13.2
PM0.2
PM2.2
PM3.2
PM4.2
PM6.2
PM7.2
PM8.2
PM9.2
Bit 2
Output
PM10.1
PM11.1
PM12.1
PM13.1
PM0.1
PM2.1
PM3.1
PM4.1
PM6.1
PM7.1
PM8.1
PM9.1
Bit 1
PM10.0
PM11.0
PM12.0
PM13.0
PM0.0
PM2.0
PM3.0
PM4.0
PM6.0
PM7.0
PM8.0
PM9.0
Bit 0
I/O PORTS
10-3

Related parts for s3c72m9