mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 37

no-image

mpc82g516a

Manufacturer Part Number
mpc82g516a
Description
8-bit Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mpc82g516aE
Manufacturer:
MEGAWIN
Quantity:
1 200
Part Number:
mpc82g516aF
Manufacturer:
MEGAWIN
Quantity:
20 000
P2M1 (Address=96H, Port 2 Mode Register 1, Reset Value=0000,0000B)
P3M0 (Address=B1H, Port 3 Mode Register 0, Reset Value=0000,0000B)
P3M1 (Address=B2H, Port 3 Mode Register 1, Reset Value=0000,0000B)
P4M0 (Address=B3H, Port 4 Mode Register 0, Reset Value=0000,0000B)
P4M1 (Address=B4H, Port 4 Mode Register 1, Reset Value=0000,0000B)
10.1.1 Quasi-Bidirectional I/O
Port pins in quasi-bidirectional mode are similar to the standard 8051 port pins. A quasi-bidirectional port can be
used as an input and output without the need to reconfigure the port. This is possible because when the port
outputs a logic high, it is weakly driven, allowing an external device to pull the pin low. When the pin outputs low,
it is driven strongly and able to sink a large current. There are three pull-up transistors in the quasi-bidirectional
output that serve different purposes.
One of these pull-ups, called the “very weak” pull-up, is turned on whenever the port register for the pin contains
a logic “1”. This very weak pull-up sources a very small current that will pull the pin high if it is left floating. A
second pull-up, called the “weak” pull-up, is turned on when the port register for the pin contains a logic “1” and
the pin itself is also at a logic “1” level. This pull-up provides the primary source current for a quasi-bidirectional
pin that is outputting a 1. If this pin is pulled low by the external device, this weak pull-up turns off, and only the
very weak pull-up remains on. In order to pull the pin low under these conditions, the external device has to sink
enough current to over-power the weak pull-up and pull the port pin below its input threshold voltage. The third
pull-up is referred to as the “strong” pull-up. This pull-up is used to speed up low-to-high transitions on a quasi-
bidirectional port pin when the port register changes from a logic “0” to a logic “1”. When this occurs, the strong
pull-up turns on for two CPU clocks, quickly pulling the port pin high.
The quasi-bidirectional port configuration is shown in Figure 10-1. A quasi-bidirectional port pin has a Schmitt-
triggered input for noise suppression.
Figure 10-1. Quasi-Bidirectional I/O
37
P2M1.7
P3M0.7
P3M1.7
P4M0.7
P4M1.7
7
7
7
7
7
P2M1.6
P3M0.6
P3M1.6
P4M0.6
P4M1.6
6
6
6
6
6
P2M1.5
P3M0.5
P3M1.5
P4M0.5
P4M1.5
5
5
5
5
5
P2M1.4
P3M0.4
P3M1.4
P4M0.4
P4M1.4
4
4
4
4
4
MPC82G516A Data Sheet
P2M1.3
P3M0.3
P3M1.3
P4M0.3
P4M1.3
3
3
3
3
3
P2M1.2
P3M0.2
P3M1.2
P4M0.2
P4M1.2
2
2
2
2
2
P2M1.1
P3M0.1
P3M1.1
P4M0.1
P4M1.1
1
1
1
1
1
P2M1.0
P3M0.0
P3M1.0
P4M0.0
P4M1.0
0
0
0
0
0
MEGAWIN

Related parts for mpc82g516a