Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to disable the PWM Output.

Hi Uwe,

 


seuwkerb wrote:

 

i used the following code in irq handler to handle the 0% and 100% case.

 

...

theTIO->G0_Input_Select_Register.setG0_Source_Select( 31 ); /* Low */
theTIO->G0_Input_Select_Register.setG0_Gate_Select( 31 ); /* Low */
theTIO->G0_Input_Select_Register.setG0_Output_Polarity( pol );  /* pol=1 : 5V , pol=0 : 0V */
theTIO->G0_Input_Select_Register.flush();
theTIO->G0_Command_Register.writeG0_Disarm( 1 );

...

 

But the result ist not solid.


When you say "the result is not solid," what behavior do you observe, and what behavior do you expect? For example, when the duty cycle is 100%, perhaps the counter's output sometimes goes to the wrong output value; or perhaps it goes to the correct value but sometimes at the wrong time.

 

In the time since your post, have you learned or tried anything else about this problem?

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 11 of 11
(2,544 Views)