Mar 18, 2021
09:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 18, 2021
09:49 PM
Hi,
I'm developing an application using CCU4 on XMC1404 MCU ... I initialized the peripheral as following (as shown in the picture):
1) clear the gating of CCU40
2) remove CC40 from idle mode
3) set the run bit of the prescaler
4) configure the global CCU4 register GCTRL

but when I debug the program, all the CCU4 registers are zeros, and do not change by my code (for instance the period shadow register and the dead time register are all zeros).

Did I forget to enable a clock or something, because the CCU40 peripheral appears to be not active?
I'm developing an application using CCU4 on XMC1404 MCU ... I initialized the peripheral as following (as shown in the picture):
1) clear the gating of CCU40
2) remove CC40 from idle mode
3) set the run bit of the prescaler
4) configure the global CCU4 register GCTRL
but when I debug the program, all the CCU4 registers are zeros, and do not change by my code (for instance the period shadow register and the dead time register are all zeros).
Did I forget to enable a clock or something, because the CCU40 peripheral appears to be not active?
Solved! Go to Solution.
- Tags:
- IFX
1 Solution
Mar 29, 2021
11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 29, 2021
11:37 PM
.
,The program worked fine after I disabled bit protection, as following:
SCU_GENERAL->PASSWD = 0x000000C0UL; //disable bit protection
As an advice to the XMC team @ Infineon, Please add examples with low level programming as the majority of professionals don't use the XMC libraries and prefer to meticulously optimize the device drivers based on their needs.
,The program worked fine after I disabled bit protection, as following:
SCU_GENERAL->PASSWD = 0x000000C0UL; //disable bit protection
As an advice to the XMC team @ Infineon, Please add examples with low level programming as the majority of professionals don't use the XMC libraries and prefer to meticulously optimize the device drivers based on their needs.
3 Replies
Mar 22, 2021
09:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 22, 2021
09:31 PM
Hello,
Please refer our example project "CCU4_TIMER" available with XMC Lib package. It will help you to understand the usage of CCU4.
XMC Lib can be downloaded from following link: http://dave.infineon.com/Libraries/XMCLib/XMC_Peripheral_Library_v2.1.24.zip.
Example project is available in the folder "XMC_Peripheral_Library_v2.1.24\XMCLib\examples\XMC1400_series\CCU4".
Thanks and Regards,
Sudheesh
Please refer our example project "CCU4_TIMER" available with XMC Lib package. It will help you to understand the usage of CCU4.
XMC Lib can be downloaded from following link: http://dave.infineon.com/Libraries/XMCLib/XMC_Peripheral_Library_v2.1.24.zip.
Example project is available in the folder "XMC_Peripheral_Library_v2.1.24\XMCLib\examples\XMC1400_series\CCU4".
Thanks and Regards,
Sudheesh
Mar 29, 2021
11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 29, 2021
11:37 PM
.
,The program worked fine after I disabled bit protection, as following:
SCU_GENERAL->PASSWD = 0x000000C0UL; //disable bit protection
As an advice to the XMC team @ Infineon, Please add examples with low level programming as the majority of professionals don't use the XMC libraries and prefer to meticulously optimize the device drivers based on their needs.
,The program worked fine after I disabled bit protection, as following:
SCU_GENERAL->PASSWD = 0x000000C0UL; //disable bit protection
As an advice to the XMC team @ Infineon, Please add examples with low level programming as the majority of professionals don't use the XMC libraries and prefer to meticulously optimize the device drivers based on their needs.
Mar 30, 2021
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 30, 2021
08:18 AM
Thank you for "circling back" with an answer.