• 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: PORB interrupt
#5
版主
版主


查看用戶資訊
剛在看一下 PORTB4~7 的架構,如果設為輸出模式的話,TRIS Latch 彙送出一個 Low 將 Interrupt-On Pin Change 的功能關閉,所以該角位不會產生中斷的。

發表於: 2009/3/19 11:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PORB interrupt
#4
中級會員
中級會員


查看用戶資訊
1.如果pic是以pad上的電壓作為依據.....他還是有可能會發生中斷
2.你要超過指令的周期吧....要超過多少我就不知到了...你可以試一試吧....因該不會有人這樣作吧....很奇怪ㄟ....
3.使用者自己先去讀取PORTB當做status change的基準 只有int中斷才有此功能

發表於: 2009/3/18 19:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PORB interrupt
#3
新會員
新會員


查看用戶資訊
我剛看了一下,似乎只要設成output就不會觸發中斷...
另外,再請教一點
當interrupt source為pulse,我想要每發一個pulse,觸發一次中斷,根據Using portb interrupt這份文件,是不是只要我pulse width夠短,即在我去end mismatch(讀PORTB)前,pulse已拉下來,就可以實現我一個pulse一個中斷觸發?

還有,rising or falling edge觸發是可以設定的嗎?還是要使用者自己先去讀取PORTB當做status change的基準 ?

問題有點多,感謝大家幫忙
謝謝

發表於: 2009/3/18 17:56
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PORB interrupt
#2
中級會員
中級會員


查看用戶資訊
好像不可以選擇吧......datasheet好像沒有說明.......

RBIF: RB Port Change Interrupt Flag bit
1 = At least one of the RB7:RB4 pins changed state; a mismatch condition will continue to set
the bit. Reading PORTB will end the mismatch condition and allow the bit to be cleared
(must be cleared in software).
0 = None of the RB7:RB4 pins have changed state

發表於: 2009/3/18 17:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PORB interrupt
#1
新會員
新會員


查看用戶資訊
請問一下
當我用PORB.4做為interrupt的觸發時,其它三個pin (5:7)可否做一般IO使用?還是只要四個pin(4:7)其中一個有status change就會觸發中斷 ?
謝謝!

發表於: 2009/3/18 16:58
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... ]

教育訓練中心

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