go away spammer

Author Topic: Latest software missing PWM functions?  (Read 1924 times)

0 Members and 1 Guest are viewing this topic.

Offline jhallerTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
Latest software missing PWM functions?
« on: September 22, 2009, 04:28:29 PM »
Hello,

I think that the latest Axon source code may be missing the PWM functions, can anyone verify?

I unzip it, serach for a function like PWM_Init_timer1_LED and nothing is found.

Thanks.

Offline bsamuels

  • Jr. Member
  • **
  • Posts: 28
  • Helpful? 0
Re: Latest software missing PWM functions?
« Reply #1 on: September 23, 2009, 08:56:01 AM »
It's in pwm.c

Here's the full function if you still cannot locate it:
Code: [Select]
void PWM_Init_timer1_LED(u08 bitRes){
// enable timer2 as 8,9,10bit PWM
if(bitRes == 9)
{ // 9bit mode
sbi(TCCR1A,PWM11);
cbi(TCCR1A,PWM10);
}
else if( bitRes == 10 )
{ // 10bit mode
sbi(TCCR1A,PWM11);
sbi(TCCR1A,PWM10);
}
else
{ // default 8bit mode
cbi(TCCR1A,PWM11);
sbi(TCCR1A,PWM10);
}
// clear output compare values
OCR1B = 0;
}

 


Get Your Ad Here

data_list