Hi all, I'm trying to figure out how to connect either DAC0 or DAC1 to a FSM block similar to
this example:
//www.xmece.com/greenpak-cookbook/pwm-generator-usi...
So I can make an 8 bit up/down counter that can be both incremented and decremented and the
value sent to the DAC. Though the datasheet for the SLG46620 seems to indicate that the FSM
outputs can be routed to the DACs this doesn't appear to be possible in practice within the designer
software, I'm only seeing options for sources on DAC0 and DAC1 as "Register" and "From DCMP1"
for that device.
这不是那么容易立即确定devices are actually capable of the type of routing as shown in the
instructional guide as the datasheet seems to not agree with the software. Could anyone advise which
products can acutally be routed that way? Thanks
Hi Matthew H.,
Thank you for your question!
If you didn't see there is the design file just below the description, so you can use it as a reference, but this design was made by using SLG46140. Soon we will update the Cookbook chapters with a detailed description of the DAC control.
Regarding the DAC control in SLG46620V. It is similar to SLG46140. So, please use the following steps to create the DAC control:
1. ConfigureVref0 Source selectiontoDAC0 out;
2. ConfigureDCMP1 In- selectortoFSM0->Q[7:0](note: Don't need to power on the DCMP1, just change the setting as is on the picture in the attachment);
3. ConfigureDAC0 Input selectiontoFrom DCMP1's inputandPower Onthe DAC0. After that14-bit CNT2automatically was connected to the DAC0;
4. Configure14-bit CNT2toCounter/FSM Mode;
5. ChangeRC OSC powertoForce power on.
After you made all these steps you will be able to control DAC via FSM0 (using UP/DOWN, Keep, Reset signals) and the analog voltage will be applied to PIN19. In case if I missed something or you have some troubles with block configuration I've also attached the design.
Please let me know if you have some other questions regarding the DAC or GPAK itself
Best regards,
Oleh Sapiha
Thank you, that does it!
Hi Matthew H.
My pleasure
Best regards,
Oleh Sapiha