ADC | Cypress Semiconductor

ADC

Summary: 26 Replies, Latest post by Bob Marlowe on 17 Nov 2016 10:09 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
srujani.meela7_1971856's picture
User
15 posts

Hi

I am using cy8ckit -042 BLE kits and using example from the in-built examples using from PROC 4200 and selected ADC_SAR_Seq_DieTemp_PSoC4 and using the target as CYBL10563-56LQXI and giving connections from P1.5 to P12.6 and P3.0 to GND on J1.and using RS-232 with baud rate as 115200,9600,57600 and launching it on teraterm on windows 8.1 and receiving some data which is not accurate.

Please do let us know where we are going wrong.

These are the screenshots of the connections and also the RS-232.

Thanks

Srujani

srujani.meela7_1971856's picture
User
15 posts

These are the attachments please go through the screen shots of the serial and the code.

Thanks

Srujani

hli
user_78878863's picture
User
2575 posts

Please try to create a minimal program which shows that behavior. Can you get just a serial communication to work properly? How did you configure the UART component and Teraterm? (8N1 or something different?)

If you cannot do that, please post you complete projects (File / Create workspace bundle).

srujani.meela7_1971856's picture
User
15 posts

I an getting the correct values for the UART but cannot get perfect values for the ADC at 115200 baudrate.

this is my project.

 

thanks

srujani

user_1377889's picture
User
9572 posts

Can it be that your calculation of ADCCountsCorrected  results in zero (0)

 

Bob

user_242978793's picture
User
1029 posts

I don't see anything wrong with your program it is working fine on my system.  I moved the UART pin from P0[1] to P1[5] as I don't like adding jumpers when the circuit is already there.

user_242978793's picture
User
1029 posts

I didn't jumper P3[2] to +3.3 Volts as shown in your picture as the ADC is not setup to cover that range of voltage.  It is set to 0 to 1.024 Volts as that is the V reference you selected. If you want to measure a higher Voltage the Settings need to be changed.

srujani.meela7_1971856's picture
User
15 posts

Hi,

In the picture I had a jumper connection from P3.0 to +3.3V and P1.5 to P12.6. I have ignored that connections.But that also didn't work.I have connected a jumper between P1.5 to P12.6 where that also didn't work.I even tried when there are no jumpers connected on to the board.I am getting  some data which is not exactly as yours.Can I  know the exact connections where the jumpers has to be connected on the pioneer kit.

Thanks

Srujani

user_242978793's picture
User
1029 posts

Here is the changes you need to make to the ADC_SAR_SEQ configuration  to read the Battery Voltage the new settings.

Srujani Meela's picture
User
9 posts

Hi,

I have got the output for the ADC, Now if I want to connect an external sensor to the baseboard whose output is analog where should I connect the jumper wires on the baseboard.The sensor I want to connect is LM35 on to the base board.Can you please tell how to connect them on to the pinouts on the board.

Thanks

Srujani

user_242978793's picture
User
1029 posts

I am running PSoC Creator 4.0.  Here is the new data read on the board.  One thing I think you are missing is that the jumper of J16  the voltage settings is set for 5 Volts.  So I set the jumper from P3.0 to V5.0 on J1.4

Log in to post new comments.