1) TMOD register is loaded with value 20H indicating the use of timer 1 in mode 2to set baud rate.
2) TH1 is loaded with the appropriate value to set the required baud rate.
3) SCON register is loaded with the value 50H indicating serial mode1.
4) TR1 is set to start timer1.
5) TI is cleared by the CLR TI instruction.
6) Now we have to be load SBUF.
7) character byte to be raised serially is written in to SBUF sequence.
8) The TI flag is monitored with use of instruction JNB.
9) To see if the character has been transferred.
7. To transfer the next character go to step 5 and continue the process.
✏️STEPS TO RECEVING THE DATA SERIALLY
1) The TMOD register loaded with the value 20H.
2) TH1 is loaded with the appropriate value to set the required baud rate.
3) SCON register is loaded with the value 50H indicating serial mode1.
4) TR1 is set to start timer1.
5) CLR RI is used to clear RI bit.
6) The RI flag is monitored use of instruction JNB RI.
7) When RI raised SBUF has contents and it is moved into safe place.
8) To receive the next character go to step 5 and continue the process again and again.
No comments:
Post a Comment
If you have any doubts or clarification you need in my blog topics, I would π― try to clear it in an efficient manner as possible. I will also accept your suggestions.