PPP and RC5

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

PPP and RC5

Post by Clive44 »

Hi

I'm about to start using an EB060 RC5 Infrared Board and the guide for testing it states "In PPP open file RC5_TX_RX_1.hex". "In PPP click on “Send” icon" etc.
I'm finding it elusive to find where to download PPP on the Matrix Multimedia website. Also are there any user guides/help files for using PPP?
You know what it's like - new bit of hardware plus software you haven't used before - easy to waste a lot of time on trial and error before the 'penny drops'.

Any help appreciated!!! Thanks

Clive

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PPP and RC5

Post by medelec35 »

Hi Clive.
Since you are a V5 user, then you can find ppp in:
C:\Program Files (x86)\Flowcode\v5\Tools\PPP
if 64bit windows or
C:\Program Files\Flowcode\v5\Tools\PPP
if 32 bit windows.

Maybe best thing to do is go into the PPP directory, then right click on PPPv3 application and choose 'Send to' then select 'desktop (create shortcut)'
Then for the future you can just click on the newly created shortcut on your desktop (that's if it's not already there)?

As for help, there is a help file within the ppp directory

Martin
Martin

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: PPP and RC5

Post by Clive44 »

Ah, OK! Sorry looks like I was being a bit dim there.
Many thanks

Clive

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PPP and RC5

Post by medelec35 »

You welcome.

No need to be sorry at all was a reasonable question to ask :)

Martin
Martin

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: PPP and RC5

Post by Clive44 »

Hi Martin

If I load the hex file RC5_TX_RX_1.hex then all works fine. I can read codes from a Philips RC5 remote control.

However if I try and compile the RC5_TX_RX_1.fcf in Flowcode 5 it comes back with errors -

RC5_TX_RX_1.c(704:2): error: unknown identifier 'FCL_PULSEWIDTH'
RC5_TX_RX_1.c(704:2): error: invalid operand 'FCL_PULSEWIDTH'
RC5_TX_RX_1.c(704:17): error: failed to generate expression
RC5_TX_RX_1.c(791:6): warning: local variable 'FCL_SIGNALEDGE_PULSEWIDTH' may be used uninitialized
RC5_TX_RX_1.c(801:6): warning: local variable 'FCL_SIGNALEDGE_PULSEWIDTH' may be used uninitialized
RC5_TX_RX_1.c success

failure

.....Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:

If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

Everything as as per the original - PIC16F877A at 19 odd MHz etc. Do I need to define the variables above in Flowcode?

Best regards

Clive

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: PPP and RC5

Post by Benj »

Hi Clive,

Please can you have a go with this test file instead. It uses the RC5 component and should be a lot simpler to follow what's going on.
Attachments
RC5.c.fcf
(9.5 KiB) Downloaded 305 times

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: PPP and RC5

Post by Clive44 »

Hi Benj

That one compliles OK, but doesn't do anything. I've got the EB-005 LCD board in Port C and the EB060 IR Board in Port D. I've connected D6 on the IR board by flying lead to C.2 on the PIC16F877A.
Squirting the RC5 remote control at the IR receiver doesn't do anything - LCD stays blank.

Clive

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: PPP and RC5

Post by Benj »

Hi Clive,

I think the component connection settings in the file I sent are RC5 - PortC and LCD - PortB.

You will have to check the RC5 connections for the correct jumper setting to use.

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: PPP and RC5

Post by Clive44 »

Hi Ben

Yes, LCD now Port B and IR board now Port C. Jumpers set so IRin can be seen with oscilloscope producing nice RC5 waveform on C.2 directly on PIC16F877A IC pin. LCD still blank.
What should I expect to see on the LCD?

regards

Clive

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: PPP and RC5

Post by Clive44 »

Hi Ben

Changing the two macros LCDDisplay(0)Command(in) to LCDDisplay(0)PrintNumber(in) makes it work.
Have a good weekend and thanks for your help.

Clive

Post Reply