PWM individual decoder not working

Hi all, 

I need to generate two 1 MHz signals with opposite phases. However once I configure the decode mode as "Individual" I don't have output signals. In case of "Common" mode, I have two same output signals but this is not what I want. Under debugger I have different register values especially for EVENTS_SEQxxx.

1. Individual mode

2. Common mode

Here is the code:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PWM for 1 MHz square signal generation */
#define PWM_OUTPUT_PIN_0 11//22//4 // First 1 MHz signal
#define PWM_OUTPUT_PIN_1 12//23//5 // Second 1 MHz signal (inverted)
// Define PWM sequence for complementary 1 MHz signals
// static uint16_t pwm_seq[2] = {8, 8}; // 50% duty cycle for both channels
static uint16_t pwm_seq[4] = {
8, // CH0: Normal (rising edge)
8 | (1 << 15), // CH1: Inverted (falling edge)
};
void io_pwm_init(void) {
nrf_clock_hfclk_t HF_CLk;
/* Check if the high frequency crystal isn't enabled */
HF_CLk = nrf_clock_hf_src_get();
if (HF_CLk != NRF_CLOCK_HFCLK_HIGH_ACCURACY)
{
/* Enable the high frequency clock */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks for your help.

BR,

Hulu