Answered You can hire a professional tutor to get the answer.

QUESTION

mmmmmmmmmmmmmmmmmm Funeen: 5TH} Hz square wave routine using output comparator E It generates a EDDI-lz square wave an FBI] LED [pin 24 of the "CHI ;...

Question:Please help. I'm struggling with this class and this is a Lab problem. Please be detailed.

Part II:

  1. As you can see from the program in Part I, creating time base using software delays is not accurate and not easy to implement. In the following program a timer is initialized to generate time base using interrupt and output compare to generate a 500Hz and 2Hz LED flash.
  2. Type the following program in the AsmIDE editor and run the program. Add comments for each assembly line used and explain its operation. (Do not forget that copy and paste may not always work.)
  3. When the program runs, the LEDs on the board should be flashing.
  4. What is the rate that Timer Interrupt happens?
  5. Modify the program to change the flash rates to 1 second and 60 seconds. Can we make a clock using this timer?
  • Attachment 1
  • Attachment 2
  • Attachment 3
mmmmmmmmmmmmmmmmmm Funefien: 5TH} Hz square wave routine using output comparator E It generates a EDDI-lz square wave an FBI] LED [pin 24 of the “CHI ; and a 2H: square wave on PB?r LED [pin 31 effl1e HCUII. PEI): equ t DEE: egu 54D TB1H5: equ 2400i] ; 1ms time base of 24mm inslrueljen cycles ; £4,011!) 1: HEW-l2 = 1ms at24 MHz bus speed REGBLK: egu 50 #include reg9s12.h ; include register egualses STACK: egu $21109 erg 510m sou nt25ii: nnb 1 org SEMI] start: Ids #STflCK Id: #firnerfi st: BEBE ; initialize the intvetemr Id: #REGBLK
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question