- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's the easiest option if i'm using an encore chip, CY7C64315, and i need to store a few persistant bytes of data?
thanx, mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @mikewax ,
You are right, you can use the code you have illustrated in the prior post. With one exception - CySetTemp() is not available in PSoC Designer.
You will have to use Incremental ADC (Datasheet ADCINC V 3.00), set the mux to temperature sensor when starting the ADC. The ADC results are the temperature.
Best regards,
Sampath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @mikewax ,
You can consider using the internal flash of CY7C64315. We have a User Module which makes it easy for the firmware developer to use persistent storage in flash - EEPROM Datasheet EEPROM V 1.1.
You can find this User Module listed under "Misc Digital" in the User Module panel of PSoC Designer. The datasheet I have referenced will also be available in the right click of E2PROMx128 in the UM panel.
Kindly check if the number of cycle for flash write (50,000) will be OK for your application.
Best regards,
Sampath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
so i can do this
word offset = 0;
unsigned int value, result;
word bytecount = 2;
char temp;
value = 1;
temp = CySetTemp();
if(temp) result = E2PROMx128_bE2Write(offset, value, bytecount, temp);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @mikewax ,
You are right, you can use the code you have illustrated in the prior post. With one exception - CySetTemp() is not available in PSoC Designer.
You will have to use Incremental ADC (Datasheet ADCINC V 3.00), set the mux to temperature sensor when starting the ADC. The ADC results are the temperature.
Best regards,
Sampath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Much obliged, Sampath, will do 🙂