• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: USART接收問題
#6
高級會員
高級會員


查看用戶資訊
initial
    bcf TRISC
,6
    bsf TRISC
,7
    
^^^^^^^^^^^^^ Bank要切換吧?
    
movlw .12
    movwf SPBRG
    bcf TXSTA
,SYNC
    bsf TXSTA
,TXEN
    bsf RCSTA
,SPEN
    bsf RCSTA
,CREN
    
^^^^^^^^^^^^^ Bank要切換吧?

    
bsf PIE1,RCIE

Get_Data
    btfsc PIR1
,RCIF
    
^^^^^^^^^^^^^ Bank要切換吧?

    goto 
Get_RX
    
goto Get_Data
Get_RX
    movf RCREG
,W
    end


發表於: 2005/3/31 23:17
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: USART接收問題
#5
版主
版主


查看用戶資訊
有沒有用示波器量一下接收端( PIC 的 RC7 pin)

發表於: 2005/3/31 15:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: USART接收問題
#4
版主
版主


查看用戶資訊
可不可以參考右邊教育訓練裡的 W400 課程講義第140-148頁的說明,並試著用練習四來練習 UART,這個程式是以 APP001 板子為基礎的測試程式。

記住: 16MHz crystal, Terminal 為 : 9600, N, 8, 1, nono handshake

發表於: 2005/3/31 15:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: USART接收問題
#3
中級會員
中級會員


查看用戶資訊
因該沒有這樣的問題
因為我是使用AP0001的實驗板
而且我從PIC TO PC是正常的(使用終端機)
但是在接收時確收不到(終端機 TO PIC)
所以才會有這樣的疑問

發表於: 2005/3/31 10:23
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: USART接收問題
#2
高級會員
高級會員


查看用戶資訊
硬體電路是否有Tx與Rx對調

因為程式看起來是正確的

發表於: 2005/3/31 10:17
人生最長久的擁有是珍惜 但是大都在失去後才發現
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


USART接收問題
#1
中級會員
中級會員


查看用戶資訊
我想請教一個USART接收的問題
initial:
bcf TRISC,6
bsf TRISC,7
movlw .12
movwf SPBRG
bcf TXSTA,SYNC
bsf TXSTA,TXEN
bsf RCSTA,SPEN
bsf RCSTA,CREN
bsf PIE1,RCIE
Get_Data:
btfsc PIR1,RCIF
goto Get_RX
goto Get_Data
Get_RX
movf RCREG,W
end
我想問的是
RCIF為何都不會變化???
謝謝~~~

發表於: 2005/3/30 20:07
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... ]

教育訓練中心

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