• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: 中斷所需時間
#6
資深會員
資深會員


查看用戶資訊
中斷產生需要時間反應,但返回程式沒有延遲問題,手冊上也沒提到。所以應只有RETFIE的時間。

發表於: 2005/6/6 10:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷所需時間
#5
中級會員
中級會員


查看用戶資訊
謝謝,我在MID RANGE FAMILY找到了,第8.3節

從中斷回到主程式 2Tcy
就只是單純的RETFIE嗎

發表於: 2005/6/6 9:35
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷所需時間
#4
資深會員
資深會員


查看用戶資訊
不好意思,中斷響應延遲會在PIC16系列的參考手冊上提到。
摘錄如下:

中斷回應延時被定義爲從中斷事件發生(中斷標誌位元被置位元)到位址0004h 的指令開始執行(該中斷是允許時)之間的這段時間。
對同步中斷(一般是器件的內部中斷),回應延時爲3 個指令周期。
對非同步中斷(一般是器件的外部中斷,如INT 引腳中斷或RB 埠的電平變化中斷),中斷回應延時將是3 - 3.75個指令周期。確切的延時取決於中斷事件在指令周期的哪個時刻發生(圖8-2)。

所以應該是3-4個Tcy,所以Timer像這類內部中斷應是3Tcy,INT中斷應是4Tcy。

P.155只是說明非同步中斷的部分。

發表於: 2005/6/5 19:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷所需時間
#3
中級會員
中級會員


查看用戶資訊
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷所需時間
#2
資深會員
資深會員


查看用戶資訊
進入中斷 4Tcy ,跳到中斷副程式 goto 需 2Tcy 。
從中斷回到主程式 2Tcy

請善用DataSheet,這些在DataSheet都找的到。

發表於: 2005/6/5 13:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


中斷所需時間
#1
中級會員
中級會員


查看用戶資訊
請問877A
由程式跳到中斷副程式(還沒紀錄進中斷前暫存器的狀態)需花多少時間

做完中斷副程式(已還原中斷前暫存器的狀態)跳回原程式需花多少時間

發表於: 2005/6/5 2:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

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... ]

教育訓練中心

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