ST62P08C ST Microelectronics, ST62P08C Datasheet - Page 41

no-image

ST62P08C

Manufacturer Part Number
ST62P08C
Description
(ST62P08C - ST62P20C) 8-BIT MCU
Manufacturer
ST Microelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST62P08C/MBU
Manufacturer:
ST
0
Part Number:
ST62P08C/MHH
Manufacturer:
ST
0
Part Number:
ST62P08C6
Manufacturer:
ST
0
Part Number:
ST62P08CM6/MBU
Manufacturer:
ST
0
Part Number:
ST62P08CM6/RCE
Manufacturer:
ST
0
I/O PORTS (Cont’d)
8.5 REGISTER DESCRIPTION
DATA REGISTER (DR)
Port x Data Register
DRx with x = A or B.
Read/Write
Reset Value: 0000 0000 (00h)
Bits 7:0 = D[7:0] Data register bits.
Reading the DR register returns either the DR reg-
ister latch content (pin configured as output) or the
digital value applied to the I/O pin (pin configured
as input).
Caution: In input mode, modifying this register will
modify the I/O port configuration (see Table 9).
Do not use the Single bit instructions on I/O port
data registers. See (Section 8.2.5).
DATA DIRECTION REGISTER (DDR)
Port x Data Direction Register
DDRx with x = A or B.
Read/Write
Reset Value: 0000 0000 (00h)
Table 11. I/O Port Register Map and Reset Values
DD7
D7
Address
of all I/O port registers
7
7
(Hex.)
0CCh
0CDh
0C0h
0C1h
0C4h
0C5h
Reset Value
DD6
D6
DRA
DRB
DDRA
DDRB
ORA
ORB
DD5
D5
Register
Label
DD4
D4
DD3
D3
MSB
MSB
MSB
7
0
DD2
D2
DD1
D1
6
0
DD0
D0
0
0
5
0
Bits 7:0 = DD[7:0] Data direction register bits.
The DDR register gives the input/output direction
configuration of the pins. Each bit is set and
cleared by software.
0: Input mode
1: Output mode
OPTION REGISTER (OR)
Port x Option Register
ORx with x = A or B.
Read/Write
Reset Value: 0000 0000 (00h)
Bits 7:0 = O[7:0] Option register bits.
The OR register allows to distinguish in output
mode if the push-pull or open drain configuration is
selected.
Output mode:
0: Open drain output(with P-Buffer deactivated)
1: Push-pull Output
Input mode: See Table 9.
Each bit is set and cleared by software.
Caution: Modifying this register, will also modify
the I/O port configuration in input mode. (see Ta-
ble 9).
O7
7
4
0
ST6208C/ST6209C/ST6210C/ST6220C
O6
O5
3
0
O4
2
0
O3
O2
1
0
O1
LSB
LSB
LSB
41/105
0
0
O0
0
1

Related parts for ST62P08C