In Assembly AVT ATmega32 or C write a program to operate in
In Assembly (AVT ATmega32) or C, write a program to operate in slave mode and transmit “Y” to the master when the slave device is addressed. The slave address should be 0110 100
Solution
MVI   A,80H   ; Load acc with Control word
    OUT   83H   ; Load control register with 83                at port address 83
    CALL BUSYWAIT()
 ISRDISPLY:
 CALL GETTIMESTOREAT2000()
    MOV A, 0110H   
    OUT   100H       ;
    MOV A, 1001H
    OUT    82H       ;
    MOV A, 2002H
    OUT   83H       ;
 RET

