Re-purpose Current DACs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GrCa_1363456
Level 6
Level 6
50 likes received Beta tester First comment on KBA

What is the process to utilize the two Current DACs in a PSoC 6 with ModusToolbox for something other than Capsense?

Reference:

- Just one DAC? @ https://community.infineon.com/t5/PSoC-6/Just-one-DAC/m-p/167885

- DAC Code Example @ https://community.infineon.com/t5/PSoC-6/DAC-Code-Example/m-p/44533

Greg

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi Greg,

It is supported through library manager. There is a CSDIDAC middleware library. You can write your own application by referring to the API reference manual of the csdidac library. Kindly check the following links.

https://github.com/Infineon/csdidac

https://infineon.github.io/csdidac/csdidac_api_reference_manual/html/index.html

 

Best Regards,
Vasanth  R S

View solution in original post

0 Likes
4 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi Greg,

Apologies for getting back late on this. As of now we do not have any example on this, readily available. I am checking internally whether we have any info internally on this.

Best  Regards,
Vasanth

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi Greg,

It is supported through library manager. There is a CSDIDAC middleware library. You can write your own application by referring to the API reference manual of the csdidac library. Kindly check the following links.

https://github.com/Infineon/csdidac

https://infineon.github.io/csdidac/csdidac_api_reference_manual/html/index.html

 

Best Regards,
Vasanth  R S

0 Likes
lock attach
Attachments are accessible only for community members.
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Greg,

What PSoC6 part are you using?

Here is a very simple PsoC Creator project that can assign both 7-bit iDACs to analog pins for connection to current to voltage resistors.  This project uses the CY8CKIT-062-BLE.

Is this what you looking for?

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Greg,

My investigation with ModusToolBox indicates that you can't get a high-level access to the two current DACs.  Their "Device Configurator" tool provides no GUI interface to these resources.  This also includes the "Analog Routing" tab.

My recommendation is to use PSoC Creator.   If this is not an option then I suggest the following:

  • Since control of these iDAC resources have no API interfaces, it still has register interfaces.
  • You theoretically can use the API calls created by PSoC Creator.  With some modifications you should be able to port it to ModusToolBox.

To use these iDACs means that you can't effective use these subcircuits in CapSense.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes