Re: PORB interrupt
|
||||
---|---|---|---|---|
版主
|
剛在看一下 PORTB4~7 的架構,如果設為輸出模式的話,TRIS Latch 彙送出一個 Low 將 Interrupt-On Pin Change 的功能關閉,所以該角位不會產生中斷的。
發表於: 2009/3/19 11:29
|
|||
|
Re: PORB interrupt
|
||||
---|---|---|---|---|
中級會員
|
1.如果pic是以pad上的電壓作為依據.....他還是有可能會發生中斷
2.你要超過指令的周期吧....要超過多少我就不知到了...你可以試一試吧....因該不會有人這樣作吧....很奇怪ㄟ.... 3.使用者自己先去讀取PORTB當做status change的基準 只有int中斷才有此功能
發表於: 2009/3/18 19:02
|
|||
|
Re: PORB interrupt
|
||||
---|---|---|---|---|
中級會員
|
好像不可以選擇吧......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
|
|||
|
PORB interrupt
|
||||
---|---|---|---|---|
新會員
|
請問一下
當我用PORB.4做為interrupt的觸發時,其它三個pin (5:7)可否做一般IO使用?還是只要四個pin(4:7)其中一個有status change就會觸發中斷 ? 謝謝!
發表於: 2009/3/18 16:58
|
|||
|