Need Help ?

Home / Expert Answers / Other / Description INSTRUCTIONS: Show all your work. Hand in a hardcopy. Blackboard solutions will not be

Description INSTRUCTIONS: Show all your work. Hand in a hardcopy. Blackboard solutions will not be ...


Description INSTRUCTIONS: Show all your work. Hand in a hardcopy. Blackboard solutions will not be accepted. How many bits wide is Port B? How many bits wide is Port F? What are the steps required to initialize a parallel port? Which steps are optional? What are the steps required to input one bit from an input pin? Specify a #define that allows us to access bits 2 and 5 of Port A. Use this #define to make both bits 2 and 5 of Port A high. If you were to use UART5 at pins PE4 and PE5, how would you program the GPIO registers? What registers GPIO will you program if you desire to use Analog input 9 and 8? How would you set them Use the tables below to answer the following questions. 7. To make a pin a digital input, what value do you load into corresponding bits the following registers? Assume it does not need an internal pullup DIR PUR PCTL AFSEL AMSEL DEN 8. To make a pin a digital output, what value do you load into corresponding bits the following registers? Assume it does not need an internal pullup DIR PUR PCTL AFSEL AMSEL DEN 9 Which line of C code is a friendly way to set Port B bit 2 assuming this pin has already been initialized as an output GPIO_PORTB_DATA_R = 0x00; GPIO_PORTB_DATA_R = 0x02; GPIO_PORTB_DATA_R = 0x04; GPIO_PORTB_DATA_R |= 0x02; GPIO_PORTB_DATA_R |= 0x04; GPIO_PORTB_DATA_R &= 0x02; GPIO_PORTB_DATA_R &= 0x04; GPIO_PORTB_DATA_R &= ~0x02; GPIO_PORTB_DATA_R &= ~0x04; 10. How would you program the GPIO registers to make PF5 and PF2 input, and make PF3 PF1 and PF0 outputs?



Radioactive Tutors

Radio Active Tutors is a freelance academic writing assistance company. We provide our assistance to the numerous clients looking for a professional writing service.

NEED A CUSTOMIZE PAPER ON THE ABOVE DETAILS?
Order Now


OR

Get outline(Guide) for this assignment at only $10

Get Outline $10

**Outline takes 30 min - 2 hrs depending on the complexity and size of the task
Designed and developed by Brian Mubichi (mubix)
WhatsApp