Question: Assembly Program Instructions: Assuming that clock pulses are fed into pin PT6, write a program for channel 6 to read the TCNT value on every
Assembly Program
Instructions:
Assuming that clock pulses are fed into pin PT6, write a program for channel 6 to read the TCNT value on every rising edge. Place the result on PORTA and PORTB. Review TCNT, registers, and examples in lecture 7 thoroughly
Hints
- Set PORTA and PORTB output
- Enable timer
- No interrupt and pre-scaler value is 64
- Select channel 6 for input capture
- Select channel 6 for capture on rising edge
After you have successfully assembled your program, and debugged your program, download your program, and test your program.
Submissions Requirement:
After successful testing of your CodeWarrior program, access the main.asm file by completing the following steps:
- Open your CodeWarrior project folder
- Inside this project folder, you should see a folder called, Sources.
- Open the Sources folder. You should see a file called, main.asm.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
