4 timers using a pic chip.

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
astro1234
Posts: 50
Joined: Mon Apr 10, 2017 12:53 pm
Has thanked: 39 times
Been thanked: 13 times
Contact:

4 timers using a pic chip.

Post by astro1234 »

Hi.
I am looking for a pic chip, so I can run 4 timers
Using flowcode v8.
I need to set up 4 different pwm channels on the chip, but all
I can see in flowcode v8 are chips with 3 timers.
Is there a pic chip with four timers in flowcode.?
Which chip will I need to run these pwm on, in flowcode.v8?
Must be dil type and not surface mount.
Thanks in advance. Roy.

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

Re: 4 timers using a pic chip.

Post by medelec35 »

Hi Roy,
there should be a fair few that can do that.
What about number of pins and minimum memory?
To be stating you off, what about pic18F24k40?
Martin

astro1234
Posts: 50
Joined: Mon Apr 10, 2017 12:53 pm
Has thanked: 39 times
Been thanked: 13 times
Contact:

Re: 4 timers using a pic chip.

Post by astro1234 »

Thank you Martin for the info.
I need to order some chips from RS tomorrow.
Just looked at the chip in flowcode, and see that it only shows 3 timers 2-4 and 6 ,am I missing some thing in flowcode.?
Regards Roy.

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

Re: 4 timers using a pic chip.

Post by medelec35 »

We maybe on crossed purposes.
I thought as you mentioned PWM you are referring to CCP PWM.
Now I know you are referring to timer interrupts, loads of devices has more than 4.
The 18F24K40 was just a random device.
These are the timer interrupts:
Timer Interrupts 18f24k40.png
Timer Interrupts 18f24k40.png (49.53 KiB) Viewed 1980 times
There are things to consider before ordering chip.
E.g memory and pins, I may be able to find a more suitable device.
The interrupt don't work the same so more details are required to determine if suitable or not?
Also its best to create and compile a flowchart to make sure compiles ok with the required target device.
Martin

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: 4 timers using a pic chip.

Post by Benj »

Hello,

Here is a resource you can maybe use, just lists the 8-bit PIC devices and the number of 8-bit and 16-bit timers onboard.
Timers8-bitPIC.txt
(19.62 KiB) Downloaded 146 times

Post Reply