Question: I have a 8 MHz 8051 ATMEL microcontroller. It has a machine cycle of 8 clocks. I would like to use Timer 1 to
I have a 8 MHz 8051 ATMEL microcontroller. It has a machine cycle of 8 clocks. I would like to use Timer 1 to generate a square wave which has a period of 460 s (micro seconds). A. Find the delay count and the base number. (6 points) B. Draw a water storage analogy diagram, using the above values. (4 points) C. Show the value that should be programmed into Timer 0 and TMOD! (5 points) D. Write a program that generates the wave at bit 0 of port 1! (5 points) BIT IP.7 IP6 IP.5 IP4 IP.3 IP.2 IP.1 IP.0 MSB PS PT1 PX1 PTO PXD X X 8051 REFERRENCE MANUAL X PS PT1 PX1 PTO LSB SYMBOL FUNCTION Reserved. Reserved. Reserved. Defines the Serial Port interrupt priority level. PS=1 programs it to the higher priority level. Defines the Timer 1 interrupt priority level. PT1=1 programs it to the higher priority level. Defines the External Interrupt 1 priority level, PX1=1 programs it to the higher priority level. Enables or disables the Timer O interrupt priority level. PTO-1 programs it to the higher priority level. Defines the External Interrupt O priority level. PX0=1 programs it to the higher priority level. Figure 19. Interrupt Priority Register (IP) PX0 QUODSAF
Step by Step Solution
3.46 Rating (159 Votes )
There are 3 Steps involved in it
ANSWER a T 1 f 1 2 kHz 500 us the period of square ... View full answer
Get step-by-step solutions from verified subject matter experts
