Question: In an 8051 based multi-cast system using the SM2 bit and the ninth data bit, the SM2 bit should be cleared by the active

In an 8051 based multi-cast system using the SM2 bit and the

In an 8051 based multi-cast system using the SM2 bit and the ninth data bit, the SM2 bit should be cleared by the active listener. In a particular implementation of such a system, if the ninth bit is set, it signals a command and if it is cleared, it signals data. The command format has the device address in the upper nibble and the command itself in the lower nibble (with the ninth bit set to indicate that this is a command). In this particular system, the command bit pattern for making the addressed device an active listener is "0011". Composition of some of the special function registers involved in communication is: Bit No. Bit Name: Bit No. Timer: Bit Name Bit No. Bit Name Bit No. Bit Name Bit No. Bit Name Interrupt on Bit No. Bit Name 7 TF1 7 G1 7 TF2 7 7 EA IE TCON register at BYTE address 88H 5 6 3 2 TR1 TFO TRO IE1 IT1 TMOD register at BYTE address 89H 6 5 4 3 2 T1 C/T1 TIMI TIMO GO T2CON register at BYTE address C8H 5 4 3 2 6 EXF2 RCLK TCLK EXEN2 TR2 T2MOD register at BYTE address C9H 5 6 4 3 2 IE register at BYTE address A8H 6 4 ES SI 7 6 SMO SM1 3 ET1 TF1 4 REN 1 IEO TO C/TO TOM1 5 ET2 U TF2 SCON register at BYTE address 98H 5 3 2 1 SM2 TB8 RB8 1 2 EX1 Ex1 C/T2 1 T20E 1 TFO 0 ITO 0 TOMO 0 CP/RL2 0 DCEN 0 EXO Exo 0 RI Write a code fragment in 8051 assembly language which will be run on receipt of an 11 bit frame. It should: Check if the ninth bit is set. If so, Check if the upper nibble matches with its 4 bit address stored at location 50 H in the upper nibble. If the address matches: It should read the lower nibble of the command and check if it is 0011. If so, it should clear the SM2 bit. If the ninth bit was not set, or the address did not match or if the command was not 0011, it should do nothing. Your code should be clear, well commented and efficient. Incomprehensible code will get no credit even if operational.

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!