Reading ADC Conversion

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello, I wanted to know what the easiest way is to read and display the ADC converted values in PSOC Creator. I am working with 4200 BLE PSOC. Any help will be much appreciated!

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There are two APIs for the ADC: one is waiting for a result ready and the other actually gets the converted data. There are APIs to convert those digital counter values into a mV or V number.

   

Display? Which display?

   

You might take the chance to use the USB-UART bridge in your Development kit (I assume you have got one). Read the chapter in the Kitprog manual that was installed on your PC when you installed the kit software. The bridge together with a terminal emulation on your pc (as PuTTY) will let you send ASCII data to your screen. Use sprintf() for conversion, take care when using floats, there are some pitfalls.

   

 

   

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There are two APIs for the ADC: one is waiting for a result ready and the other actually gets the converted data. There are APIs to convert those digital counter values into a mV or V number.

   

Display? Which display?

   

You might take the chance to use the USB-UART bridge in your Development kit (I assume you have got one). Read the chapter in the Kitprog manual that was installed on your PC when you installed the kit software. The bridge together with a terminal emulation on your pc (as PuTTY) will let you send ASCII data to your screen. Use sprintf() for conversion, take care when using floats, there are some pitfalls.

   

 

   

Bob

0 Likes