Using the DAC with FSM0/FSM1

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Matthew H.
Offline
Last seen:2 months 3 weeks ago
Joined:2020-09-28 19:36
Using the DAC with FSM0/FSM1

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

Device:
Device Number:
SLG46620
olehs
Offline
Last seen:2 months 4 weeks ago
Staff
Joined:2018-02-07 11:40
Hi Matthew H.,

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

Matthew H.
Offline
Last seen:2 months 3 weeks ago
Joined:2020-09-28 19:36
Thank you, that does it!

Thank you, that does it!

olehs
Offline
Last seen:2 months 4 weeks ago
Staff
Joined:2018-02-07 11:40
Hi Matthew H.

Hi Matthew H.

My pleasure

Best regards,

Oleh Sapiha