Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Your task is to design and interface an LED to one of the outputs from the Timer module. a) Design the necessary interfacing circuits

image text in transcribed

1) Your task is to design and interface an LED to one of the outputs from the Timer module. a) Design the necessary interfacing circuits required between the output port and the LED. Assume that you want to operate the LED at 15ma and the forward voltage of the is 2 Volts b) Draw a flow chart/ module to make an LED turn on for 250ms and off for 750ms, periodically. Assume t the HCS12 system bus clock is set at 4MHz and you are going to use output compare mode to generate the signal. Derive the parameters required to set up the Prescaler and pseudo code if you are to program the HCS12 to utilize the timer hat all of the registers involve. 2) Your task is to use the HCS12 to perform frequency measurement of an unknown signal. Discuss the hardware and software set up in detail to read the frequency 3) You are planning to utilize the PWM Module to generate output pulses for a specific application. Assume that the HCS12 is configured to operate at 10 MHz internal clock. Determine the Prescaler (1:128) value along with a divide by N (1:255) value to generate the PWM signal with up to 20 milliseconds period. the task. What is the minimum duty cycle time (resolution) of the PWM? Describe how to set up your software to perform 1) Your task is to design and interface an LED to one of the outputs from the Timer module. a) Design the necessary interfacing circuits required between the output port and the LED. Assume that you want to operate the LED at 15ma and the forward voltage of the is 2 Volts b) Draw a flow chart/ module to make an LED turn on for 250ms and off for 750ms, periodically. Assume t the HCS12 system bus clock is set at 4MHz and you are going to use output compare mode to generate the signal. Derive the parameters required to set up the Prescaler and pseudo code if you are to program the HCS12 to utilize the timer hat all of the registers involve. 2) Your task is to use the HCS12 to perform frequency measurement of an unknown signal. Discuss the hardware and software set up in detail to read the frequency 3) You are planning to utilize the PWM Module to generate output pulses for a specific application. Assume that the HCS12 is configured to operate at 10 MHz internal clock. Determine the Prescaler (1:128) value along with a divide by N (1:255) value to generate the PWM signal with up to 20 milliseconds period. the task. What is the minimum duty cycle time (resolution) of the PWM? Describe how to set up your software to perform

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions