EM6603 EM Microelectronic, EM6603 Datasheet - Page 11

no-image

EM6603

Manufacturer Part Number
EM6603
Description
Ultra Low Power Multi I/O Microcontroller
Manufacturer
EM Microelectronic
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
EM6603
Quantity:
92
6.3 PortB
The EM6603 has one four bit general purpose I/O port. Each bit PB(0:3) can be separately configured by
software to be either input or output by writing to the corresponding bit of the CIOPortB control register. The
PortB register is used to read data when in input mode and to write data when in output mode. On each
terminal Pull-Up/Down resistor can be selected by metal option which are active only when selected as input.
Input mode is set by writing 0 to the corresponding bit in the CIOPortB register. This results in a high
impedance state with the status of the pin being read from register PortB. Output mode is set by writing 1 to the
corresponding bit in the CIOPortB register. Consequently the output terminal follows the status of the bits in the
PortB register. At initial RESET the CIOPortB register is set to 0, thus setting the port to an input. Additionally,
PB0 can also be used as a three tone buzzer output. For details see section 7.
6.4 PortB registers
Table 14.PortB input status register - PortB
Table 15.PortB Input/Output control register - CIOportB
Figure 7.Port B
If metal mask option 5Y (Input blocked when Output) is used and the port is declared as the Output (CIOPortB
= 1111b) the real port information cannot be read directly. In this case no direct logic operations (like AND
PortB) on Output ports are possible. This logic operation can be made with an image of the Port saved in the
RAM which we store after on the output port. This is valid for PortB, PortC and PortD when declared as output
and the metal Option 5Y is used. In the case of metal option 5N selected direct logic operations on output ports
are possible.
If metal mask option 6Y (Output Hi-Z in SLEEP mode) the active Output will go Tristate when the circuit goes
into
Copyright  2002, EM Microelectronic-Marin SA
SLEEP
Bit
3
2
1
0
Bit
3
2
1
0
mode.
Name
PB3
PB2
PB1
PB0
Name
CIOPB3
CIOPB2
CIOPB1
CIOPB0
In
the
case
Reset
Reset
-
-
-
-
0
0
0
0
of
6N
R/W
R/W
R /W
R/W
R /W
R/W
R/W
R/W
R/W
R/W
output
11
stay
Description
PB3 I/O data
PB2 I/O data
PB1 I/O data
PB0 I/O data
Description
PB3 Input/Output select
PB2 Input/Output select
PB1 Input/Output select
PB0 Input/Output select
active
also
in
www.emmicroelectronic.com
the
EM6603
SLEEP
03/02 REV. G/439
mode.

Related parts for EM6603