Hi,
I have never used assembly language before, but I have to write some code for a microcontroller and am a bit stuck - if anyone could help i'd really appreciate it!
The basic problem is, first, I have to write two delays that will last 10 microseconds and 10 milliseconds respectively. (My controller is running at 4 MegaHertz) then, I have to create a counter that will count from when a bit is set to when the bit is not set, am not really sure how to do this. For the delays, I think I would need to use DECFSZ but i'm not certain. Can anyone help please?
Vix
vicky.a.roberts@lycos.com
I have never used assembly language before, but I have to write some code for a microcontroller and am a bit stuck - if anyone could help i'd really appreciate it!
The basic problem is, first, I have to write two delays that will last 10 microseconds and 10 milliseconds respectively. (My controller is running at 4 MegaHertz) then, I have to create a counter that will count from when a bit is set to when the bit is not set, am not really sure how to do this. For the delays, I think I would need to use DECFSZ but i'm not certain. Can anyone help please?
Vix
vicky.a.roberts@lycos.com