pwm ATTiny 85
Posted: Tue Feb 01, 2011 8:57 pm
hello Lads,
it seems i have an issue with using a PWM on a Tiny 45/85.
i think the main problem is an undeclared TCCR1A and B. see below.
\test ref.c: In function 'FCD_PWM0_Enable':
\MYFLOW~1\test ref.c:344: error: 'TCCR1B' undeclared (first use in this function)
\MYFLOW~1\test ref.c:344: error: (Each undeclared identifier is reported only once
\MYFLOW~1\test ref.c:344: error: for each function it appears in.)
\MYFLOW~1\test ref.c:353: error: 'TCCR1A' undeclared (first use in this function)
\MYFLOW~1\test ref.c: In function 'FCD_PWM0_Disable':
\MYFLOW~1\test ref.c:393: error: 'TCCR1A' undeclared (first use in this function)
\MYFLOW~1\test ref.c: In function 'FCD_PWM0_ChangePeriod':
\MYFLOW~1\test ref.c:450: error: 'TCCR1B' undeclared (first use in this function)
i don't have it with the ATTiny26.
i have checked the two FCD files and although the [TMR0] part should be the same for all chips, they aren't.
help would be very welcom
thanks
it seems i have an issue with using a PWM on a Tiny 45/85.
i think the main problem is an undeclared TCCR1A and B. see below.
\test ref.c: In function 'FCD_PWM0_Enable':
\MYFLOW~1\test ref.c:344: error: 'TCCR1B' undeclared (first use in this function)
\MYFLOW~1\test ref.c:344: error: (Each undeclared identifier is reported only once
\MYFLOW~1\test ref.c:344: error: for each function it appears in.)
\MYFLOW~1\test ref.c:353: error: 'TCCR1A' undeclared (first use in this function)
\MYFLOW~1\test ref.c: In function 'FCD_PWM0_Disable':
\MYFLOW~1\test ref.c:393: error: 'TCCR1A' undeclared (first use in this function)
\MYFLOW~1\test ref.c: In function 'FCD_PWM0_ChangePeriod':
\MYFLOW~1\test ref.c:450: error: 'TCCR1B' undeclared (first use in this function)
i don't have it with the ATTiny26.
i have checked the two FCD files and although the [TMR0] part should be the same for all chips, they aren't.
help would be very welcom
thanks