5 //The PWM has no loop function. It runs entirely out of the ISR.
11 //s/w "BCM"(<== "Binary Code Modulation") timer setup
14 TIMSK0
|= _BV(OCIE0A
);
19 ISR(TIMER0_COMPA_vect
){
26 Q
|= (pwm_val
[0] & pwm_cycle
)?1:0;
27 Q
|= (pwm_val
[1] & pwm_cycle
)?2:0;
28 Q
|= (pwm_val
[2] & pwm_cycle
)?4:0;
29 Q
|= (pwm_val
[3] & pwm_cycle
)?8:0;
30 Q
|= (pwm_val
[4] & pwm_cycle
)?16:0;
31 Q
|= (pwm_val
[5] & pwm_cycle
)?32:0;
32 Q
|= (pwm_val
[6] & pwm_cycle
)?64:0;
33 Q
|= (pwm_val
[7] & pwm_cycle
)?128:0;
39 uint8_t pwm_cycle
= 1;
42 #else//HAS_PWM_SUPPORT
46 #endif//HAS_PWM_SUPPORT