Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Converters configuration

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Converters configuration
Moderator:
ANCY

Post Reply
Follow this topic



Converters configuration

Fernan posted on 01 Jun 2011 11:29 AM PST
Senior Member
13 Forum Posts

Hi,

I would like to know how to configure all the "Component Parameters" for the Delta Sigma (or SAR) ADC through code (not through the dialog box of the compiler).

The case is that I want to design a C# interface to configure these converters in order to obtain some graphics and statistics about the converters measurements. So I want to set all the ADC Component Parameters from this interface, via RS232.

I already have the communication but I don't find the methods that allow me to enter the parameters from code.

Thank you very much.




Re: Converters configuration

Gautam Das posted on 02 Jun 2011 11:18 PM PST
Cypress Employee
742 Forum Posts

Hi Fernan,

 

One simple way I can think of is to build an application layer in main( ) function which has UART as a communication protocol. Depending upon the UART command received from the PC, APIs can be used to change some of the parameters such as ADC_SetGain(int32 adcGain), ADC_SetBufferGain(uint8 gain), ADC_SelectConfiguration(uint8 config, uint8 restart). These APIs expose the configuration that can be changed in software. Hence, by digging deep into these APIs, the parameters can be controlled more closely.


Please share your thoughts about this.



Re: Converters configuration

Fernan posted on 03 Jun 2011 12:42 PM PST
Senior Member
13 Forum Posts

 Hi Dasq,

I already have an idea about how to implement the configuration comunication and it is more or less like you say. The problem that I have is how to acces, through functions like you propose, to all of the configuration parameters that I can see in the configuration dialog box.

Functions that you propose only allow me to configure gain and configuration presets, but parameters like conversion mode, resolution or conversion rate I don't know how to access them.

I hope I explained.

Thank you!



Re: Converters configuration

Fernan posted on 27 Jun 2011 08:07 AM PST
Senior Member
13 Forum Posts

 Hi another time,

I haven't still achieved to acces to all the converter parameters to configure it through code. Somebody could give me an idea?

I want to configure the parameters that we can see in the configuration dialog box in the Top Design, through C++.

Thank you.

 

Best regards.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20