Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

UPSD3422EB40U6 Scheda tecnica(PDF) 70 Page - STMicroelectronics

Il numero della parte UPSD3422EB40U6
Spiegazioni elettronici  Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
PDF  293 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UPSD3422EB40U6 Scheda tecnica(HTML) 70 Page - STMicroelectronics

Back Button UPSD3422EB40U6 Datasheet HTML 66Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 67Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 68Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 69Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 70Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 71Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 72Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 73Page - STMicroelectronics UPSD3422EB40U6 Datasheet HTML 74Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 70 / 293 page
background image
I/O ports of mcu module
uPSD34xx
70/293
17.1.1
GPIO function
Ports in GPIO mode operate as quasi-bidirectional pins, consistent with standard 8051
architecture. GPIO pins are individually controlled by three SFRs:
●
SFR, P1 (Table 27 on page 73)
●
SFR, P3 (Table 28 on page 73)
●
SFR, P4 (Table 29 on page 74)
These SFRs can be accessed using the Bit Addressing mode, an efficient way to control
individual port pins.
17.1.2
GPIO output
Simply stated, when a logic '0' is written to a bit in any of these port SFRs while in GPIO
mode, the corresponding port pin will enable a low-side driver, which pulls the pin to ground,
and at the same time releases the high-side driver and pull-ups, resulting in a logic '0'
output. When a logic '1' is written to the SFR, the low-side driver is released, the high-side
driver is enabled for just one MCU_CLK period to rapidly make the 0-to1 transition on the
pin, while weak active pull-ups (total ~150K
Ω) to V
CC are enabled. This structure is
consistent with standard 8051 architecture. The high side driver is momentarily enabled only
for 0-to-1 transitions, which is implemented with the delay function at the latch output as
pictured in Figure 17 on page 71, Figure 18 on page 72, and Figure 19 on page 72. After
the high-side driver is disabled, the two weak pull-ups remain enabled resulting in a logic '1'
output at the pin, sourcing IOH uA to an external device. Optionally, an external pull-up
resistor can be added if additional source current is needed while outputting a logic '1.'
17.1.3
GPIO input
To use a GPIO port pin as an input, the low-side driver to ground must be disabled, or else
the true logic level being driven on the pin by an external device will be masked (always
reads logic '0'). So to make a port pin “input ready”, the corresponding bit in the SFR must
have been set to a logic '1' prior to reading that SFR bit as an input. A reset condition forces
SFRs P1, P3, and P4 to FFh, thus all three ports are input ready after reset.
When a pin is used as an input, the stronger pull-up “A” maintains a solid logic '1' until an
external device drives the input pin low. At this time, pull-up “A” is automatically disabled,
and only pull-up “B” will source the external device IIH uA, consistent with standard 8051
architecture.
GPIO Bi-Directional. It is possible to operate individual port pins in bi-directional mode. For
an output, firmware would simply write the corresponding SFR bit to logic '1' or '0' as
needed. But before using the pin as an input, firmware must first ensure that a logic '1' was
the last value written to the corresponding SFR bit prior to reading that SFR bit as an input.
GPIO Current Capability. A GPIO pin on Port 4 can sink twice as much current than a pin
on either Port 1 or Port 3 when the low-side driver is outputting a logic '0' (IOL). See the DC
specifications at the end of this document for full details.
Reading Port Pin vs. Reading Port Latch. When firmware reads the GPIO ports,
sometimes the actual port pin is sampled in hardware, and sometimes the port SFR latch is
read and not the actual pin, depending on the type of MCU instruction used. These two data
paths are shown in Figure 17 on page 71 through Figure 19 on page 72. SFR latches are
read (and not the pins) only when the read is part of a read-modify-write instruction and the
write destination is a bit or bits in a port SFR. These instructions are: ANL, ORL, XRL, JBC,



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com