I'm working on a project with a PIC18F66J50. Till now all is working fine with FC5.
Now i'm try to implement a RC5 receiver but what ever i experiment thare is no reacting result from the controler.
I did some test on Ebloks with varius other controlers and that works as it should be.
I even only put in the Matrix RC5 receiver example only but no results. also different clock experiments but nothing..
Are thare users who experiance the same problems like me?
Has any one a RC5 receiver working on a PIC18F?
RC5 receiver with PIC18Fxx
Moderator: Benj
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
RC5 receiver with PIC18Fxx
Last edited by patrick schoon on Sun Oct 21, 2012 8:10 pm, edited 1 time in total.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: RC5 receiver with PIC18F66J50
Hi Patrick,
Can you please post the program you have tried so that we can have a look what's going wrong?
Can you please post the program you have tried so that we can have a look what's going wrong?
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
Re: RC5 receiver with PIC18F66J50
Dear Enamul,
Thanks for the effort to look over the programm.
As told it's a copy of the Matrix FC5 RC5 reader example, exept i changed the display for RS232 output.
I tested it on a PIC16F877A and all is working fine..
The programm is starting up until the Startup mesage on the RS232.
Thanks for the effort to look over the programm.
As told it's a copy of the Matrix FC5 RC5 reader example, exept i changed the display for RS232 output.
I tested it on a PIC16F877A and all is working fine..
The programm is starting up until the Startup mesage on the RS232.
- Attachments
-
- 1. RC5_66J50.fcf
- (14 KiB) Downloaded 378 times
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
- Contact:
Re: RC5 receiver with PIC18F66J50
Hi Patrick
I dont have the device you are using, but Ive attched a simple test program I wrote to use the eblock for testing RC5 remote controllers
I use Timer rather than interupt and have it connected to Port C bit 6 (16F877A)
(I know im using a 4 line display but that should not be much of a problem to alter)
Also have you checked the jumpers on the e-block are set correctly for your device etc.
I dont have the device you are using, but Ive attched a simple test program I wrote to use the eblock for testing RC5 remote controllers
I use Timer rather than interupt and have it connected to Port C bit 6 (16F877A)
(I know im using a 4 line display but that should not be much of a problem to alter)
Also have you checked the jumpers on the e-block are set correctly for your device etc.
1 in 10 people understand binary, the other one doesn't !
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
- Contact:
Re: RC5 receiver with PIC18F66J50
Thanks,Enamul
Its been a long day
Its been a long day
1 in 10 people understand binary, the other one doesn't !
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
Re: RC5 receiver with PIC18F66J50
John,
Did test your small programm you attached.
No results with this.
Did some more tests between a working MCU and the 18F66J50.
I checked both c codes and think thare are differences in seting up the timer-0
For now no time left to invest.
Thanks,
Patrick
Did test your small programm you attached.
No results with this.
Did some more tests between a working MCU and the 18F66J50.
I checked both c codes and think thare are differences in seting up the timer-0
For now no time left to invest.
Thanks,
Patrick
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
- Contact:
Re: RC5 receiver with PIC18F66J50
Hi Patrick
Yes, the flowchart I attached works ok on my hardware
Yes, the flowchart I attached works ok on my hardware
1 in 10 people understand binary, the other one doesn't !
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
Re: RC5 receiver with PIC18Fxx
The problem is solved.
I managed to modify the original PIC16 code to PIC18.
Main problems are in differences between the P16 and P18 timer declarations.
The attached FC5 code is optimized for PIC18F with 24MHz clock.
Cheers.
I managed to modify the original PIC16 code to PIC18.
Main problems are in differences between the P16 and P18 timer declarations.
The attached FC5 code is optimized for PIC18F with 24MHz clock.
Cheers.
- Attachments
-
- RC5_Rx_PIC18F.fcf
- (28.46 KiB) Downloaded 366 times