counter interrupt for 8051
Discussion in "8051 Discussion Forum" started by software_developer Nov 15, 2014.
Wed Nov 19 2014, 04:04 pm
Have you ever used timer in interrupt mode? If yes then it's the same thing here. Timer uses internal clock whereas counter uses external clock or a signal on a port pin. So if know know timers then counter is same. Try to write something and let us know if you have any issues.
Tue Dec 02 2014, 04:08 pm
I'm actually trying to code a timer interrupt in Assembly. I can try to write a counter interrupt later in Assembly or in C. But I'm not using Keil compiler. So, it might need a few adjustments accordingly!
Best regards
Psy
Best regards
Psy
Wed Dec 10 2014, 10:02 am
Assembly is easier when it comes to interrupts and it does not matter what compiler or assembler you're using as assembly language is related to controller not compiler. So there is no scope of change in syntax or anything. Try to write something we will help you fix the code and make you learn.
Powered by e107 Forum System