Pic16f887A

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Post Reply
JDN
Posts: 3
Joined: Wed Jan 28, 2009 6:55 pm
Contact:

Pic16f887A

Post by JDN »

Hi
I have written a program with Flowcode V3 for a 40pin dil Pic16f887A. I would now like to use the 44pin TQFP package device and install the program on board using a MPLAB IDC2. The pinouts for this device are differant Can anyone tell me if the program will install itself into the new pin configuration? if not how do I go about making a template in flowcode for this device Thank you 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: Pic16f887A

Post by Benj »

Hello

The TQFP package will react just as the DIP package reacted so you do not have to do anthing here with FCD files etc. As long as your Port Pin connections are the same then you should have no problems. If you wish to make an FCD for the 44 pin package then you can do so by changing the following. Note that this is only superficial and will only affect the Flowcode simulation.

[Device] Section
Pins=44
DefaultPackageType=1

[Pins] Section
Rename as appropriate and add extra pins

[Ports] Section
Renumber PortPins as appropriate

Leave everything else as is.

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

Post by Benj »

Hello

Here is the 44-Pin TQFP FCD file. I have not tested it much but it seems to work ok. Let me know if theres any problems.

Simply drop the file into your Matrix Multimedia/Flowcode V3/FCD folder and restart Flowcode. You will then have the option for a 16F877A_TQFP in the target list.
Attachments
16F877A_TQFP.fcd
(7.82 KiB) Downloaded 251 times

JDN
Posts: 3
Joined: Wed Jan 28, 2009 6:55 pm
Contact:

Re: Pic16f887A

Post by JDN »

Hi
Thank you for the file
The FCD file simulates ok but will not compile to HEX. When entering the "chip configure" menu I get a report "Unrecognised chip on command line ". If I select "OK" and enter the "expert config screen" the device does not appear in the "select Chip" menu. If I select PIC16F887A I get a report "Configure data is differant" and options to use either of the pics. If I select PIC16F887A_tqfp and compile to hex I then get a error report (See attached) am I just being thick and missing something???
Best Regards
James
Attachments
test prog.msg.txt
(10.72 KiB) Downloaded 223 times

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

Post by Benj »

Hello

Sorry about that all working now. (hopefully) 8)

Missed this line from the [Device] section.

ChipName=16f877a
Attachments
16F877A_TQFP.fcd
(7.83 KiB) Downloaded 235 times

JDN
Posts: 3
Joined: Wed Jan 28, 2009 6:55 pm
Contact:

Re: Pic16f887A

Post by JDN »

up and running now Thank you

Post Reply