Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
中級會員
|
顯示中文有解決 感恩~~
只要 movlw H'BC' CALL LCD_Put_Char movlw H'42' CALL LCD_Put_Char 即可 之前想太難了.....
發表於: 2009/8/20 1:00
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
版主
|
參照:
PIC18 有新舊兩種架構,像 PIC18F452 就是屬於舊架構,而有 4 尾碼(PIC18F4520)的及 J 系列 (PIC18F45J20) 是屬於改良版的架構主要是多了一些針對 C 效率所加的指令,Microchip 並沒有正式公佈這些新增的指令,他會被使用在正式版的C18 編譯器裡。 所以 C18 的評估版在過期以後也不在使用這些新的指令,所以就會看不懂這個宣告。 Legacy mode 就把他翻成繼承模式,就是支援以前的模式。
發表於: 2009/8/18 16:41
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
資深會員
|
對比亮度 皆是硬體問題 , 再 check 有無動到旋紐
發表於: 2009/8/18 7:14
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
中級會員
|
而w400的範例 也可成功顯示
可是為何亮度會變暗呢?以原本的方式是正常的亮度 對比調整已最亮! String_1 db " Microchip Technology Taiwan ; Workshop 400",0x0a,0x0d,0x00 以及0x0a,0x0d,0x00方別為什麼意思?
發表於: 2009/8/18 1:10
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
中級會員
|
感謝你 成功顯示
不過 是否可選擇DB的哪一行 目前顯示畫面是DB三行皆顯示
發表於: 2009/8/18 1:05
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
資深會員
|
請教板主:
發表於: 2009/8/17 17:20
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
版主
|
pic18F 使用組語設定字串方法一般還是用 "db" 的需指令來設定,就如樓上的網友Beee 所講的方式。
建議你再看一下"102 ASP (W400) 講義暨實作教材 " 裡的最後一個章節及練習五的範例。 http://www.microchip.com.tw/modules/w ... nglefile.php?cid=4&lid=25
發表於: 2009/8/17 14:42
|
|||
|
Re: 關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
資深會員
|
LIST P=18F2520 ;directive to define processor
Attach file: Link only for registered users
發表於: 2009/8/17 0:15
|
|||
|
關於pic18 組語在lcd如何撰寫一字串 ??
|
||||
---|---|---|---|---|
中級會員
|
我翻了幾本書看不太懂
目前的使用方式是直接丟入lcd_cmd EX: MOVLW 'Y' CALL LCD_Put_Char MOVLW 'E' CALL LCD_Put_Char MOVLW 'S' CALL LCD_Put_Char 我想請問我該如何不用一個字一個一個丟 而是一整串作執行? 麻煩各位大大了~ 補充一個問題: 我需要的字串放入暫存器中 我可否在下字串指令後 直接讀取暫存器做讀取並丟入lcd作顯示?
發表於: 2009/8/15 21:30
Edited by small20310 on 2009年08月15日 22:44:25
|
|||
|