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:

  1. Open your CodeWarrior project folder
  2. Inside this project folder, you should see a folder called, Sources.
  3. Open the Sources folder. You should see a file called, main.asm.

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!