Re: 中斷所需時間
|
||||
---|---|---|---|---|
中級會員
|
PDF檔P.155
是這個嗎? For external interrupt events, such as the INT pin or PORTB change interrupt, the interrupt latency will be three or four instruction cycles. The exact latency depends when the interrupt event occurs. The latency is the same for one or two-cycle instructions. Individual interrupt flag bits are set regardless of the status of their corresponding mask bit, PEIE bit or GIE bit. 好像是又好像不是......
發表於: 2005/6/5 13:56
|
|||
|
Re: 中斷所需時間
|
||||
---|---|---|---|---|
資深會員
|
進入中斷 4Tcy ,跳到中斷副程式 goto 需 2Tcy 。
從中斷回到主程式 2Tcy 請善用DataSheet,這些在DataSheet都找的到。
發表於: 2005/6/5 13:22
|
|||
|
中斷所需時間
|
||||
---|---|---|---|---|
中級會員
|
請問877A
由程式跳到中斷副程式(還沒紀錄進中斷前暫存器的狀態)需花多少時間 做完中斷副程式(已還原中斷前暫存器的狀態)跳回原程式需花多少時間
發表於: 2005/6/5 2:34
|
|||
|
Re: AVDD與AVSS
|
||||
---|---|---|---|---|
資深會員
|
參照:
看DataSheet吧!!沒有Avdd、Avss就是用一樣的電源囉! 外加參考壓就要接REF+和REF-。DataSheet的圖都畫得很清楚。
發表於: 2005/6/4 20:52
|
|||
|
Re: 請教 MPLAB C18 CONFIG bit 的設定
|
||||
---|---|---|---|---|
資深會員
|
你上的的設定用在PIC18F452中沒有問題耶!
我的作法: 1.Project --> Project Wizard --> PIC18F452 -->..... 2.把h,lkr設好 然後程式碼main.c #include <p18f452.h> #pragma config OSC=HS #pragma config PWRT=ON #pragma config BOR=OFF, BORV=42 #pragma config WDT=OFF #pragma config CCP2MUX=OFF #pragma config STVR=OFF, LVP=OFF, DEBUG=OFF #pragma config CPD=OFF void main(void) { } 在C18 2.40SE版下編譯沒有問題....
發表於: 2005/6/4 20:25
|
|||
|
Re: 關於icd2 debbugger 的問題
|
||||
---|---|---|---|---|
資深會員
|
抱歉
原來真的需要轉接板 剛剛找到代理商的FAE了 他說這一顆可以直接燒錄 但要除錯的話必須要有轉接板 (怎麼我在規格書裡沒看到...) 請問要如何知道哪些需要轉接板哪些不需要? 燒錄接腳是ICSP的都需要嗎?
發表於: 2005/6/4 15:26
|
|||
|
Re: 關於icd2 debbugger 的問題
|
||||
---|---|---|---|---|
資深會員
|
但是我的 MPLAB IDE 7.1版
裝置選擇選到PIC12F675後 除錯工具支援裡面有ICD2 而且前面的燈是綠色的 而規格書的11.11也有寫到ICD2 這樣怎麼會還不支援? 還是說我還必須另外跟代理商買轉接板(HEADER) 來才能除錯?
發表於: 2005/6/4 14:54
|
|||
|
Re: 關於icd2 debbugger 的問題
|
||||
---|---|---|---|---|
高級會員
|
PIC12F675 can not debug with ICD2
Please refer to ..> MPLAB® ICD 2 Header Information http://ww1.microchip.com/downloads/en/DeviceDoc/ 51292J.pdf
發表於: 2005/6/4 14:02
|
|||
IWC
IWC JL Rolex PP 有點距離 越來越遠 |
||||
|
Re: 關於icd2 debbugger 的問題
|
||||
---|---|---|---|---|
資深會員
|
Connecting to debug executive
Entering Debug Mode ...Programming GOTO 0x00 command ICD0083: Target not in debug mode, unable to perform operation MPLAB ICD 2 Ready 我本來用PIC18系列的都沒問題 剛剛第一次使用PIC12F675 一直出現這問題無法除錯 我確認過我的電源 震盪器 組態設定 IC編號都沒問題 接頭也沒接觸不良 ICD2的作業系統也更新過了 Setting Vdd source to target Target Device PIC12F675 found, revision = Rev 0xC 裝置元件也有找到能夠連接 改成燒錄模式測試 可以把程式燒錄進去 (程式碼可以讀取出來) 但輸出無反應,或許是我的程式有問題 請問還有沒有其他可能原因造成無法除錯?
發表於: 2005/6/4 11:24
|
|||
|