acn any one help me on these question plz, i am using s12DP256B , 2 MHz
clock
i dont know how to write the code in C using CodeWorrier ( am just learning
C languge)
**
**
*1) Use Module down counter to create 10 ms periodic interrupts. In the ISR
a global 16-bit variable called tick. *
**
*2) Using the 10ms interrupt routine write a program to read input switched
connected to a port say PORTH*
**
*3) Using pulse accumulator module to measure the velocity and distance of a
vehicle. A sensor attached to wheel generates 60 pulses per rotation of the
wheel that has the radius of 30 cm. Measuring 60 pulses will indicate a
rotation (distance increment of 2pi r). *
**
*
4) Generate a left aligned, positive PWM signal with 20 ms period and
variable duty cycle. Simulate and verify the operation for 25% and 75% duty
cycles in Code warrior. Let the desired velocity of a DC motor is read as
from the 8 ]bit DIP switch of the Dragon 12 target board. Study the
schematics and port PWM module to the target board to control the velocity
of a DC motor. Duty cycle percentage * Max velocity of DC motor will be
generated.
*
--
IF YOU DEVELOPE THE HABITS OF SUCCESS,
YOU'LL MAKE SUCCESS A HABIT
[Non-text portions of this message have been removed]

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )