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


Browsing this Thread:   1 Anonymous Users






Re: PIC 16F877的RS232傳輸
#8
高級會員
高級會員


查看用戶資訊
有點像
PIC Reset

Watch dog OFF 嗎

Configuration bit setting check 看看

發表於: 2006/5/3 17:54
IWC
IWC
JL
Rolex


PP
有點距離
越來越遠
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC 16F877的RS232傳輸
#7
初級會員
初級會員


查看用戶資訊
其實你可以用中斷~~~有資料近TXREG就跳中斷!!
沒資料就在主程式等待

發表於: 2006/5/2 23:41
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC 16F877的RS232傳輸
#6
初級會員
初級會員


查看用戶資訊
先謝謝你...
我試了
用軟體模擬....的確可以

但實際燒進PIC內後
還是會傳出的值
像是AA->約0.5s->AA->約0.5s->AA->約0.5s->..........

其實我主要的功能是
當發現有值要傳輸時才傳輸
没傳值的時候,就不要送出值

我該用什麼方式控制
?


發表於: 2006/5/2 17:18
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC 16F877的RS232傳輸
#5
高級會員
高級會員


查看用戶資訊
基本上
PIC有電
就不會停
只能讓它做些事情
但是你看起來
它像停了


loop:
goto loop

這樣的結果
單晶片
只做這個無窮迴圈

請參考



發表於: 2006/5/2 16:32
IWC
IWC
JL
Rolex


PP
有點距離
越來越遠
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC 16F877的RS232傳輸
#4
高級會員
高級會員


查看用戶資訊
基本上
PIC有電
就不會停
只能讓它做些事情
但是你看起來
它像停了


loop:
goto loop

這樣的結果
單晶片
只做這個無窮迴圈

請參考



發表於: 2006/5/2 16:31
IWC
IWC
JL
Rolex


PP
有點距離
越來越遠
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC 16F877的RS232傳輸
#3
初級會員
初級會員


查看用戶資訊
哪位好心的大大
救ㄧ下我吧
拜託

發表於: 2006/5/2 15:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC 16F877的RS232傳輸
#2
初級會員
初級會員


查看用戶資訊
我再想一個問題
好像我的程式都沒辦法end
也就是算算執行完
也會ㄧ直從頭在執行
我想這是這個程式的問題所在
請問我該改哪個地方
讓我的程式只執行ㄧ次就好?

發表於: 2006/5/2 0:01
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC 16F877的RS232傳輸
#1
初級會員
初級會員


查看用戶資訊
list p=16F877
#include<p16f877.inc>
trans_c equ 0x20

org 0x00
nop
initial:
movlw .5 ;傳輸次數5次
movwf trans_c
banksel SPBRG
movlw .25
movwf SPBRG
bcf TXSTA,SYNC
banksel RCSTA
bsf RCSTA,SPEN
banksel TXSTA
bsf TXSTA,TXEN


Trans:
banksel TXSTA
btfss TXSTA,TRMT
goto Trans
banksel TXREG
movlw 0x50 ;傳送Q
movwf TXREG
banksel trans_c
decfsz trans_c,f ;從5遞減到0則結束
goto Trans

end


---------------------------
此程式是單純用RS232輸出 0x50 5次
然後end
可是我的為什麼不會停下來
而一值傳輸呢??

發表於: 2006/5/1 22:21
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... ]

教育訓練中心

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