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


Browsing this Thread:   1 Anonymous Users






Re: MPLAB C18的使用
#5
版主
版主


查看用戶資訊
master 大大已經告訴你了,找找看是不是少了一個 s 。
另外你有用 include 將相對應元件的 H 檔加進來嗎?

發表於: 2008/1/16 13:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB C18的使用
#4
資深會員
資深會員


查看用戶資訊
'PORTAbit' has not been defined
^^^^^^錯誤訊息告訴你打錯字了...

發表於: 2008/1/16 12:18
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB C18的使用
#3
新會員
新會員


查看用戶資訊
多谢您的帮助!!!D:\My Project\Second\main.c:158:Error [1105] symbol 'PORTAbit' has not been defined
D:\My Project\Second\main.c:158:Error [1105] symbol 'RA3' has not been defined
D:\My Project\Second\main.c:158:Error [1101] lvalue required,不可以啊编译有错

發表於: 2008/1/16 11:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB C18的使用
#2
版主
版主


查看用戶資訊
RA3 這隻腳通常都有ADC與 Comparator 的功能,所以要將 RA3 當作 I/O 功能的話,第一步就是要先 Disable RA3 AD輸入與Comparator的功能。disable analog function 後就可以這樣寫:

#define LED PORTAbits,RA3

TRISAbits.TRISA3 = 0 ; Setc RA3 as output
LED = 1; Set RA3 = 1

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


MPLAB C18的使用
#1
新會員
新會員


查看用戶資訊
我想在C18编译器下,把PORTA的RA3引脚指定为led_green,要怎么定啊!请高手帮忙一下,不要用define,最好是使用volatile

發表於: 2008/1/15 17:34
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... ]

教育訓練中心

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