Timer 2 in PIC 18F2550

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
RobinCordell
Flowcode V4 User
Posts: 15
Joined: Fri Mar 12, 2010 9:37 pm
Has thanked: 4 times
Contact:

Timer 2 in PIC 18F2550

Post by RobinCordell »

I have developed an application using a PIC18F4455 on an EB006 that makes use of the Timer 2 module within the 4455. To convert this into a deliverable unit, I have built the circuit onto an Olimex PIC-P28 module and intended to use the PIC18F2550 (because I did not need the number of output pins on the 4455). However, when I modified my program to use the 2550, there was no Timer 2 available as an interrupt source. Is there an updated 2550 configuration file available?

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: Timer 2 in PIC 18F2550

Post by medelec35 »

Hi Robin,

There is a small bug in 18F2550.fcd file which is located in C:\Program Files\Matrix Multimedia\Flowcode V4\FCD if 32 bit windows
or
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD if 64 Bit widows.

Just repaced the old 18F2550.fcd with attached corrected the file.

Would you mind letting me know if it works please.

You will need to close flowcode for updated file to take effect.


Martin
Attachments
18F2550.fcd
(13.67 KiB) Downloaded 261 times
Martin

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Timer 2 in PIC 18F2550

Post by jgu1 »

Hi Martin!

Is this for those who use C or for FC and is it a good idea for all to replace the FCD file, please.

Best regard

jgu1 :D

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: Timer 2 in PIC 18F2550

Post by medelec35 »

jgu1 wrote:Hi Martin!

Is this for those who use C or for FC and is it a good idea for all to replace the FCD file, please.

Best regard

jgu1 :D
Timer2 will still work,if you don't replace the current 18F2550.fcd
All the file does that I have posted, is allow TMR2 to appear as an interrupt source on the drop down list within interrupt component.
So Yes, if not using C it's a good idea for anyone who uses flowcode V4 to replace their existing 18F2550.fcd with the new modified one.

Martin
Attachments
Selection choices after replacing 18F2550.fcd with attached file
Selection choices after replacing 18F2550.fcd with attached file
TMR2 selection bug.jpg (141.1 KiB) Viewed 3932 times
Last edited by medelec35 on Mon Aug 08, 2011 9:27 pm, edited 1 time in total.
Martin

RobinCordell
Flowcode V4 User
Posts: 15
Joined: Fri Mar 12, 2010 9:37 pm
Has thanked: 4 times
Contact:

Re: Timer 2 in PIC 18F2550

Post by RobinCordell »

Thanks Martin, that has sorted it out.

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: Timer 2 in PIC 18F2550

Post by medelec35 »

Glad it works.
Thanks for letting us know.

Martin
Martin

Post Reply