I cannot seem to get mine working..
I am after just some example code which will take any pin as a 0V-5V input and maybe send the value out of the UART..
if not that even just a breakpoint after the conversion so I can get the right data out..
I cannot seem to get mine working..
I am after just some example code which will take any pin as a 0V-5V input and maybe send the value out of the UART..
if not that even just a breakpoint after the conversion so I can get the right data out..
Hi I did a conversion of the IDAC to Voltage IDAC conversion to VDAC (enabling two IDACs) psoc4
you need to isolate the current source and add an opamp to convert that signal to voltage...
Juan Esteban
Hi I am sorry but I am not sure what your project is doing, I can't see the ADC and there doesn't seem to be any attached code..
I have an LDR going into the PSOC and it is outputting 3.78V into the pin.. the ADC is set up to sample between 0V and 5V but on the output I just have 2047 always which is 11 bits all on..
If I bring the signal below about 2.5V then it changes but it seems to be giving me a maximum of 2.5V and 11 bits..
Hi Samuel,
I'm away from home, so can't test right now. Do you have the option to change the reference voltage? Probably it is now set to an internal 2.5V bandgap reference, where you'd like it to be something else (5V).
Greetings,
Victor
Hi Victor, I am not with my PSoC until tomorrow but someone on the Cypress forums has said they think it is because I am using a current limiting resistor going into the PSoC ADC pin when I don't really need one.. they said there is a 2.2k internal resistor so with my resistor outside the board it is creating a voltage divider.
I have set the Vref to be 0-5V so I don't think it is that.. I will report back on my findings tomorrow when I get my board.. thanks for the reply