em6521 EM Microelectronic, em6521 Datasheet - Page 18
![no-image](/images/no-image-200.jpg)
em6521
Manufacturer Part Number
em6521
Description
Mfp Version Of Em6621 Ultra Low Power Microcontroller With 4x20 Lcd Driver
Manufacturer
EM Microelectronic
Datasheet
1.EM6521.pdf
(68 pages)
- Current page: 18 of 68
- Download datasheet (2Mb)
6.4 Port B
The EM6521 has one four bit general purpose I/O port. Each bit can be configured individually by software for
input/output, pull-up, pull-down and CMOS or Nch. open drain output type. The port outputs either data,
frequency or PWM signals.
6.4.1 Input / Output Mode
Each port B terminal is bit-wise bi-directional. The input or output mode on each port B terminal is set by writing
the corresponding bit in the RegPBCntl control register. To set for input (default), 0 is written to the
corresponding bit of the RegPBCntl register which results in a high impedance state for the output driver. The
output mode is set by writing 1 in the control register, and consequently the output terminal follows the status of
the bits in the RegPBData register.
The port B terminal status can be read on address RegPBData even in output mode. Be aware that the data
read on port B is not necessary of the same value as the data stored on RegPBData register.
See also
Figure 11. Port B Architecture
Copyright © 2005, EM Microelectronic-Marin SA
Internal Data Bus
F igure 11 for details.
1 1 5 H
R
PWM, Ck[16],
Ck[11], Ck[1]
DB[n]
Outputs are:
Multiplexed
Port B Direction Register
Port B Data Register
DDR[n]
DR[n]
Read
Output Active
Multiplexed
Multiplexed
Output
Read for PB[3:0]
Read
MUX
18
Option Register
Pull-down
Control
Port B
Pd[n]
I / O Terminal
PB[n]
4
Open Drain Option
www.emmicroelectronic.com
Register
OD[n]
EM6521
Active
Pull-down
Mask Option
MPBPD[n]
mask option
MPBPD[n]
Active Pull-up
in Nch. Open
Drain Mode
Related parts for em6521
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![em9201](/images/no-image3.png)
Part Number:
Description:
World?s First Fully Integrated Single-cell Battery 2.4 Ghz Transceiver
Manufacturer:
EM Microelectronic
Datasheet:
![h6060v16so8b](/images/no-image3.png)
Part Number:
Description:
Self Recovering Watchdog
Manufacturer:
EM Microelectronic
Datasheet:
![h6006b3so8b](/images/no-image3.png)
Part Number:
Description:
Failsafe Watchdog
Manufacturer:
EM Microelectronic
Datasheet:
![em6353bz2sp3b-3.1](/images/no-image3.png)
Part Number:
Description:
Reset Circuit With Fixed Delay
Manufacturer:
EM Microelectronic
Datasheet:
![em6352ysc3b-2.6](/images/no-image3.png)
Part Number:
Description:
Voltage Detector, High-precision
Manufacturer:
EM Microelectronic
Datasheet:
![em6325](/images/no-image3.png)
Part Number:
Description:
Reset Circuit With Manual Reset
Manufacturer:
EM Microelectronic
Datasheet:
![em6324qysp5b-2.8](/images/no-image3.png)
Part Number:
Description:
Reset Circuit With Manual Reset And Watchdog
Manufacturer:
EM Microelectronic
Datasheet:
![em6580](/images/no-image3.png)
Part Number:
Description:
Low Cost, Ultra Low-power 8-pin Mcu With 4-bit Adc And No External Component
Manufacturer:
EM Microelectronic
Datasheet:
![em6522](/images/no-image3.png)
Part Number:
Description:
Mfp Version Of Em6622 Ultra Low Power Microcontroller With 4x32 Lcd Driver
Manufacturer:
EM Microelectronic
Datasheet:
![em6503](/images/no-image3.png)
Part Number:
Description:
Mfp Version Of Em6603, Em6607
Manufacturer:
EM Microelectronic
Datasheet:
![V3021](/images/no-image3.png)
Part Number:
Description:
Manufacturer:
EM Microelectronic - MARIN SA
Datasheet:
![EM6325CXSP5B-3.1](/images/no-image3.png)
Part Number:
Description:
Manufacturer:
EM Microelectronic
Datasheet:
![EM6353BX2SP3B-4.4](/images/no-image3.png)
Part Number:
Description:
Manufacturer:
EM Microelectronic
Datasheet: