gLCD EB058 18f4455

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
lewisrendal
Flowcode V4 User
Posts: 61
Joined: Tue Feb 01, 2011 7:21 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

gLCD EB058 18f4455

Post by lewisrendal »

Hi,

Compiles but does not run, using the patch to marry the pins on the E blocks eb058.

Using v4.5 flowcode

ports in use -

B1 = SCK
B0 = SDI
C7 = SDO
C0 = CS

Anyhelp would be grateful

Cheers
James :(
Attachments
18f4455_oct_2011_test_v1.1.fcf
(9.5 KiB) Downloaded 220 times

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
Contact:

Re: gLCD EB058 18f4455

Post by JohnCrow »

Hi James
Ive just tried the gLCD on a 18F4455, not been able to get it to work myself.
Spent a bit of time changing settings but not got anywhere.
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: gLCD EB058 18f4455

Post by Benj »

Hello,

I have managed to get it working.

For the split port SPI chips you must keep the CS pin on portB unless you are using the software SPI mode.

I have my connections set up as follows.

EB058 - Connected to PortB.

Jumper setting C.

Single core wire used to patch signals across.

RB0 - SDI
RB1 - SCK
RB2 - CS
RC7 - SDO

Here is my program.
Attachments
Flowcode1.fcf
(7.5 KiB) Downloaded 237 times

lewisrendal
Flowcode V4 User
Posts: 61
Joined: Tue Feb 01, 2011 7:21 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: gLCD EB058 18f4455

Post by lewisrendal »

Hi Ben,

Yes I got it working but had to change a few software settings that were enabled.

Just an update:-

EB058 works with - 16f88, 18f4455
EB058 Not Working with - 16f877a, 16f873a

EB051 works with - 16f88, 16f877a

EB063 works with - 16f88
EB063 Not working with - 16f877a, 16f873a

The pattern emerging here is the 16f87xa pic's are not working with spi commands, I have correctly connected, hence all the other applications working, so the question is what's happening ???

I'm running under windows 7 and the flowcode version is v4.5.18.74
The position for the jumper is "B" for the EB063 & EB058 when using the 16f877a and 16f873a, and I have also used the patch connections with no joy.

Please advise

James

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
Contact:

Re: gLCD EB058 18f4455

Post by JohnCrow »

Hi James

Try these EB063 programs.

They are working fine on my hardware using 16F877A's

I Dont have any 16F873s to test
EB063-Keypad Rx.fcf
Receiver Program
(7.5 KiB) Downloaded 217 times
EB063-Keypad Tx.fcf
Transmitter Program
(9 KiB) Downloaded 228 times
Also try this Transceiver.
Set up two identical systems and load into both.
Allows half duplex communications
EB063-Keypad Half Duplex Transciever.fcf
Transceiver Program
(10 KiB) Downloaded 239 times
1 in 10 people understand binary, the other one doesn't !

lewisrendal
Flowcode V4 User
Posts: 61
Joined: Tue Feb 01, 2011 7:21 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: rf 16f877a issue

Post by lewisrendal »

Hi John,

Thanks for your examples.

Unfortunatly I have not been able to get the devices to talk, I have loaded your examples directly into the chips no mods etc.. and still not working, about time the boys from matrix shed a little light on this to be honest.

Regards
James

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
Contact:

Re: gLCD EB058 18f4455

Post by JohnCrow »

This is very strange.

Both my programmmers are the EB006-7
With the standard 19.660800 crystal

Ive had both systems working perfectly today. Ive had them set up next to each other on the bench, didnt even need to plug an aerial into the RF boards.

Just a thought, seeing as you are having problems with the spi command on port c, have you tried a simple binary counter (say 0 to 255 in steps of 1) to output to the LED E-Block on Port C.

If this fails you know there is a problem with either the PIC or the port.
1 in 10 people understand binary, the other one doesn't !

lewisrendal
Flowcode V4 User
Posts: 61
Joined: Tue Feb 01, 2011 7:21 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: gLCD EB058 18f4455

Post by lewisrendal »

Hi John,

Yes I agree, I have a counter that displays on the lcd, this counts 8 bit, this works fine and keeps working, only when I introduce the rf component into the circuit, the counter does not work ?
It's as if the program does not get past this component in the sequence of the software ?

I have had the 18f445 working on spi on the glcd, so I will try that next and see what happens ?

Cheers
James

lewisrendal
Flowcode V4 User
Posts: 61
Joined: Tue Feb 01, 2011 7:21 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: gLCD EB058 18f4455

Post by lewisrendal »

Hi John,

Have found the problem, one of the development boards I'm using have been left from a previous project with 18f4455, USB HID project, the usb port selects jumper settings C3, C4 and C5, when returned back to normal position the rf modules started talking.

Thanks for you pointers.

Regards
James :D

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
Contact:

Re: gLCD EB058 18f4455

Post by JohnCrow »

Thats great
Glad you've got it sorted.
1 in 10 people understand binary, the other one doesn't !

Post Reply