Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

sampling adc data on psoc

Status
Not open for further replies.

milinds.747

New Member
I am making an oscilloscope using Cypress PSoC 3. The sample data is sent to the computer and plotted. The ADC is used in single ended configuration. Whenever I connect the signal generator to the board, it throws a lot of garbage values to the UART. On the signal generator, the amplitude set is 1Vpp with 1V dc offset at a frequency of 100Hz. The frame received looks something like this $18 18 18 18 18 18 18 18 18 18%. This problem did not occur when I tried connecting a DC power supply. When I read the component data sheet, it mentioned obtaining a 16 bit result for 8 bit resolution to avoid wrap around. When I obtained 16 bit result, I got 277 instead of 18. The peak amplitude applied is 1.5V, so the sample value that should be obtained is 191 or below from the ADC. This problem occurs irrespective of the input waveform, sine, square or triangular. I tried using a different kit and a different function generator. Futile.

The problem is: The ADC does not send proper sample values of the input signal on connecting a signal generator.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top