Hello
there are a lot of information and examples to use the analog and digital i/o of the K8055 board. But how I have to configure/program the board to use the PWM? What are the possible PWM main time.
I prefere to use the dll to access from LabVIEW.
Many thanks for help
The PWM on the K8055 runs at a fixed frequency of 24.34 kHz. You cannot change that.
All you can change is the duty cycle in 256 steps from 0% to 100%. This is done with SetAnalogChannel() and similar functions.
There actually is no analog output from the PIC. It produces only the PWM signal. What you get as DAC1/DAC2 is the PWM1/PWM2 signal converted to an analog approximation through a resistor+capacitor and then stabilized with an OP-AMP. So when PWM1 is set to 40% duty cycle with the command OutputAnalogChannel(1,102), DAC1 is reading ~2V. The two are linked together in hardware.