Question: UN BSET PORTB, UUTTUU PROBLEMS SECTION 4.1: I/O PORT PROGRAMMING IN HCS12 1. The MC9812Dxx family with the LOFP package has The MC9S12Dxx family with

 UN "BSET PORTB, UUTTUU PROBLEMS SECTION 4.1: I/O PORT PROGRAMMING IN

UN "BSET PORTB, UUTTUU PROBLEMS SECTION 4.1: I/O PORT PROGRAMMING IN HCS12 1. The MC9812Dxx family with the LOFP package has The MC9S12Dxx family with the QFP package has pins. pins. 3. In the MC9S12Dxx family, how many pins are assigned to Port A? 4. In the MC9S12Dxx family, how many pins are assigned to Port B? 5. In the MC9S12Dxx family, how many pins are assigned to Port E? 6. In the MC9S12Dxx family with the LOFP package, how many pins are assigned to Port H? 8 pino 7. In the MC9S12Dxx family, how many pins are assigned to Port J? pins 8. Upon reset, all the bits of ports are configured as (input, output). 9. For the HCS12, which register must be programmed in order for the port to be used as simple I/O? SDR 10. Explain the role of DDRx in I/O operations. input loput 11. Write a program to get 8-bit data from PORTA and send it to ports PORTB and PORTH. 12. Write a program to get 8-bit data from PORTB and send it to ports PORTA and PORTH 13. Which pins are for RxD1 and TxD1 in the 80-pin QFP package? 14. Give the address locations in the register area assigned to Ports A-E and their DDR registers for the HCS12 15. Write a program to toggle all the bits of PORTA and PORTB continuously (a) using AAH and 55H (b) using the complement instruction. SECTION 4.2: I/O BIT MANIPULATION PROGRAMMING 16. Which ports of the HCS12 are bit-addressable? 17. What is the advantage of bit-addressability for HCS12 ports? 18. When "BSET PORTB, %00000001" is executed, which bit is set? 19. Is the instruction "COM PORTB" a valid instruction? 20. Write a program to toggle PB2 and PB5 continuously without disturbing the rest of the bits. 21. Write a program to toggle PB3, PB7, and PB5 continuously without disturbing! the rest of the bits. 22. Write a program to monitor bit PH3. When it is HIGH, send 55H to PORTB. 149 CHAPTER 4: HCS12/9812 I/O PORT PROGRAMMING

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!