Write assembly instructions to clear Bit 5 of variable bar without changing other bits.

profileznporgetable400

Write assembly instructions to clear Bit 5 of variable bar without changing other bits.

 

 

Write a C program for the 68HCS12 microcontroller to send the pattern 0x55 to byte-sized Memory Location "OUT1" and then call a delay function. The delay function should generate a delay of two milliseconds. Then, send the pattern 0xAA to byte-sized memory location "OUT2" and call the delay function one more time. Repeat this operation 10 times, using a for loop. Assume that the bus clock frequency is 24MHz. Write the delay using inline assembly language. 

    • 8 years ago
    • 15
    Answer(0)
    Bids(0)