I am having issue determine the instructions where we create a program and activate flash LEDs in a given Hz frequency. I reviewed the HCS12 Microcontrollers and Embedded Systems, 1st Edition chapters more than once but a fail to develop program that relates step down below. I need help to solve this problem. It is due tomorrow tonight?
Textbook: HCS12 Microcontrollers and Embedded Systems, 1st Edition
Note: To become familiar with using clock frequency, running your program automatically in POD Mode, using Dragon12-Light boards.
Project: Please read Chapter 3 of your textbook for writing subroutines and Chapter 4 of your textbook; then, write assembly programs to do the following:
Flash all LEDs in one Hz frequency when running your program in the EVB mode (also called debug mode). In EVB mode, the clock frequency for instructions is 24MHz.
Flash all LEDs in one Hz frequency when running your program in the POD mode (also called auto mode). In POD mode, the clock frequency for instructions is 4MHz.
You must write a subroutine that consumes exactly one second of CPU time. To achieve the flashing effect, in your main program, you need to turn on all the LEDs, then, call this subroutine. Turn off all LEDs, then, call this subroutine.
Your program must flash LEDs continuously in one Hz frequency until a Reset.