Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Not applicable
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?
1 Reply
Not applicable

The single shot mode is controlled by CCU8yTC.TSSM bit. You may try to configure it in main.c (eg. CCU80_CC80 -> TC |= 2;)