參數(shù)資料
型號(hào): EM6604SO24A
英文描述: Microcontroller
中文描述: 微控制器
文件頁(yè)數(shù): 3/39頁(yè)
文件大?。?/td> 675K
代理商: EM6604SO24A
EM6603
03/02 REV. G/439
Copyright
2002, EM Microelectronic-Marin SA
11
www.emmicroelectronic.com
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
Bit
Name
Reset
R/W
Description
3
PB3
-
R/W
PB3 I/O data
2
PB2
-
R /W
PB2 I/O data
1
PB1
-
R/W
PB1 I/O data
0
PB0
-
R /W
PB0 I/O data
Table 15.PortB Input/Output control register - CIOportB
Bit
Name
Reset
R/W
Description
3
CIOPB3
0
R/W
PB3 Input/Output select
2
CIOPB2
0
R/W
PB2 Input/Output select
1
CIOPB1
0
R/W
PB1 Input/Output select
0
CIOPB0
0
R/W
PB0 Input/Output select
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
SLEEP
mode.
In
the
case
of
6N
output
stay
active
also
in
the
SLEEP
mode.
相關(guān)PDF資料
PDF描述
EM6604SO24B Microcontroller
EM6604TP24B Microcontroller
EM6605DL24A Microcontroller
EM6605SO24A Microcontroller
EM6605SO24B Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
EM6604SO24B 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
EM6604TP24B 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
EM6604WP11 制造商:EMMICRO 制造商全稱:EM Microelectronic - MARIN SA 功能描述:Ultra Low Power Multi I/O Microcontroller
EM6604WP27 制造商:EMMICRO 制造商全稱:EM Microelectronic - MARIN SA 功能描述:Ultra Low Power Multi I/O Microcontroller
EM6604WS11 制造商:EMMICRO 制造商全稱:EM Microelectronic - MARIN SA 功能描述:Ultra Low Power Multi I/O Microcontroller