RC5 Crashing

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

RC5 Crashing

Post by JohnCrow »

Hi
I'm currently developing a flowchart using the RC5 e-block.
I have found that I can read the data and process it correctly, but if I hold the key (any one) on the remote handset down for a couple of seconds the program crashes.
The lcd display goes blank and I have to reset the programmer.
I have got round this by having the enable & disable macros either side of the RC5 collect data macro.
My suspicions are by keeping the button pressed on the handset, I'm "filling the input buffer" on the RC5 macro.
This way I can keep the same button pressed and the data is transmitted correctly.

I would just like to know if my thoughts are along the right lines.
Thanks
1 in 10 people understand binary, the other one doesn't !

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: RC5 Crashing

Post by Benj »

Hi John,

That's interesting, there is a while loop inside the RC5_CheckRX function which waits for the data to settle before it returns a value. I wonder if it is something to do with this. Glad you've got a workaround for it. I will have a dig in and see if I can get this sorted.

Any chance you can attach your program or send to me via a PM?

Post Reply