sathya moorthy

pwm generation using ic MC68HC908JK3E

Discussion created by sathya moorthy on May 12, 2008
Latest reply on May 13, 2008 by bigmac
Hi,
 am sathya
i want to generate the pwm, using the MC68HC908JK3E
 the problem is AS U KNOW der r one timer and two channrels
am using CH0 ,i.e PIN NUM 19
  
   am using TIMCH0 Interrupt to generate a pwm
i.e wen compareoccures it cals the interrupt and into the ISR
    WEN I USING EQUAL WIDTH ,I GOT THE PWM OF Equal
width,
but wen i go for varying pule width ,not able get the varying pwm
dat means if we give the 8 varying count in the CH0 Interrupt  corresponding to the pwm width,
at dat time some values are skipping
 derfore can u suggest hw to use interrupts to generate the pwm ?
 and i am using codewarrior 5.7.0

the code is below can u reply ?





Outcomes