Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | Fwd: help plz

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Fwd: help plz - Smart One - Nov 19 22:20:03 2007

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 )