• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
  • slider image 488
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: 程式疑難2
#6
版主
版主


查看用戶資訊
整個 Project 壓成 ZIP 送出來 debug 看看。

發表於: 2009/4/8 16:58
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 程式疑難2
#5
初級會員
初級會員


查看用戶資訊
我查 Weal-Pull Resister 的相關應用,有PULL LOW的例子,所以我2種都試驗,但依然都是不成功

發表於: 2009/4/8 16:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 程式疑難2
#4
高級會員
高級會員


查看用戶資訊
插花一下...
看到這句話...以及接33K電阻到GND
感覺怪怪的
Pull high不是只要接到+VCC就可以了嗎?

發表於: 2009/4/8 15:58
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 程式疑難2
#3
初級會員
初級會員


查看用戶資訊
參照:

Ryang 寫道:
一般較舊版本的 PIC RA4 是 Open drain 的架構,當輸出時要將個提升電阻。

但最近所出像 20-pin PIC16F690 系列 PORTA 就變成內建 Weal-Pull Resister 的架構了。


版主您好,我已嘗試在RA4接腳接33K電阻到CHIP的電源,以及接33K電阻到GND,但依然無法使RA4輸出H,請問何解?

PS:我是用P16F883和MPLAB IDE8.00

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


Re: 程式疑難2
#2
版主
版主


查看用戶資訊
一般較舊版本的 PIC RA4 是 Open drain 的架構,當輸出時要將個提升電阻。

但最近所出像 20-pin PIC16F690 系列 PORTA 就變成內建 Weal-Pull Resister 的架構了。

發表於: 2009/4/8 10:05

Edited by Ryang on 2009年04月08日 10:22:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


程式疑難2
#1
初級會員
初級會員


查看用戶資訊
大家好,小子我又碰到問題了,程式如下,倒數第4行,理應將RA4輸出為HIGH,可是我在DEBUG模式下的WATCH視窗,始終無法看到PORTA的RA4變H,實際量測CHIP的RA4亦無H輸出,請問我哪裡出包了,煩請指教,謝謝!!

MAIN:
BANKSEL PORTA ;
CLRF PORTA ;Init PORTA
BANKSEL PORTB ;
CLRF PORTB ;Init PORTB
BANKSEL ANSEL ;
CLRF ANSEL ;DIGIPAL
BANKSEL ANSELH ;
CLRF ANSELH ;DIGITAL
BANKSEL TRISA ;
MOVLW B'11000001' ;
MOVWF TRISA ;Set PORTA is input or output
BANKSEL TRISB ;
MOVLW B'11111011' ;
MOVWF TRISB ;Set PORTB is input or output
BANKSEL TRISC ;
MOVLW B'10100110' ;
MOVWF TRISC ;Set PORTC is input or output

OP_DET:
BANKSEL PORTB ;
BTFSC PORTB,4 ;
GOTO OP_DET ;
BSF PORTA,4 ;
BTFSS PORTB,4 ;
GOTO $-1 ;
GOTO OP_DET ;

發表於: 2009/4/8 9:38
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... ]

教育訓練中心

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