Re: 程式疑難2
|
||||
---|---|---|---|---|
高級會員
|
我以前用過別顆 , 因為 comparator 沒設好 , 也和你一樣 , 程式看澖了都看不出有問題 , 結果是 comparator 沒關 = =
發表於: 2009/4/11 18:05
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
初級會員
|
我知道SIM沒問題,我也是用DEBUG模式才出問題,剛在測試時我發現PORTC是可以讓我用程式去控制輸出H,但為啥PORTA就不能讓我控制輸出H,問題是否出在PORTA還需要設定啥才能輸出H?
發表於: 2009/4/10 14:26
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
版主
|
剛測了一下你的程式,在 MPLAB SIM 下模擬最後 PORTA4 & PORTA5 都可以正確輸出 1,PORTA=0x30 正確無誤。
建議可以從 201 ASP 讀起,教材內是用PIC16F887的組語來練習所有的周邊。看完功力大進。 201 ASP 教育訓練 : http://www.microchip.com.tw/modules/w ... glefile.php?cid=3&lid=380
發表於: 2009/4/10 9:30
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
版主
|
不曉得是我的 RAR 解壓縮程式損壞還是你壓的 RAR 有問題,打不開說是革是損壞了。
沒關係就你貼上了的程式去做測試,待會再說明。
發表於: 2009/4/10 9:09
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
初級會員
|
的確是壞了,我重傳一次看看><
奇怪,上傳前都能解壓,上傳後下載就有問題>< Attach file: Link only for registered users
發表於: 2009/4/10 8:26
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
高級會員
|
壓縮檔毀損?蝦咪..是我的問題嗎...XD
發表於: 2009/4/9 17:28
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
版主
|
沒看到附件?
發表於: 2009/4/9 8:49
|
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
初級會員
|
附件為發生問題的測試用程式,但拿出來壓縮,好像就會路徑不正常,無法復原我MPLAB IDE的設定,不知道這樣是否可以。
PS: 感謝0u0兄的提示,我已測試過並無短路跡象。 Sorry 忘記按下"上傳" Attach file: Link only for registered users
發表於: 2009/4/9 8:35
Edited by Leon on 2009年04月09日 08:59:04
Edited by Leon on 2009年04月09日 08:59:59 |
|||
|
Re: 程式疑難2
|
||||
---|---|---|---|---|
資深會員
|
我建議拿起電表量量是否有跟隔壁腳短路的情形...
發表於: 2009/4/8 20:05
|
|||
|