Provide the subroutine for the specific output compare chann

Provide the subroutine for the specific output compare channel as shown in the table above. That means you have to provide four different subroutines. All four Output Compare Channels are not identical. Channel OC2 Delay44ms movb #$90, TSCR1 movb #$, TSCR2; configure prescale factor to 32 movb #$, TIOS ldd TCNT addd # std Tc wait brclr TFLGl, 4 wait; if C2F in TFLG1 is set, return rts

Solution

Delay 44ms movb #90,TSR1

movb#$08,TSCR2

movb#$FF,TIOS

ldd TCNT

addd #TCR1

std TCRN

wait brclr TFLG1,$20,wait

rts

 Provide the subroutine for the specific output compare channel as shown in the table above. That means you have to provide four different subroutines. All four

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site