Page 1 of 1

4 timers using a pic chip.

Posted: Mon Aug 17, 2020 6:53 pm
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.

Re: 4 timers using a pic chip.

Posted: Mon Aug 17, 2020 7:24 pm
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?

Re: 4 timers using a pic chip.

Posted: Mon Aug 17, 2020 8:16 pm
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.

Re: 4 timers using a pic chip.

Posted: Mon Aug 17, 2020 9:24 pm
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 1986 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.

Re: 4 timers using a pic chip.

Posted: Tue Aug 18, 2020 12:09 pm
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 147 times