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

論壇索引


Board index » All Posts




Re: 燒錄問題
版主
版主


程式在編譯的過程中,如果程式超過所選的元件程式大小,編譯就無法成功也不會產生 HEX 檔。所以不用擔心此問題。

發表於: 2005/9/9 17:30
頂部


Re: 要如何設定12F/629之內部震盪?
新會員
新會員


請問這一段用HI-TECH C撰寫的話, 該如何改呢?
asm("CALL 0x3FF");
asm("bsf STATUS,RP0");
asm("movwf OSCCAL");
asm("bcf STATUS,RP0");
這樣寫, 編譯時會產生未定義的符號: STATUS, PRO, OSCCAL

謝謝!

發表於: 2005/9/9 13:57
頂部


Re: 偶又有問題囉...
新會員
新會員


PIC每种MCU对应的头文件里面的定义都不是完全一样。
比如,有的是CP,有的是CP_ON,有的是CP_ALL。
10F200对应的是_IntRC_OSC................中间小写-_-!
这种问题,找安装目录下的头文件(10F200.h)看一下就知道了。

發表於: 2005/9/9 11:08
頂部


燒錄問題
高級會員
高級會員


請教一下哦

在燒錄程式時如果程式記憶體大於MCU提供的ROM大小
會有警告的訊息嗎

發表於: 2005/9/9 10:09
頂部


偶又有問題囉...
資深會員
資深會員


各位老書, 前輩, 大哥大,
笨鳥又有問題囉 ?????
剛拿到12F508 於是寫個程式玩玩 ..
程式是取材修改於10F200程式.
但是在build all 時 初現 failed as---->
symbol not previously defined ( INTRC_OSC )
程式如下

; PIC12F508 LED FLASHER FOR TEST
list p=12f508
#include <p12F508.inc> ; processor specific variables
; Configure: Controls the reset pin, code protect, oscillator selection, WDT.
__CONFIG _CP_OFF & _MCLRE_OFF & _WDT_OFF & _INTRC_OSC
;-----[Defines & Variable Assignments]---------------------------------------
程式略過
end

我試著把 INTRC_OSC 拿掉 再build all 就ok lar!
不知道這樣對不對也 ?
還有其他設定對不對呢?
Thanks Guys.

發表於: 2005/9/9 4:48
頂部


請問使用PIC16F73控制文字型LCM的問題
新會員
新會員


各位好,先說聲抱歉,我對PIC這顆微處理器一點都不懂,
但是客戶問了一個問題必須馬上回覆,所以希望各位大哥能
能撥冗幫我解答一下,感謝你們!!
使用的IC是:PIC16F73,使用4 bit方式傳輸
LCM是16x2的Module,Controller是相容於HD44780的IC,
問題如下:
當想要顯示的字元後4bit都為0時,此字元的下一個字元都會
顯示錯誤,例如:
input 0x20, 0x46 → output 0x20, 0xf4
input 0x20, 0x53 → output 0x20, 0xf5
input 0x20, 0x46, 0x53 → output 0x20, 0xf5, 0x53
input 0x40, 0x41, 0x31 → output 0x40, 0xf4, 0x31
input 0x50, 0x51, 0x21 → output 0x50, 0xf5, 0x21

程式如下:
Main loop:

start
call init_proc ; initialise the processor
bcf status,RBSEL ; select Register Bank 0
call init_timer ; initialise the timer
; call init_eeprom ; initialise the eeprom interface
call dsp_init ; initialise the display
bsf intcon,gie ; enable global interrupts
; call sign_on ; display sign on message on both displays

; call dsp_team ; initial display on line 2


mainlp
; tstf rxcmnd ; if a command is not ready to process then don't do it

; call proc_buf ; process the recieve buffer
call do_states ; process the main state machine
; call update_done
; call update_mins ; update the time display
; call update_secs
; tstf notdone ; test to see if all teams have succeeded

; bz timeuplp ; if they have then stop and freeze display

; movfw secs ; have we timed out?
; iorwf mins,W ; W != 0 if we haven't
; bnz mainlp ; so keep looping

; movlw 100 ; **** test line ****
; movwf dlyval ; **** test line ****
; call delay ; **** test line ****
movlw ' ' ; send sign on message to both chips
call dsp_chr
movlw 'S' ; send sign on message to both chips
call dsp_chr
movlw 'F' ; send sign on message to both chips
call dsp_chr
movlw '@' ; send sign on message to both chips
call dsp_chr
movlw 'A' ; send sign on message to both chips
call dsp_chr
movlw '1' ; send sign on message to both chips
call dsp_chr
movlw 'P' ; send sign on message to both chips
call dsp_chr
movlw 'Q' ; send sign on message to both chips
call dsp_chr
movlw '!' ; send sign on message to both chips
call dsp_chr
; goto mainlp ; so keep looping

; call update_mins ; update the time display
; call update_secs
; call dsp_boom ; else display time up message
timeuplp
goto timeuplp ; and finish

感謝各位大哥,因我從未接觸過PIC,不好意思佔用你們的時
間,謝謝!!

發表於: 2005/9/9 0:05
頂部


Re: [問題]PIC16F57 燒入問題?
中級會員
中級會員


是否要將PICSTART 燒入座折開?

那麼將來如果要用到,不是很麻煩嗎?或是將來永遠不會用到?


發表於: 2005/9/8 22:45
頂部


Re: 18F452的ROM
版主
版主


1. 是在program 0x1000的位址擺放查表資料,沒有說程式空間一定要擺程式的,擺資料或擺一些可以被修改的參數也可以(Flash Tpte)。

2. Internal EEPROM 有它特定的空間,上列的程式是存取外部的 I2C 介面的 EEPROM,兩著存取方式差的遠了不可相提並論。

3. 這是User強定RAM位址的方式之一,你也可以讓 Linker 自動幫你安排,寫C嗎! 剛開始不要太在意變數放在哪? 程式會動功能正常後再去研究。

發表於: 2005/9/8 17:48
頂部


Re: 起始位置.....
版主
版主


LKR 所定的 0x0000~0x0004的位址是屬於 Protected 區域,而你的中斷也會用到此 0x0004 的特殊位址且程式又超過此位址進入一般區域,所以 Linker 就偵測到你的程式碼跨越兩種不同的區域就產生錯誤。所以只要將位址移開就好了。

發表於: 2005/9/8 17:37
頂部


Re: MPLAB C18 v3.00 Beta 1
版主
版主


還沒Install過,十月十五日後會過期,待正式版 Released 後再測試看看,現今僅有的訊息是 Readme.txt 所寫的內容。

發表於: 2005/9/8 17:32
頂部



« 1 ... 6940 6941 6942 (6943) 6944 6945 6946 ... 7522 »



:::

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... ]

教育訓練中心

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