#define Outp P1
unsigned char ctc[8];//PWM Main counter
unsigned char pct[8];//PWM Duty vars
void timer_isr(void){//Using 8bit reload to define base freq
unsigned char p,i;
p=0;
for(i=0;i<8;i++){
p>>=1;
ctc[i]++;
if(ctc[i]>pct[8]){p&=0x7f;}else{p|=0x80;}
}
Outp=p;
TF?=0;
}
void main(void){
while(1){
:::
pct{?]=???;//AdjPWM Vars
:::
}
}