Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > PSOC 3 USBUART / MATLAB

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



PSOC 3 USBUART / MATLAB
Moderator:
RKRM

Post Reply
Follow this topic



PSOC 3 USBUART / MATLAB

jjthefreako posted on 06 Aug 2012 11:24 AM PST
Member
5 Forum Posts

 Hi all,

I'm looking for some starting point and some documents to read to do the following. Let me explain the setup first.

I have a board that has a PSOC, temp sensor and a current sensor.

I am going to have 24+ of these in a broad setup. It will be connected to the PC through a single COM PORT. I want the PSOC to spit out a table to the user, so that the user can set the PSOC according to his requirements. It can either be on hyperterminal, terra-term or MATLAB.

As the end user is not technical I don’t want them to do any programming. So I want to just give them a list of pre-defined commands and so that the user can use only that.

The PSOC should store that information and then implement based on that information.

At least for now the information that we are getting back from the PSOC is the current measurement and the temperature from the board. The data rate will be less than 100kb/s, as we just want it from time to time just to check if it is doing what we set it to do.

This is what I want the PSOC to do and how it is setup.

So I would like to know if there is any material that might be helpful in this scenario, I will greatly appreciate it. Currently I'm looking for a starting point to implement this setup.

Regards,
Jerry




Re: PSOC 3 USBUART / MATLAB

rahulram posted on 07 Aug 2012 10:42 PM PST
Cypress Employee
112 Forum Posts

There is an example project on USB UART in creator. Just Start with that. I guess it should help you.



Re: PSOC 3 USBUART / MATLAB

jjthefreako posted on 07 Aug 2012 01:39 PM PST
Member
5 Forum Posts

 Thanks rahul.

I guess my Most Concern is how do I save the data that I have received such that when the chip is turned off and turned on it remembers the previous information that was entered by the user. Is there a way to store the information onboard the flash and run from there till the user enters a new set of commands?

Let me make it more clear. The user will set the PSOC do a specific set of commands through the USB-UART or UART interface through com port. He will only enter some char. The char will have a set of commands associated with it in the PSOC. 

Now I dont want the user to enter that char every time he turns off and on the PSOC. I want to be able to store the char in flash memory I suppose such that the PSOC can read that directly and does not have to wait for the USER to provide an input.


Thank you for any help in this matter. If there is an example code that will be great too.

Please let me know if I'm not clear on what I'm trying to accomplish.


Regards,
Jerry



Re: PSOC 3 USBUART / MATLAB

danaaknight posted on 07 Aug 2012 03:21 PM PST
Top Contributor
1773 Forum Posts

Yes, there is EEPROM module to save / update settings, etc..

 

Features
 512 B to 2 KB EEPROM memory
 1,000,000 cycles, 20-year retention
 Read 1 byte at a time
 Program 16 bytes at a time

 

There are several apnotes that show usage, like this A/D calibration application -

 

http://www.cypress.com/?rID=50320

 

Regards, Dana.



Re: PSOC 3 USBUART / MATLAB

Gautam Das posted on 14 Aug 2012 11:44 PM PST
Cypress Employee
742 Forum Posts

Hi jjthefreako,

 

Assuming that you successfully receive command from the PC via USBUART / UART, you can store the received data in non-volatile memory such as EEPROM or Flash.

 

As Dana has already pointed out, you can write into EEPROM. There is also an example project associated with the EEPROM component that gets shipped along with the creator which shows how to write to and read from the internal EEPROM.

Let us know if you need to write into Flash. I can upload a sample project which demonstrates writing into the Flash.



Re: PSOC 3 USBUART / MATLAB

manojr_cet posted on 20 Mar 2013 01:18 PM PST
Top Contributor
24 Forum Posts

A project to write into flash is reaaly welcome.... 



Re: PSOC 3 USBUART / MATLAB

manojr_cet posted on 20 Mar 2013 01:18 PM PST
Top Contributor
24 Forum Posts

A project to write into flash is really welcome.... 



Re: PSOC 3 USBUART / MATLAB

danaaknight posted on 20 Mar 2013 01:44 PM PST
Top Contributor
1773 Forum Posts

This might help -

 

www.element14.com/community/docs/DOC-48049/l/cypress-ce62384--application-note-on-writing-to-internal-flash-in-psoc-3-and-psoc-5

 

Regards, Dana.



Re: PSOC 3 USBUART / MATLAB

danaaknight posted on 20 Mar 2013 01:46 PM PST
Top Contributor
1773 Forum Posts

Also bootloader projects show this -

 

www.cypress.com/

www.cypress.com/

www.cypress.com/

 

Regards, Dana.






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20