Question
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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started