1 / 8

Capítulo 8 A interface de comunicação serial da família de microcontroladores MCS-51 da Intel

Capítulo 8 A interface de comunicação serial da família de microcontroladores MCS-51 da Intel. Capítulo 8. A interface de comunicação serial :. 8051 Internal Bus. Write to SBUF. D S Q CL. SBUF. RXD P3.0 ALT Output Function. Shift. Zero Detector. Start SHIFT TX Control

sharis
Télécharger la présentation

Capítulo 8 A interface de comunicação serial da família de microcontroladores MCS-51 da Intel

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Capítulo 8A interface de comunicação serial da família de microcontroladores MCS-51 da Intel Microcontroladores 8051

  2. Capítulo 8 • A interface de comunicação serial: Microcontroladores 8051

  3. 8051 Internal Bus Write to SBUF D S Q CL SBUF RXD P3.0 ALT Output Function Shift Zero Detector StartSHIFT TX Control TX ClockTI SEND S6 Serial Port Interrupt Shift Clock TX.D P3.1 ALT Output Function RX ClockRI Receive RX Control Start 111111110 Shift REN RIbarra Shift Input Shift Register RX.D P3.0 ALT Input Function Load SBUF SBUF Read SBUF 8051 Internal Bus Figura 1: A interface de comunicação serial no modo 0. Microcontroladores 8051

  4. 8051 Internal Bus Write to SBUF TB8 D S Q CL SBUF TXD Timer 1 Overflow Zero Detector 2 StartSHIFT DATA TX Control TX ClockTI SEND SMOD=0 SMOD=1 16 Serial Port Interrupt 16 RX ClockRI Load SBUF RX Control Shift Start1FFh Sample 1 to 0 transition detector Shift Bit Detector Input Shift Register (9 bits) RXD Load SBUF SBUF Read SBUF 8051 Internal Bus Figura 2: A interface de comunicação serial no modo 1. Microcontroladores 8051

  5. Capítulo 8 Microcontroladores 8051

  6. Figura 2: Fluxograma e programa fonte estruturado do exercício resolvido 1. Rotina de atendimento a interrupção do canal de comunicação serial (0023h) (0023h) ISerial: RETI RETI Capítulo 8 Microcontroladores 8051

  7. Programa Principal: (0100h) PROGP: MOV SCON,#10h MOV IE,#90h MOV A,#55h LOOP: MOV SBUF, A JNB TI,$ CLR TI CPL A SJMP LOOP END (SCON)  #10h (IE)  #90h (A)  #55h (SBUF)  (A) S (TI) = 0  N (TI)  #0b (A) not (A) Capítulo 8 Microcontroladores 8051

  8. Microcontroladores 8051

More Related