hi to all,
how can i set reference voltage for ADC in psoc1. here i want to set reference voltage 2.5v.
In global resouces window, upper left corner, select "Ref Mux" and
pick one of attached selections. Note if you are using Vdd = 5V, then
Vdd/2 +/- Vdd/2 is a 2.5 Volt reference. If you are 3.3V Vdd then use
external reference, or route external to a PGA and set its gain to get
a 2.5 V Ref.
Also look in TRM (Technical Reference Manual) for your device to get a better
understanding of the Ref system.
Also, refer application note AN2219 PSoC 1 selecting analog ground and reference
Hi every body!
When I use ADC10 user module to measure DC voltage 0-4V, it is OK (I'm using CY8C21323, PSoC designer 5.4). I want measure 0-5V, can you please tell me solution for that?
Simplest method is external R V divider, as PGA is not available on
this part. Divider would scale 0 - 5 to 0 - 4. Of course it would affect
loading of signal, and you would have to trade off magnitude of R's
for offsets due to leakage. And ratio would require hi accuracy R's
if you want to maintain accuracy. A signal path error analysis would
be in order.
Hi every body,
This is next question, can you help me?
I'm doing project with PSoC CY8C21323, PSoC designer 5.4.
PSoC measure DC voltage (0-5V) from 4 pin (AnalogInput):
- P0.3 : voltage 0-5V.
- P0.2: voltage of LM35.
- P0.4: voltage of current sensor return (2.5-5V).
- P0.6: voltage of voltage sensor return(0-5V).
PSoC send all data to PC via RS232 circuit, using TX8 module.
At PSoC CY8C21323, in ADCs module, i see only ADC10 (has 2 analog column, AnalogColumn_InputMUX_1 and AnalogColumn_InputMUX_0).
How to get data from 4 pin AnalogInput? By ADC10? ADC10 can measure 0-4V!!!
(At PSoC CY8C21323: no ADCINC, ADCINCVR,DELSIG,PGA...)
Put the ADC into the right column (01) and use an AMUX8. Then you may select ANY input from port0
If without external RV divider, have you another solution to measure 0-5V? By another user module?
Because i don't want change circuit which I did.
I will do that you said.
Yes, you could use a 16 bit PWM as a DAC, feed that to a comparator,
the other side comparator Vx from AMUX. In code do a binary search on
PWM duty cycle (compare) value to trip the comparator (poiling its output)
, or use ISR on it.
This will take 1 analog and 2 digital blocks, unless you use 8 bit PWM (1 block),
which equates to ~ 40 mV ADC resolution.
Note PWM has LP filter on output to create a DC value proportional to duty
cycle of PWM. PWM filter controls settling time, ripple, attached might be of help.