Yup, you want to keep the isr as short as possible; set only the flag.
Then, back in main, check the flag, do the hser, then reset flag.
Also, try adding a label to the main loop and a goto at the bottom.
Robert
Yup, you want to keep the isr as short as possible; set only the flag.
Then, back in main, check the flag, do the hser, then reset flag.
Also, try adding a label to the main loop and a goto at the bottom.
Robert
Thanks Demon, this is just a trial program and I wanted to set the PIC up properly before arranging the code nicely with labels etc.
___________________
WHY things get boring when they work just fine?
I can't guarantee I have not fiddled with these but here they are
Last edited by richard; - 24th March 2015 at 13:00. Reason: still can't tuype
Nops
the same error still exists.
BTW if its not too much to ask, can you also upload the compiled HEX file so I can get some results in the mean time someone helps to resolve the problem.
___________________
WHY things get boring when they work just fine?
rename it back to . hex
Bookmarks