cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor

i have been using psoc-1.there is a reference voltage selection.but i cant find it in psoc-4.

   

can anyone tell me where it is available in psoc-creator software???

0 Likes
Reply
10 Replies
Honored Contributor II

If I understand your question correctly, you need to drop a "reference" (Vref) on schematic and select optional voltage from the list: "1.024V, Vdd/2, ..."

   

   

0 Likes
Reply
Esteemed Contributor II

You will need a reference for the ADC, it is selectable in the ADC configuration dialog.

   

You may use a DAC to generate your own analog reference.

   

 

   

Bob

0 Likes
Reply
New Contributor

thanks bob and odissey1,

   

can i control pwm voltage with refmux??

   

because i got only 0 to 2 .5 volts between 0 to 65535 PWM Period.

0 Likes
Reply
Esteemed Contributor II

can i control pwm voltage with refmux?? No.

   

The PWM is pure digital. Do not change the period, but change the compare value between 1 and the period value. That will give you a 0 to 100% duty cycle.

   

 

   

Bob

0 Likes
Reply
New Contributor

i tried also compare function still i got 2.6 highest voltage at 65500 PWM.

   

i attached my project can you tell me where i made mistake???

0 Likes
Reply
Esteemed Contributor II

See attached project...

   

 

   

Bob

0 Likes
Reply
New Contributor

Thanks bob,

   

So this is give me 0 to 5V???

0 Likes
Reply
Esteemed Contributor II

The output to the LED is a square wave which you may convert with an R-C ladder to an analog voltage. Remember that you cannot control an LED with a voltage. In this case it is switched on/off at very high frequency with varying duty-cycle.

   

When you need a REAL voltage then you should use the IDAC and a resistor. This configuration is not able to deliver much current, but it is precise.

   

When you tell us what you want to perform exactly, we might give you some suggestions.

   

 

   

Bob

0 Likes
Reply
New Contributor

Thanks bob for your fast responce,

   

see attached data sheet. its a XTR117. i want it in Temperature transmitter as 4-20mA loop. but i thought psoc-4 is very low power consumption. but when i connect with XTR117 than psoc-4 consume 12 mA power consumption. i want only 3.8mA max power consumption from psoc4 side.

   

here i have to also sense rtd temperature and thermocouple voltage with psoc-4 parallely.

   

is it posible with psoc-4 to do this process??

0 Likes
Reply
Esteemed Contributor II

See this application note for power reduction. Debugging uses quite a lot of mA.

   

For sensing several different analog sensors, look at the components under "Temperature management" in the component catalog of Creator.

   

 

   

Bob

0 Likes
Reply