Skip to content Skip to sidebar Skip to footer

Write a Program to Toggle All the Bits of Portb Continuously

UNLUSDLLUU 9. Write a program to get 8-bit data from PORTC and send it to PORTB and PORTD. 10. Write a program to get 8-bit d 11. Which pins are for RxD and TxD? 12. Give data memory location assigned to DDR registers of Ports A-C for the ATmega328. 1 16. Is the instruction COM PORTB a valid instruction? 17. Write a program to toggle PB2 and PB5 continuously without disturUNLUSDLLUU 9. Write a program to get 8-bit data from PORTC and send it to PORTB and PORTD. 10. Write a program to get 8-bit data from PORTD and send it to PORTB and PORTC. 11. Which pins are for RxD and TxD? 12. Give data memory location assigned to DDR registers of Ports A-C for the ATmega328. 13. Write a program to toggle all the bits of PORTB and PORTC continuously (a) using OxAA and Ox55 (b) using the COM instruction. 16. Is the instruction "COM PORTB" a valid instruction? 17. Write a program to toggle PB2 and PB5 continuously without disturbing the rest of the bits. 18. Write a program to toggle PD3, PD7, and PC5 continuously without disturb- ing the rest of the bits. 19. Write a program to monitor bit PC3. When it is HIGH, send Ox55 to PORTD. 20. Write a program to monitor the PB7 bit. When it is LOW, send $55 and SAA to PORTC continuously. 21. Write a program to monitor the PA0 bit. When it is HIGH, send $99 to PORTB. If it is LOW, send $66 to PORTB. 22. Write a program to monitor the PB5 bit. When it is HIGH, make a LOW-to- HIGH-to-LOW pulse on PB3. 23. Write a program to get the status of PC3 and put it on PC4. 24. Create a flowchart and write a program to get the statuses of PD6 and PD7 and put them on PCO and PC7, respectively. 25. Write a program to monitor the PB5 and PB6 bits. When both of them are HIGH, send SAA to PORTC; otherwise, send $55 to PORTC. 26. Write a program to monitor the PB5 and PB6 bits. When either of them 15 HIGH, send SAA to PORTC; otherwise, send $55 to PORTC. 27. Referring to Figure 4-8 and Table 4-8, write the machine equivalent of ™S PINB,3". 28. Referring to Figure 4-6 and Table 4-8, write the machine equivalent "SBI PORTD,2" instruction. Show transcribed image text UNLUSDLLUU 9. Write a program to get 8-bit data from PORTC and send it to PORTB and PORTD. 10. Write a program to get 8-bit data from PORTD and send it to PORTB and PORTC.
11. Which pins are for RxD and TxD? 12. Give data memory location assigned to DDR registers of Ports A-C for the ATmega328. 13. Write a program to toggle all the bits of PORTB and PORTC continuously (a) using OxAA and Ox55 (b) using the COM instruction.
16. Is the instruction "COM PORTB" a valid instruction? 17. Write a program to toggle PB2 and PB5 continuously without disturbing the rest of the bits. 18. Write a program to toggle PD3, PD7, and PC5 continuously without disturb- ing the rest of the bits. 19. Write a program to monitor bit PC3. When it is HIGH, send Ox55 to PORTD. 20. Write a program to monitor the PB7 bit. When it is LOW, send $55 and SAA to PORTC continuously. 21. Write a program to monitor the PA0 bit. When it is HIGH, send $99 to PORTB. If it is LOW, send $66 to PORTB. 22. Write a program to monitor the PB5 bit. When it is HIGH, make a LOW-to- HIGH-to-LOW pulse on PB3. 23. Write a program to get the status of PC3 and put it on PC4. 24. Create a flowchart and write a program to get the statuses of PD6 and PD7 and put them on PCO and PC7, respectively. 25. Write a program to monitor the PB5 and PB6 bits. When both of them are HIGH, send SAA to PORTC; otherwise, send $55 to PORTC. 26. Write a program to monitor the PB5 and PB6 bits. When either of them 15 HIGH, send SAA to PORTC; otherwise, send $55 to PORTC. 27. Referring to Figure 4-8 and Table 4-8, write the machine equivalent of ™S PINB,3". 28. Referring to Figure 4-6 and Table 4-8, write the machine equivalent "SBI PORTD,2" instruction.

defrancobizin2001.blogspot.com

Source: https://www.viewassignment.com/ExpertAnswers/unlusdlluu-9-write-a-program-to-get-8-bit-data-from-portc-and-send-it-to-portb-and-portd-10-write-a-

Postar um comentário for "Write a Program to Toggle All the Bits of Portb Continuously"