AVR timer
VFX
info at vfx.hu
Mon Jul 3 10:26:50 CEST 2006
Hali!
> clr r16
> out TCNT0,r16 <<<<<<<<< itt a bibi?
> rjmp c_tH
> c_tL_chk : in r16,TIFR
> sbrc r16,OCF0A <<<<<<<<< vagy itt?
> rjmp c_sL
> rjmp c_tL
Nem tudom, itt nem latszik, de torlod valahol az OCF0A bitet? Mert ha
egyszer is valahol bebillent, akkor az csak akkor torlodik, ha 1-t irsz
a bitbe vagy belep a HW interruptba. Itt ugy latom HW interrupt nem
jatszik, igy neked kell kezzel torolni.
UDV. VFX.
http://www.vfx.hu
More information about the Elektro
mailing list