Back to the 2020 paper

Module 5: External Communication Interface

20207m

Character transmission can be done by using a time delay greater than the character time before moving a new byte to SBUF. Explain why character reception must use an interrupt flag if all characters are to be received.

Worked SolutionAI Assisted

Why Reception Must Use Interrupt Flag

Transmission can use time delay because transmitter controls timing; SBUF loaded after >character time ensures previous byte finished.

Reception is asynchronous – sender timing unpredictable, start bit arrives anytime. Polling by delay may miss bytes because:

  1. If polling period > character time, bytes are overwritten (overrun). 8051 double-buffering means second byte overwrites before RI flags.
  2. Flag RI is set at middle of stop bit, accurate timing; polling delay not synchronized to start bit, so sampling may miss.
  3. Continuous back-to-back characters require detection of each stop→start transition; interrupt on RI ensures every byte captured and software can read SBUF before next. Hence reception must check RI flag (poll or interrupt) not blind delay.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.