st2024c Sitronix Technology Corporation, st2024c Datasheet - Page 18

no-image

st2024c

Manufacturer Part Number
st2024c
Description
24k 8-bit Single Chip Microcontroller
Manufacturer
Sitronix Technology Corporation
Datasheet
10.3 PORT-B
Port -B is a bit programmable bi-direction I/O port, which is
controlled by PCB register. It also provides user with bit-
10.3.2 PORT-B I/O control
Direction of Port-B is controlled by PCB. Every bit of
PCB[1~0] is mapped into the I/O direction of PB[1~0]
Ver 2.2
Note:because PB2,PB3 is input pin,so PB[2],PB[3] only read status.
Address Name
Address Name
$001
$009
$00F
$009
Bit 1~0:
PB
PCB
PMCR
PCB
1 = Output mode
0 = Input mode
PCB[1~0] : Port-B directional bits
R/W
R/W
R/W
R/W
R/W
R/W
TABLE 10-11: SUMMARY FOR PORT-B REGISTERS
TABLE 10-12: PORT-B CONTROL REGISTER (PCB)
PULL
Bit 7
Bit 7
-
-
-
PDBN
Bit 6
Bit 6
-
-
-
INTEG
Bit 5
Bit 5
-
-
-
18/54
Bit 4
Bit 4
programmable pull-up MOS and sound output port
separately.
correspondingly, with “1” for output mode, and “0” for input
mode.
-
-
-
-
PB[3]*
Bit 3
Bit 3
-
-
-
PB[2]*
Bit 2
Bit 2
-
-
-
PCB[1]
PCB[1]
PSG0
PB[1]
Bit 1
Bit 1
PCB[0]
PCB[0]
PSGB
PB[0]
Bit 0
Bit 0
100 - - -00
- - - - - -11
- - - - - -00
- - - - - -00
ST2024C
Default
Default
1/31/08

Related parts for st2024c