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
|
|||
|
請問使用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
|
|||
|