There is an example project on USB UART in creator. Just Start with that. I guess it should help you.
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.
Yes, there is EEPROM module to save / update settings, etc..
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 -
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.
A project to write into flash is reaaly welcome....
A project to write into flash is really welcome....