Rainbow-electronics T89C5115 Manuale Utente Pagina 7

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 105
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 6
7
T89C5115
4128A–8051–04/02
Read-Modify-Write
Instructions
Some instructions read the latch data rather than the pin data. The latch based instruc-
tions read the data, modify the data and then rewrite the latch. These are called "Read-
Modify-Write" instructions. Below is a complete list of these special instructions (see
Table ). When the destination operand is a Port or a Port bit, these instructions read the
latch rather than the pin:
It is not obvious the last three instructions in this list are Read-Modify-Write instructions.
These instructions read the port (all 8 bits), modify the specifically addressed bit and
write the new byte back to the latch. These Read-Modify-Write instructions are directed
to the latch rather than the pin in order to avoid possible misinterpretation of voltage
(and therefore, logic) levels at the pin. For example, a Port bit used to drive the base of
an external bipolar transistor can not rise above the transistor’s base-emitter junction
voltage (a value lower than VIL). With a logic one written to the bit, attempts by the CPU
to read the Port at the pin are misinterpreted as logic zero. A read of the latch rather
than the pins returns the correct logic-one value.
Quasi-bidirectional Port
Operation
Port 1, Port 3 and Port 4 have fixed internal pull-ups and are referred to as "quasi-bidi-
rectional" Ports. When configured as an input, the pin impedance appears as logic one
and sources current in response to an external logic zero condition. Resets write logic
one to all Port latches. If logical zero is subsequently written to a Port latch, it can be
returned to input conditions by a logical one written to the latch.
Note: Port latch values change near the end of Read-Modify-Write insruction cycles. Output
buffers (and therefore the pin state) update early in the instruction after Read-Modify-
Write instruction cycle.
Logical zero-to-one transitions in Port 1, Port 3 and Port 4 use an additional pull-up (p1)
to aid this logic transition see Figure 2. This increases switch speed. This extra pull-up
sources 100 times normal internal circuit current during 2 oscillator clock periods. The
internal pull-ups are field-effect transistors rather than linear resistors. Pull-ups consist
of three p-channel FET (pFET) devices. A pFET is on when the gate senses logical zero
and off when the gate senses logical one. pFET #1 is turned on for two oscillator periods
immediately after a zero-to-one transition in the Port latch. A logical one at the Port pin
turns on pFET #3 (a weak pull-up) through the inverter. This inverter and pFET pair form
a latch to drive logical one. pFET #2 is a very weak pull-up switched on whenever the
Table 2. Read-Modify-Write Instructions
Instruction Description Example
ANL logical AND ANL P1, A
ORL logical OR ORL P2, A
XRL logical EX-OR XRL P3, A
JBC jump if bit = 1 and clear bit JBC P1.1, LABEL
CPL complement bit CPL P3.0
INC increment INC P2
DEC decrement DEC P2
DJNZ decrement and jump if not zero DJNZ P3, LABEL
MOV Px.y, C move carry bit to bit y of Port x MOV P1.5, C
CLR Px.y clear bit y of Port x CLR P2.4
SET Px.y set bit y of Port x SET P3.3
Vedere la pagina 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 104 105

Commenti su questo manuale

Nessun commento

Electrolux ESL66075R Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Nein Electrolux ESL66075R.
Wir stellen 1 PDF-Handbücher Electrolux ESL66075R zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Nein Electrolux

Modelle Dokumententyp
EW1232I Bedienungsanleitung   Electrolux EW1232I Manuali i perdoruesit, 25 Seiten
LAP16 Infoblatt   Electrolux LAP16 Information Sheet [fr] , 2 Seiten
ERB4045 Bedienungsanleitung Electrolux ERB4045 User Manual, 16 Seiten
EOB8851AAX Bedienungsanleitung   Electrolux EOB8851AAX Manual de utilizare, 28 Seiten
ESF6280 Bedienungsanleitung   Electrolux ESF6280 User Manual, 20 Seiten
WA3210 Bedienungsanleitung   ELECTROLUX LOISIRS WA3210 Manuel utilisateur, 9 Seiten
EWF8040W Bedienungsanleitung   Electrolux EWF8040W Ръководство за употреба, 23 Seiten
ESF45011 Bedienungsanleitung   Electrolux ESF45011 Руководство пользователя [sv] , 44 Seiten
EDC77570W Bedienungsanleitung   Electrolux EDC77570W Kullanım kılavuzu, 32 Seiten
EDC77550W Bedienungsanleitung   Electrolux EDC77550W Ohjekirja, 57 Seiten
WD42A96160 Bedienungsanleitung Electrolux WD42A96160 Brugermanual, 64 Seiten
EKK6050AOW Bedienungsanleitung Electrolux EKK6050AOW User Manual, 36 Seiten
ESI66010K Bedienungsanleitung   Electrolux ESI66010K Használati utasítás, 24 Seiten
EW1075F Bedienungsanleitung   Electrolux EW1075F Lietotāja rokasgrāmata [fr] , 21 Seiten
LAI1470E Bedienungsanleitung   Electrolux LAI1470E Manuale utente, 40 Seiten
EFT600/2 Bedienungsanleitung     Electrolux EFT600/2 User Manual [de] [en] [et] [fr] [nl] , 36 Seiten
EKC5611X Bedienungsanleitung    Electrolux EKC5611X User Manual [de] , 22 Seiten
EBSL7EEV Bedienungsanleitung   Electrolux EBSL7EEV Manuel utilisateur [ro] , 32 Seiten
RH430LD Bedienungsanleitung   Electrolux RH430LD Benutzerhandbuch, 16 Seiten
ESF6250X Bedienungsanleitung    Electrolux ESF6250X Ohjekirja [en] , 44 Seiten