• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (taru)




pic32 32mx795f512L usb sample code
高級會員
高級會員



發表於: 2015/12/14 19:06
頂部


Re: 中斷high level 與 low level使用的問題
#12
高級會員
高級會員


版大修改還是有問題:
有幾個要請教的事:
我修改了:
#pragma interrupt high_interrupt_service_routine nosave = section(".tmpdata")
#pragma interrupt low_interrupt_service_routine nosave = section(".tmpdata")
High跟low都修改了、還是會出問題。
這樣改對嗎?
還有一個就是我將在low的timer0改到主程式沒有發生當機。
將timer0原在low改到high測了一天還沒發生問題。

pragma interrupt high_interrupt_service_routine save=section("mydata") 儲存自訂變數節區 mydata 的變數
的使用方法是?
會有錯誤出現。

發表於: 2009/6/29 13:37
頂部


Re: 中斷high level 與 low level使用的問題
#13
高級會員
高級會員


版主你好:
一、我使用的是C語言。
二、Low Priority Interrupt 與 High Priority Interrupt 沒有相同的變數。
三、low priority Interrupt內的timer0有使用的計count的功能是32bit的變數做加一的動作。
有那些是要注意的呢?

發表於: 2009/6/26 11:27
頂部


中斷high level 與 low level使用的問題
#14
高級會員
高級會員


如題:
我使用的是18f8622
我在low設定了timer0、中斷間隔是10ms
4MHZ、四倍頻
TMR0H = 0xFF;
TMR0L = 0x62;
將timer0一直開著。
high level上接收uart1 的接收資料。
感覺在high level接收uart資料的時候、
接收到timer0的中斷、在low未執行完又收到high level的中斷之後的程式梁程時很容易造成reset 或當機(整個資料都亂掉)
請問一下high low level 的中斷在用的時候有什麼要注意的嗎?

發表於: 2009/6/23 15:34
頂部


設定Table Read Protect enable後燒入後無法再次燒入
#15
高級會員
高級會員


如題:
我使用的是18F8622的mcu:
一、在設定了Table Read Protect Enable00800 - 0ffff
做燒入的動作、之後正常、但是無法再次燒入程式
都會顯示說燒入錯誤
ICD0161: Verify failed (MemType = Program, Address = 0x800, Expected Val = 0xE301, Val Read = 0xE300)
ICD0275: Programming failed.
二、請問一下我要保護燒入code不被讀出來、要設定那一個選項呢?謝謝

發表於: 2009/6/11 10:35
頂部


Re: I2C、SPI通訊疑問
#16
高級會員
高級會員


Timer造成當機、是我在測試mcp2515、兩個device在做can的對傳測試、msater slave。
master丟一筆資料、到can、slave收到後丟相的資料到can bus線上。master一接收到自己丟出去的資料後、馬上丟下一筆資料。
當機就是整個都不動了、不知道程式跑那去了、但是關閉timer後就沒在發生當機的問題了。

發表於: 2009/5/25 15:20
頂部


I2C、SPI通訊疑問
#17
高級會員
高級會員


我在讀取I2C或是SPI介面的DEVICE的時候、我都是在主程式裡做讀取、在通訊時可能被中斷處理其他的事情。
請問一下、在I2C或是SPI通訊的時候、是否都要把中斷關掉呢?還是不能被中斷呢?
因之前在測試MCP2515時候開了10MS的TIMER很容易造成當機、但當時不知道為什麼造成當機。

發表於: 2009/5/25 10:55
頂部


MCU空pin的疑問
#18
高級會員
高級會員


如題、在沒有用到MCU 的空pin應該怎麼設會比較好呢?
INPUT
OUTPUT LOW
OUTPOT HIGH
謝謝

發表於: 2009/5/8 11:53
頂部



« 1 (2) 3 4 5 ... 10 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------