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


Browsing this Thread:   1 Anonymous Users






Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#9
中級會員
中級會員


查看用戶資訊
1.請問一下,因為我現在要做的東西,是從usb讀資料(ASCII)進來,或RS-232讀資料,2個傳輸介面都是對等的,都要可以接受資料,然後存在pic的memory,然後再使用一個UART(要使用RS-485)的功能等接受到資料輸出要求之後,再把資料從UART(RS-485)送出去。
也就是說我要使用1個USB及1個RS-232來讀資料然後存起來,再從RS-485送資料出去。

請問有類似的範例嗎?

還有1個大問題就是PIC18F4550只有1個EUART及1個USB模組,我還少了1組EUART,可是較新的PIC18F87J50好像都不能零買的,請問還有適合的pic item可以使用嗎?

2.我已經報名usb的課程了,請問這樣對我要做USB的資料處理會有幫助嗎?

3.請問上課的講義要自已帶過去嗎?還有要準備哪些東西嗎?

發表於: 2007/4/13 10:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#8
版主
版主


查看用戶資訊
1. 不是在 External Memory的選項哩,看一下 Configuration Bits 選項裏的 External Memory Bus.

2. USB 課程獎的很多是USB的觀念與Chapter 9 驅動程式,反而跟 USB 元件的關係不大。

發表於: 2007/4/12 15:28
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#7
中級會員
中級會員


查看用戶資訊
您好:
1.我在configure>External Memory 裡面
只有一個選項可以勾選

"口 Use External Momory"
Address Range
start:0 End:0x1fff6

我本來就沒有打勾,沒打勾他,是不是就跟您說的是使用Microcontroller的設定一樣嗎?
可是我有勾跟沒有勾,編譯都一樣會出現那個對話視窗!
請問是為什麼呢?

2.請問參加USB的訓練課程,像我們對pic沒有很熟悉的人,會不會都聽不懂呢?

發表於: 2007/4/12 12:06
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#6
版主
版主


查看用戶資訊
1. PIC18F87J50 在 MPLAB IDE 下可以將 External Memory Bus 的選項設為 Microcontroller,這樣EMI的介面就會被 Disable。而CPU只會抓內部的 Program Memory。

2. USB 的資料請參考這哩,一般要是沒碰過USB要使用USB的元件時都會有無法下手的困擾,建議你可以參加USB的訓練課程。

3. 要 include 所使用原件的 INC 或 H 檔。

發表於: 2007/4/12 10:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#5
中級會員
中級會員


查看用戶資訊
1.您好:我是使用PIC18F87J50

2.想請教一下,我要使用這個chip的USB模組來做資料的傳輸,要到哪邊找範例呢?我看了他的data sheet,都是在介紹他的暫存器功能,可是都沒有看到該如何寫,我是個初學者,真的不知道該如何下手,請問有什麼可以學習的教材或範例嗎?我有看過右邊"教材及講義(USB001講義暨實作教材)",還是沒有頭緒!!
3.使用這顆chip的USB模組,他有要include的表頭檔嗎?

發表於: 2007/4/11 23:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#4
版主
版主


查看用戶資訊
請告知一下,用哪一顆PIC18Fxxxx

發表於: 2007/4/10 15:49
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#3
中級會員
中級會員


查看用戶資訊
版大您好:
1.我在 MPLAB IDE 選 Configure --> Configuration Bits 裡,只有一個Configuration Bits set in code的選項,我有把他打勾了。
可是我每次編譯,還是會先出現那個對話視窗。請問為什麼呢?
2. 謝謝您第2個問題的回答,我參考您提的說明:
C:\mcc18\doc\hlpPIC18ConfigSet.chm
已經知道問題點在哪了,謝謝您!


發表於: 2007/4/10 14:58
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#2
版主
版主


查看用戶資訊
1. 再 MPLAB IDE 選 Configure --> Configuration Bits 將CPU 的工作模式改為 Microcontroller Mode。

2. 參考以下的例子:
詳細的設定說明可以參考底下的 HTML 檔案之說明:
C:\mcc18\doc\hlpPIC18ConfigSet.chm

--------------------    MPLAB C18   ----------------------------------------

;*******************************************************************************
;*
3.For MPLAB C18 V2.40 or higher, use #pragma config directive      *
;*for example                            
//******************************************************************************
    #include <p18f452.h>
//*******************************************************************************
//*Configuration settings may be specified with multiple #pragma config directives.      *
//*MPLAB C18 verifies that the configuration settings specified are valid for the processor*
//*for which it is compiling *            
//*The labels following the directive "pragma config" are defined in the P18F452.h file.    *
//*******************************************************************************
    #pragma config    OSC=HS
    #pragma config     PWRT=ON
    #pragma config     BOR=OFF, BORV=42
    #pragma config     WDT=OFF
    #pragma config      CCP2MUX=ON
    #pragma config      STVR=OFF, LVP=OFF, DEBUG=OFF
    #pragma config      CPD=OFF
    
void main(void)
{
//your code
}

發表於: 2007/4/10 8:57
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


各位好,我在編譯時遇到2個問題,請幫幫忙 謝謝!
#1
中級會員
中級會員


查看用戶資訊
1.我每次編譯都會出現一個對話視窗,下面這句話:
The Extened CPU Mode configuration bit is enabled, but the program that was loaded was not built using extended CPU instructions.

請問這是什麼意思呢?

2.然後我在編譯的時後
#pragma config WDT = OFF, OSC=HS
假如我的WDT是跟前面的config有空格的話就會出現下面這個錯誤
D:\PIC18_Code\0409\led.c:2:Error [1224] configuration setting 'WDT' not recognized

可是如果我把configWDT這樣連在一起的話,就可以編譯成功,但是還是會出現問題1中的那個對話視窗。

請大家幫幫忙 解答一下疑問 謝謝囉!

發表於: 2007/4/9 21:44
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... ]

教育訓練中心

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