1 Attachment(s)
Serial interrupt on PicBasic Pro
I need some help with this serial interrupt... It's working but not so well because when the interrupt happens I receive the serial data and treat the information. The problem is when the program return from the 1st interrupt to the Loop, I can't do another interrupt. I send serial data but the interrupt not happens.
So, please, can anyone help me?
Thanks...
Here's my code..
Attachment 6256
Re: Serial interrupt on PicBasic Pro
Hi,
I never use ON INTERRUPT myself and I haven't looked very closely at your code yet but the first thing that pops out is RCREG = DISCARD... Why do you write to RCREG?
If you want to flush it you should read it, ie. DISCARD = RCREG
/Henrik.
Re: Serial interrupt on PicBasic Pro
Hi,
You're right... i want to clean RCREG, so the right command is DISCARD = RCREG..
I changed this but the problem still happens.
Thanks
/Regis