• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: 10F220 A/D CONVERTER
#3
新會員
新會員


查看用戶資訊
谢谢楼上的回复! 你说的是对的, 这是一个原因,但它不是主要原因, 最终结果是 10F220 有问题, 10 pcs 样片,全不行,最后又买了20 PCS ,测试全OK, 我真的不知MICROCHIP 的样片为什么会有这么大的不同, 已经将样片寄给MICROCHIP了,希望他们能给一个合理的答复.

發表於: 2008/10/23 8:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 10F220 A/D CONVERTER
#2
資深會員
資深會員


查看用戶資訊
.193 EQU 19H ;; 這是定義一個 LABEL,名稱是 .193 ,值是 0x19,應該不是你要的
...
SUBWF 19H,0

Data Memory 是 RAM ,上電初值不定,要自己在程式中作初始化

movlw .193
movwf 0x19

發表於: 2008/10/20 8:24
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


10F220 A/D CONVERTER
#1
新會員
新會員


查看用戶資訊
遇到一个想不通的问题, 我的A/D为什么不能工作?
请高手指点! 谢过!
IC_VDD = 3.3V
2.5V 下为低电, AN1 为模拟接口

list p=10f220
include p10f220.inc
;====================
STATUS EQU 03H
OSCCAL EQU 05H
GPIO EQU 06H
ADCON0 EQU 07H
ADRES EQU 08H
.193 EQU 19H
;====================
ORG 0000h
NOP
CLRF OSCCAL
CLRF GPIO
MOVLW 00h
OPTION
MOVLW B'00001010'
TRIS GPIO
MOVLW 85h
MOVWF ADCON0
BSF GPIO,2
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
BCF GPIO,2
START
BSF ADCON0,1
TEST_AD
BTFSC ADCON0,1
GOTO TEST_AD
MOVF ADRES,0
SUBWF 19H,0
BTFSS STATUS,0
GOTO START
BSF GPIO,2
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
CALL DELAY
BCF GPIO,2
GOTO START

;====DELAY SUBROUTINE=========
DELAY
MOVLW 0FFH
MOVWF 10H
SECOND
MOVLW 0FFH
MOVWF 11H
FIRST
DECFSZ 11H,1
GOTO FIRST
DECFSZ 10H,1
GOTO SECOND
RETLW 0
END

發表於: 2008/10/16 21:13
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... ]

教育訓練中心

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