Professional Documents
Culture Documents
ME3007 Vi Điều khiển CLC
ME3007 Vi Điều khiển CLC
2 us
Initial value= (ef*ti)-1=5*60-1=299
Effective frequency=20/4=5Mhz
TMR0 f=Focs/4 /prescale=5/4=1.25 Initial value=256-(TMR0 f*ti)=181
Prescaler=256
initial value=60 microsecond
IV=256-(Fosc/4 /pre *ti)=>ti=10000us=10ms
Prescaler=4,Period=192,Postscale=2
2.048/2^8=8mV/bit
0.896/0.008=112
=01110000
2^8-1 and (-2^15 to 2^15-1)
Will do this
miss enable_interrupts(GLOBAL);