View Full Version : Serial interrupt on PicBasic Pro
mregisd
- 6th February 2012, 12:52
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..
6256
HenrikOlsson
- 6th February 2012, 14:44
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.
mregisd
- 6th February 2012, 16:17
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
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.