Discussion in "8051 Discussion Forum" started by    Shayaan_Mustafa    Apr 11, 2014.
Fri Apr 25 2014, 10:59 am
#11
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.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am
JeremyCycle
Fri May 17 2024, 09:46 am
FrabSeby
Thu May 16 2024, 07:31 pm
PeterGem
Thu May 16 2024, 06:27 am
Timothywalay
Thu May 16 2024, 04:40 am