cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

vegan_electron
New Contributor II

Hello,

i would kindly ask if it's possible to switch the IDAC's polarity? The configuration in the IDE is fixed? We would control the configuration by software API as needed.

So is this possible?

Thank you and kind regards,

Daniel

0 Likes
Reply
1 Solution
Hari
Moderator
Moderator

Hi DaRi_1526611

To change the IDAC polarity during run-time, you will have to perform the register writes manually. Attaching a sample project where the IDAC configuration is switched from Sink to source based on a button press.

Thanks,
Hari

View solution in original post

0 Likes
Reply
3 Replies
Len_CONSULTRON
Honored Contributor

Daniel,

It's simple.  There is a Polarity configuration setting.  

When you set to Negative polarity make sure the load is connected to allow the current to flow from a voltage source (in the example below: from Vdd).

When you set to Positive polarity make sure the load is connected to allow the current to flow to GND (in the example below: to GND).  In this case, the Voltage source is VDDA.  This may be a limiting factor in your design.

pastedImage_0.png

Len

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

Hi DaRi_1526611

To change the IDAC polarity during run-time, you will have to perform the register writes manually. Attaching a sample project where the IDAC configuration is switched from Sink to source based on a button press.

Thanks,
Hari

View solution in original post

0 Likes
Reply
vegan_electron
New Contributor II

Thank you a lot guys! This information helps me a lot.

Thank you very much, stay safe,

Daniel

0 Likes
Reply