st2064b Sitronix Technology Corporation, st2064b Datasheet - Page 16

no-image

st2064b

Manufacturer Part Number
st2064b
Description
8 Bit Microcontroller With 64k Bytes Rom
Manufacturer
Sitronix Technology Corporation
Datasheet
10.3 Port-B and Port-C
10.3.1 General Description
Ver. 3.0
Port-B and Port-C are bit-programmable bi-direction I/O ports,
controlled by PCB and PCC registers. There is also bit
programmable pull-up resistor for each input pin. All of the 16
I/Os can change into LCD segment drives. Control register
10.3.2 Input/Output Control
PCB/PCC controls the I/O direction of Port-B/C. Each bit of
PCB[7~0]/PCC[7~0] controls the direction of one single bit of
Address Name
Address Name
Address Name
$00A
$00A
$001
$002
$009
$00F
$039
$009
Bit 7~0: PCB[7~0] : Port-B directional bits
Bit 7~0: PCC[7~0] : Port-C directional bits
PCC
PCC
PB
PC
PCB
PMCR
LSEL
PCB
1 = Output mode
0 = Input mode
1 = Output mode
0 = Input mode
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
PCB[7]
PCC[7]
PCB[7]
PCC[7]
PC[7]
PULL
PB[7]
Bit 7
Bit 7
Bit 7
-
TABLE 10-7 Summary of Port-B AND Port-C Registers
PCC[6]
PCC[6]
PCB[6]
PCB[6]
PDBN
PB[6]
PC[6]
TABLE 10-8 PORT-B Control Register (PCB)
TABLE 10-9 PORT-C Control Register (PCC)
Bit 6
Bit 6
Bit 6
-
PCC[5]
PCC[5]
PCB[5]
INTEG
PCB[5]
PB[5]
PC[5]
Bit 5
Bit 5
Bit 5
-
LSEL[4] LSEL[3] LSEL[2] LSEL[1] LSEL[0]
16/57
PCC[4]
PCC[4]
PCB[4]
PCB[4]
PB[4]
PC[4]
Bit 4
Bit 4
Bit 4
-
LSEL specifies which of these I/Os are LCD drives(Please
refer to TABLE 15-2LCD Segment Number Selection
Register (LSEL)).
Port-B/C respectively, with “ 1” for output mode, and “ 0” for input
mode.
PCB[3]
PCC[3]
PCB[3]
PCC[3]
PC[3]
TEST
PB[3]
Bit 3
Bit 3
Bit 3
PCB[2]
PCC[2]
PCB[2]
PCC[2]
PC[2]
PB[2]
Bit 2
Bit 2
Bit 2
-
PCB[1]
PCC[1]
PCB[1]
PCC[1]
PB[1]
PC[1]
Bit 1
Bit 1
Bit 1
-
PCB[0]
PCC[0]
PCB[0]
PCC[0]
PB[0]
PC[0]
Bit 0
Bit 0
Bit 0
-
100 - - - - -
0000 0000
0000 0000
0000 0000
0000 0000
- - - 1 1111
1111 1111
1111 1111
Default
Default
Default
ST2064B
5/8/09

Related parts for st2064b