Not applicable
Apr 07, 2015
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 07, 2015
05:08 AM
I'd like to sometimes use continous pulse mode (single pulse), and sometimes switch to single shot mode. Is that possible?
I did not find proper function from generated PWMSP002 files.
On PWMSP002.h the mode is specified in
typedef struct PWMSP002_HandleType
{
..
...
/** This parameter is used to store whether CCU8_CCy slice is in single shot
* mode or in periodic mode
*/
const uint8_t kTimerMode;
..
..
}
But is seems inchangeable. Any advice?
I did not find proper function from generated PWMSP002 files.
On PWMSP002.h the mode is specified in
typedef struct PWMSP002_HandleType
{
..
...
/** This parameter is used to store whether CCU8_CCy slice is in single shot
* mode or in periodic mode
*/
const uint8_t kTimerMode;
..
..
}
But is seems inchangeable. Any advice?
- Tags:
- IFX
- pwmsp002 xmc4500
1 Reply
Not applicable
Apr 08, 2015
02:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 08, 2015
02:59 AM
Hi,
The single shot mode is controlled by CCU8yTC.TSSM bit. You may try to configure it in main.c (eg. CCU80_CC80 -> TC |= 2;)
BR,
Zain
The single shot mode is controlled by CCU8yTC.TSSM bit. You may try to configure it in main.c (eg. CCU80_CC80 -> TC |= 2;)
BR,
Zain