Cypress技术论坛
直播中

谢微微

7年用户 180经验值
私信 关注
[问答]

如何在CY8C29466中将校准数据下载到e2prom中

嗨,那里
我用CY8C24466作为MEMS传感器的MCU。我需要根据模拟输入获得E2PROM的输出,这是用E2PROM检索数据的索引。在此之前,首先需要在文本文件中校准超过1000的数据以写入E2PROM。但我不知道该怎么做?
我已经研究了相关文件到E2PROM,AN2015。它使用一个数组来存储写入E2PROM的数据。然而,当要写入大量数据时,这是不实际的。
有没有人知道其他方法将校准数据下载到E2PROM中?
期待您的回复!


以上来自于百度翻译


     以下为原文
  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

回帖(10)

李凯

2018-12-3 12:01:14
您可以使用CY8C9466的UART通过USB UART连接从PC接收文本文件。
使用流量控制来获得符合64字节的校准数据。现在为这个64字节块做一个Flash写。(Flash的块大小为64字节)
获取下一个64字节等,直到没有更多的校准数据。

以上来自于百度翻译


     以下为原文
  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.
举报

谢微微

2018-12-3 12:07:00
引用: clslda 发表于 2018-12-3 06:33
您可以使用CY8C9466的UART通过USB UART连接从PC接收文本文件。
使用流量控制来获得符合64字节的校准数据。现在为这个64字节块做一个Flash写。(Flash的块大小为64字节)
获取下一个64字节等,直到没有更多的校准数据。

谢谢,Samp!
但是在CY8C9466中没有USB UART。
取而代之的是UART。我还能用你建议的方法吗?
顺便问一下,你知道“仿真串行接口(COMN)”还是“PSoC程序员COM”?
当做!


以上来自于百度翻译


     以下为原文
  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
举报

谢微微

2018-12-3 12:21:16
引用: clslda 发表于 2018-12-3 06:33
您可以使用CY8C9466的UART通过USB UART连接从PC接收文本文件。
使用流量控制来获得符合64字节的校准数据。现在为这个64字节块做一个Flash写。(Flash的块大小为64字节)
获取下一个64字节等,直到没有更多的校准数据。

对不起,我误解了你的第一句话!
我会尝试一下UART方法。

以上来自于百度翻译


     以下为原文
  Sorry, I misunderstood your first sentence!
I will have a try of the UART method.
举报

谢微微

2018-12-3 12:38:59
引用: 60user86 发表于 2018-12-3 06:53
对不起,我误解了你的第一句话!
我会尝试一下UART方法。

在你建议的方法中,用什么软件从PC发送文本文件?

以上来自于百度翻译


     以下为原文
   In the method you suggested, what is the software to be used to send the text file from a PC?
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分