Jan 02, 2017
01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 02, 2017
01:31 AM
Hello,
how is it possible to get a low PWM frequency of 1.5 Hz? In the settings of the CCU4 and CCU8 it is only possible to type in an integer value. The function "PWM_CCU4_SetFreq" only accepts uint32_t values for the frequency.
Has anybody an idea or should I use directly the LIB functions (XMC_CCU4_SLICE_SetTimerPeriodMatch) as uses inside the function.
Thanks
M.Schneiders
how is it possible to get a low PWM frequency of 1.5 Hz? In the settings of the CCU4 and CCU8 it is only possible to type in an integer value. The function "PWM_CCU4_SetFreq" only accepts uint32_t values for the frequency.
Has anybody an idea or should I use directly the LIB functions (XMC_CCU4_SLICE_SetTimerPeriodMatch) as uses inside the function.
Thanks
M.Schneiders
- Tags:
- IFX
4 Replies
Jan 02, 2017
07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 02, 2017
07:09 AM
Hi M.Schneiders,
have you took a look at following example: CCU4_SLICE_CONFIG_EXAMPLE_XMC47 (http://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html)? This example demonstrates the usage of timer concatenation with CCU4 unit while it´s not possible to generate low frequency (such as yours) with a high resolution (I don´t know what resolution would suffice to you but in the example highest possible resolution is used). Please take a look at the mentioned example while I believe it could give an idea regarding your question.
Best regards,
Deni
have you took a look at following example: CCU4_SLICE_CONFIG_EXAMPLE_XMC47 (http://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html)? This example demonstrates the usage of timer concatenation with CCU4 unit while it´s not possible to generate low frequency (such as yours) with a high resolution (I don´t know what resolution would suffice to you but in the example highest possible resolution is used). Please take a look at the mentioned example while I believe it could give an idea regarding your question.
Best regards,
Deni
Jan 09, 2017
07:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 09, 2017
07:26 AM
Hello Deni,
thanks for the hint to the example. As I don't need a high resolution I can use the build in APP function with a little change so that I can give over the frequency in 0.1 Hz steps.
Thanks anyway for the interesting example.
Regards M.Schneiders
thanks for the hint to the example. As I don't need a high resolution I can use the build in APP function with a little change so that I can give over the frequency in 0.1 Hz steps.
Thanks anyway for the interesting example.
Regards M.Schneiders
Mar 21, 2017
01:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 21, 2017
01:32 PM
Hi M.Schneiders,
May I ask you how you solved it?
I need to generate a variable low frequency PWM Signal
in the Range of 0,5 to 200Hz with duty cycle of ~25% and 0.1Hz Resolution.
Best regards
May I ask you how you solved it?
I need to generate a variable low frequency PWM Signal
in the Range of 0,5 to 200Hz with duty cycle of ~25% and 0.1Hz Resolution.
Best regards
Apr 19, 2017
02:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 19, 2017
02:19 PM
Done:)
I modified the PWM function to work with float.
I modified the PWM function to work with float.