jancumps / pico_scpi_usbtmc_labtool

LabVIEW compatible instrument on a Raspberry Pico
https://github.com/jancumps/pico_scpi_usbtmc_labtool/wiki
MIT License
13 stars 17 forks source link

Created the PWM functionality in pwm_utils.c/.h and added the SCPI co… #26

Closed shabaz123 closed 1 year ago

shabaz123 commented 1 year ago

Implemented the PWM feature, which is the ability for PWM to be generated on three output pins (GPIO pins 16, 17, 18) on the Pi Pico. The SCPI command syntax is: ANA:OUTP#:RAW <0-4095>

The SCPI query syntax is: ANA:OUTP#:RAW?

where # is a value [0..2]. The raw PWM range is 12-bit, i.e. 0-4095, corresponding to 0-100% duty cycle. The PWM frequency is approximately 30.5 kHz.