Academic Program

CWG Example Setup

CWG Example Setup

1.) The NCO is selected as the input for the CWG module.

exp2.png

 

2.) The High Frequency Internal Oscillator is selected as the clock source.

exp3.png

 

3.) The dead-band delays are set to 63-64 clock counts.

exp4.png

 

4.) The CWGFLT1 pin is enabled as a shutdown signal which is connected to a normally open momentary switch. When the switch is pressed, a low signal appears on the CWGFLT1 pin and triggers the shutdown.

exp5.png
 

5.) Auto-restart is enabled and the shutdown bit is cleared to start in run mode.

exp6.png

 

6.) Both outputs are set to drive to their respective inactive mode when the shutdown signal occurs.

exp7.png

 

7.) The CWG outputs are connected to the I/O pins and the output polarity is set to normal mode.

exp8.png

8.) The CWG is then enabled. For reference, the NCO setup code is also shown that produces the input signal.

exp9.png