New fcd for PIC18F87J11

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
Chris_Technik-Welt
Posts: 7
Joined: Thu Oct 07, 2010 11:35 am
Location: Austria
Contact:

New fcd for PIC18F87J11

Post by Chris_Technik-Welt »

Hello

I work with the latest Version Flowcode 4.3.7.63
All is fine - Great work!!
For my new Project I have chosen the SBC83i Board with PIC 18F87J11.
http://www.modtronix.com/product_info.p ... cts_id=406

I am not so deep inside programming Pic, and so I am not be able to write a new fcd file for this device.

Can anyone help me with this fcd file?
Many thanks in advance!

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: New fcd for PIC18F87J11

Post by Benj »

Hello,

Here is the FCD for that device. If the chip is not supported in the BoostC compiler and you get loads of errors about non recognised register names then you can try the HiTech compiler by following the guide linked in below.

http://www.matrixmultimedia.com/mmforum ... =26&t=6812
Attachments
18F87J11.fcd
(14.42 KiB) Downloaded 256 times

Chris_Technik-Welt
Posts: 7
Joined: Thu Oct 07, 2010 11:35 am
Location: Austria
Contact:

Re: New fcd for PIC18F87J11

Post by Chris_Technik-Welt »

Hi Benj

Many thanks for your replay and the fcd file.
The HiTech C compiler is already installed on my system.
I have install it with your Howto. It works.

Only one problem with the HiTech compiler.
When I compile my work to hex File all is right but
no information about the configurations words for the Pic is inside in the hex file.
When I load the hex file into Pickit2 Programmer I must set the config words manually.
Do you know anything about this, or is one of my setting wrong.

best regards
Christian

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: New fcd for PIC18F87J11

Post by Benj »

Hello Christian,

When your in Flowcode have you tried clicking Chip -> Configure -> Switch to expert mode.

Hopefully the 18F87J11 device will be in the PPP list and you will be able to set the configuration and click OK. The config data should then be embedded into the hex file on compilation.

If the chip is not available in PPP then I will have a look and see if I can add this support for you on Monday.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: New fcd for PIC18F87J11

Post by Mikat »

Benj wrote:Hello Christian,

When your in Flowcode have you tried clicking Chip -> Configure -> Switch to expert mode.

Hopefully the 18F87J11 device will be in the PPP list and you will be able to set the configuration and click OK. The config data should then be embedded into the hex file on compilation.

If the chip is not available in PPP then I will have a look and see if I can add this support for you on Monday.
For some reason it seems that the PPP cannot add the config file in the hex when using HI-Tech compiler...
At least i didnt get it workin, not even if i open the hex at PPP and set the configs and then save the file, the pickit2 says still that there is no config, the config must done via mplab ...

Mika

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: New fcd for PIC18F87J11

Post by Steve »

The config info should be in the generated C code file and the HEX file. Pelase post these so we can see what is going wrong.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: New fcd for PIC18F87J11

Post by Mikat »

Hi Steve.
Here is the files, compiled with HI-Tech.

Mika
Attachments
display_hitec2.c
(56.08 KiB) Downloaded 251 times
display_hitec2.hex
(11.94 KiB) Downloaded 226 times
display_hitec2.fcf
(30.69 KiB) Downloaded 225 times

trisb
Flowcode V4 User
Posts: 40
Joined: Sat Mar 06, 2010 5:25 am
Location: Chicago USA, & Oxford & Northampton UK
Has thanked: 6 times
Contact:

Re: New fcd for PIC18F87J11

Post by trisb »

Hi, Mika

My Knowledge of flowcode is still very limited, how ever in your post you say you are using the PIC18F87J11.

Looking at the files you have attached you have configured to use a PIC18f4685. if you are still using the PIC18F87J11, you may need to change this in the configs of flowcode. before compiling and give this ago.

Tristan.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: New fcd for PIC18F87J11

Post by Mikat »

Hi Tristan.
The original post is not mine, i just comment that with Hi-Tech the config data dont work, thats why the chip is 18F4685..
With the compiler option chip is right...

Mika

Post Reply