Re: ccp2 不能工作
|
||||
---|---|---|---|---|
版主
|
看不出來為什麼 CCP2 的 Capture 為什麼從 RC1 輸入會失敗,所以要在確定 CCP2MX of Configuration 3H 的設定沒錯?
CONFIGURATION REGISTER 3 HIGH (CONFIG3H: BYTE ADDRESS 300005h) bit 0 CCP2MX: CCP2 Mux bit 1 = CCP2 input/output is multiplexed with RC1 0 = CCP2 input/output is multiplexed with RB3 不確定是否使用 C18 所提供的 LIB,還是直接使用暫存器的設定方式,C18 已經是千鎚百鍊了因該在這一點上應該是不會錯的。
發表於: 2008/8/12 8:14
|
|||
|
Re: ccp2 不能工作
|
||||
---|---|---|---|---|
新會員
|
Dear Ryang
對不起 忘了告訴ic編號 是PIC18F452
發表於: 2008/8/12 1:27
|
|||
|
Re: ccp2 不能工作
|
||||
---|---|---|---|---|
版主
|
先講一下,你用哪一顆PIC18F? 元件有些差異的。
發表於: 2008/8/11 17:52
|
|||
|
ccp2 不能工作
|
||||
---|---|---|---|---|
新會員
|
大家好
請教大家我使用 c18 執行ccp1 capture mode 抓取duty cycle 一切都沒問題 但是改為 ccp2 由RC1接收訊息 則一點動靜都沒 似乎RC1沒收到訊號 Configuration bits ccp2 Mux 也設為RC1 請問到底哪裡沒設定或是 C18版本不對 謝謝
發表於: 2008/8/9 0:05
|
|||
|