Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
高級會員
|
參照:
也感謝您提供方法及指導
發表於: 2009/2/25 17:06
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
版主
|
恭喜,看來漏資料的問題解決了。
發表於: 2009/2/25 16:59
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
高級會員
|
忙過了一週後,這星期有空了,用VB寫了一個AP,每間隔10秒送進我板子的UART更改EEPROM內容,也讓板子回應一些參數.
經過了約60幾個小時,還發現沒有發現錯誤,對於EEPROM的寫入,會有錯誤應該是不用擔憂了.
發表於: 2009/2/25 16:50
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
高級會員
|
我所接收的字組一次不超過16個字,我是用終端機手動的方式一次一次送給我的控制板,目前都還未漏接過.
我接著還會用VB寫一個應用程式,用密集的送出,來是是看.
發表於: 2009/2/11 14:21
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
版主
|
請問 UART 接收正常嗎?
發表於: 2009/2/11 14:15
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
高級會員
|
OK!已修改如上的只在解鎖時停止中斷,謝謝!
發表於: 2009/2/11 14:12
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
高級會員
|
謝謝!了解了.我安心了.
我已經在EEPROM寫入程式中只有在解鎖時禁能中斷,一但寫入VERIFY後立即恢復中斷. 接下來是做一個測試環境,來驗證一下.
發表於: 2009/2/11 10:55
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
版主
|
UART 是有接收的 FIFO 所以可以應付一段時間 (1/Baud Rate) * 10-bit x 2 這長的時間。不過這是一個觀念問題,因為 Internal EEPROM 在寫入時只要 4 個指令週期的中斷禁止時間,在這段短時間裡並不會引響到 UART 的接收。除非你的程式裡對中斷的禁止是一直到完成 EEPROM 寫完後才開啟中斷的,這樣得架構將會關閉中斷 4mS 所以其他的中斷就會受到影響。
所以說要看你的程式寫法,關畢中斷只要在那 4 個週期就可以了,不要關到 EEIF 變成1 以後才將中斷打開。想一想其中的差異性為何?
發表於: 2009/2/11 9:46
|
|||
|
Re: 內部EEPROM在寫入時,遇到中斷
|
||||
---|---|---|---|---|
高級會員
|
謝謝!了解了,後來我再想了一想,PIC MCU中也還有一個接收緩衝,所以應該不至於漏接了接收的字元.
發表於: 2009/2/10 17:52
|
|||
|