• 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: About Set GPIO Output
#2
資深會員
資深會員


查看用戶資訊
用GPIO我想應該是16F629/675吧...去看一下data sheet比較清楚...
1.A/D要關閉...預設是打開的
2.有使用到的I/O要設成輸出..應該會設定吧
3.另外就是小心BANK別切錯了..

bcf STATUS,RP0
clrf GPIO
movlw 07h
movwf CMCON
bsf STATUS,RP0
clrf ANSEL
movlw 0Ch
movwf TRISIO
bcf STATUS,RP0
BSF GPIO,5
BSF GPIO,4


發表於: 2007/3/29 19:43
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


About Set GPIO Output
#1
初級會員
初級會員


查看用戶資訊
各位高手有個問題在跟大家請教一下,就是假設我現在要Set GPIO Pin的輸出,啟動我下一級的開關,所以我程式目前是這樣寫的 ,
bsf GPIO,5;
bcf GPIO,4;
請問一下這樣子可以嗎?
是否還有更簡潔寫法呢?
可是我觀察過GPIO的Register的值,都不會變化,這是為什麼呢?希望大家能為我解答一下。
Thk

發表於: 2007/3/26 18:05
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... ]

教育訓練中心

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