Samsung KS57C2308 Manual page 212

Single-chip cmos microcontroller
Table of Contents

Advertisement

I/O PORTS
Port
I/O
0
I
1
I
2
I/O
3
I/O
4, 5
I/O
6, 7
I/O
8
O
Instruction Type
1-bit test
1-bit input
4-bit input
8-bit input
1-bit output
4-bit output
8-bit output
10-2
Table 10-1. I/O Port Overview
Pins
Pin Names
4
P0.0–P0.3
4
P1.0–P1.3
4
P2.0–P2.3
4
P3.0–P3.3
8
P4.0–P4.3
P5.0–P5.3
8
P6.0–P6.3
P7.0–P7.3
8
P8.0–P8.7
Table 10-2. Port Pin Status During Instruction Execution
Example
BTST
P0.1
Input or test data at each pin
LDB
C,P1.3
LD
A,P0
LD
EA,P4
BITR
P2.3
Output latch contents undefined
LD
P2,A
Transfer accumulator data to the
LD
P6,EA
output latch
Address
FF0H
4-bit input port.
1-bit and 4-bit read and test are possible.
P0.1 and P0.2 are software configurable as
input or output for
register.
4-bit pull-up resistors are software assignable.
FF1H
4-bit input port.
1-bit and 4-bit read and test are possible.
4-bit pull-up resistors are software assignable.
FF2H
4-bit I/O port.
1-bit and 4-bit read/write and test is possible.
4-bit pull-up resistors are software assignable.
FF3H
4-bit I/O Port.
1-bit and 4-bit read/write and test are possible.
4-bit pull-up resistors are software assignable.
Each pin is individually software configurable
as input or output.
FF4H
4-bit I/O port. Each pin can be set to N-channel
FF5H
open-drain output, up to 5 volts. 1-, 4-, and 8-
bit read/write/test are possible. Ports 4 and 5
can be paired to support 8-bit data transfer.
Pull-up resistors are software assignable; pull-
up resistor are automatically disable for output.
FF6H
4-bit I/O port. Port 6 pins are individually
FF7H
software configurable as input or output. 1-,
and 4-bit read/write/test are possible. 4-bit
pull-up resistors are software assignable. Ports
6 and 7 can be paired for 8-bit data transfer.
1F8H–1FFH
Output port for 1-bit data (for use as CMOS
driver only)
Input Mode Status
KS57C2308/P2308/C2316/P2316
Function Description
and SO by SMOD
SCK
Output Mode Status
Input or test data at output latch
Output pin status is modified
Transfer accumulator data to the
output pin

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents