Q: does the PWM component in the basic i/o library use a timer from the target PIC?
I've seen some examples on line that mention the use of a timer.
I downloaded the example PWM_fader (attached) but it doesn't mention a timer. But maybe hidden.
(Can't run it as I have not yet purchased the basic i/o - in the process)
FC9, PICF1615355
Jan Didden
PWM component from basic i/o
-
- Posts: 82
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
-
- Matrix Staff
- Posts: 1921
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: PWM component from basic i/o
Hi Jan.
If you are not sure what pack to get to be able to use a component then all you need to do is find the component within Flowcode, e.g. using search, then select help for the component.
The required pack will be shown: Timers are used but you don't need to worry about any other pack apart from the one listed.
Alternatively, this link will show you want components are included in each pack
If you are not sure what pack to get to be able to use a component then all you need to do is find the component within Flowcode, e.g. using search, then select help for the component.
The required pack will be shown: Timers are used but you don't need to worry about any other pack apart from the one listed.
Alternatively, this link will show you want components are included in each pack
Martin
-
- Posts: 82
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
Re: PWM component from basic i/o
Hi Martin,
No I wasn't worried about getting the right pack. I ordered the basic i/o, that has the PWM functionality.
But I was wondering if that PWM_fade routine used any of the timers of the PIC16F15355.
As you recall, there were some issues with timer - and IOC interrupts in my project, which were resolved thanks to you.
This PWM application is part of the same project and I just don't want to get into the same situation, hence my question if it uses a timer resource.
I thought that CCP (which is used for PWM) required a counter.
Edit: I think I answered my own question: Jan
No I wasn't worried about getting the right pack. I ordered the basic i/o, that has the PWM functionality.
But I was wondering if that PWM_fade routine used any of the timers of the PIC16F15355.
As you recall, there were some issues with timer - and IOC interrupts in my project, which were resolved thanks to you.
This PWM application is part of the same project and I just don't want to get into the same situation, hence my question if it uses a timer resource.
I thought that CCP (which is used for PWM) required a counter.
Edit: I think I answered my own question: Jan