- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi, there
I am using CY8C29466 as the mcu of a mems sensor. I need to get the output from the e2prom according to the analog input, which is as used an index to search the data in e2prom. Before this , the calibrated data more than 1000 in a text file is needed to write into the e2prom first. But I don't konw how to do this?
I have researched the related file to e2prom, AN2015. It uses an an array to store the data written into the e2prom. However, this is not practical when there is a lot of data to be written.
Does anyone konw any other method to download the calibrated data into e2prom?
Looking forward to your reply!
LU
Solved! Go to Solution.
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the UART of CY8C29466 to receive the text file from a PC through a USB UART connection.
Use flow control to get as much calibration data which will fit 64 bytes. Now do a flash write for this 64 bytes block. (The block size of flash is 64 bytes)
Get the next 64 bytes and so on till there is no more calibration data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the UART of CY8C29466 to receive the text file from a PC through a USB UART connection.
Use flow control to get as much calibration data which will fit 64 bytes. Now do a flash write for this 64 bytes block. (The block size of flash is 64 bytes)
Get the next 64 bytes and so on till there is no more calibration data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Samp!
But there is no USB UART in the CY8C29466.
Instead, there is UART. Can I still use the method you suggested?
By the way, do you know about 'emulated serial interface (COMn:)' or 'The PSoC Programmer COM' ?
Regards!
Lu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I misunderstood your first sentence!
I will have a try of the UART method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the method you suggested, what is the software to be used to send the text file from a PC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the method you suggested, what is the software to be used to send the text file from a PC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you!
Hopefully I will get it work!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,samp
I have looked through the file you recommended. I have some questions.
In the link for how to use Hyperterminal to send a text file over UART on a Windows PC, in the 12th step,
'12. In the "Send Text File" window, scroll by double clicking your way to the location of the "text file" that was previously configured and saved that contains the programming commands for the modem you are programming.'
what is' the programming commands for the modem you are programming' in the "text file" ?
Could you please give me an example of the "text file" ?
Regards
Xu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can post your questions on Hyperterminal in other forums that cover this topic. I myself am not an expert on Hyperterminal.
Regarding the text file, you can enter the calibration data in the file, one data unit for one line. I am not sure about your calibration data, but it can be something like this:
0 4
100 105
200 207
255 260
and so on.
Thanks, sampath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you, samp