Amir Posted January 21, 2021 Share Posted January 21, 2021 I have a CK3M and would like to know how I can write directly to the Phase B output. I would like to use this output as a general purpose analog output. On the 15 pin connector, it is labeled Analog Output B+. Link to comment Share on other sites More sharing options...
Sangmo Posted January 23, 2021 Share Posted January 23, 2021 Before you write to the Gate3.Chan[j].Pwm[1] register You should check these setting 1. Gate3.Chan[j].OutputMode should be 3 or 7 2. Gate3.Chan[j].PackOutData should be 0 3. The value you write to Gate3.Chan[j].Pwm[1] shoule be multiply by 65536 Because the effective output value is high 16bits. The valid range of this value before multiplying by 65536 is +-32767, which represents the output voltage of +-10V Link to comment Share on other sites More sharing options...
Eric Hotchkiss Posted January 29, 2021 Share Posted January 29, 2021 The suggested settings worked for me. This works for True DAC models (1515). DACB+ in pin 2 AGND is pin 3 You can shift the value left 16 bits instead of multiplying if you prefer. CK3WAX[0].Chan[0].Pwm[1]=(Volts*32767/10)<<16 Link to comment Share on other sites More sharing options...
Recommended Posts