GenerÃ¥te 2 wÃ¥ves of dÃfferent duty cycles on 2 dÃfferent port pÃns by usÃng both tÃmers in 8051
Discussion in "8051 Discussion Forum" started by Shayaan_Mustafa Apr 11, 2014.
Fri Apr 25 2014, 10:59 am
I think its high time you start using interrupts. coz you cannot just add a loop like this. djnz behaves differently.. if you mistakenly decrement your register from 0 it will roll back to ff and loop will continue forever. You need extra code to run this in loop. Think and then write.
Powered by e107 Forum System