• 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: 關於曾百由老師著書裡的UART實習
#9
新會員
新會員


查看用戶資訊
完全了解,感謝版主精細的解說

發表於: 2009/9/23 20:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#8
版主
版主


查看用戶資訊
因為 APP020 Plus 版子上才一個 RS-232介面,但 30F4011有兩組 UART,所以就用 DIPSW2 來做選擇。
SW1&2 選UART1, 3&4 選 UART2,且是二選一的設定。

關於 U1ATX & U1TX 是在U1MODE<ALITO> 位元所設定的。U1TX & U1RX 在 APP020 版子上有沖到所以不能用。

發表於: 2009/9/23 18:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#7
新會員
新會員


查看用戶資訊
感謝版主與Z2490438X兩位前輩,問題已經解決,但在此再問一個問題

DSW2的SW1 &SW2 設ON,似乎是使用UART1替代腳位U1ARX及U1ATX,那設OFF是DIS UART1或是改成使用U1TX及U1RX呢?
如果設OFF是DIS UART1,那要怎樣設定才能使用U1TX及U1RX?,又或者是APP020 這塊版子不能使用U1TX及U1RX?

發表於: 2009/9/23 17:58
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#6
版主
版主


查看用戶資訊
先確定 APP020 版子上的 DIPSW 設定:
在 dsPIC30F Peripheral Module 的教育訓練也是用 APP020 的,在 UART 實驗時的設定如下:
/************************************************************/
/*                     */
/*                       EUART Lab 1        */
/*                 */
/* Note:                    */
/*        DSW1 – SW1 & SW2 are ON position for the ICD2         */
/*                     programming & using the PGC, PGD for Debug    */
/*        DSW2 – SW1 & SW2 are ON position for UART1 (Lab1)    */
/*                     SW3 & SW4 are OFF position for Dis UART2     */
/*        DSW3 – SW1 & SW2 are ON position for VR input        */
/*        DSW4 – All OFF position    */
/************************************************************/

發表於: 2009/9/23 16:19
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#5
新會員
新會員


查看用戶資訊
試過了還是不行,再提出問題討論,請前輩不厭其煩指教

程式執行時,終端機不知道是沒送出輸出資料指令或者沒接收到值,反正就是沒有反應,但當我按下MPLAB裡面HALT停止程式時,出現了下列訊息


Running Target
Halting Target
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device dsPIC30F4011 found, revision = Rev 0x1002
...Reading ICD Product ID
Running ICD Self Test
...Passed
ICD0082: Failed MPLAB ICD 2 operation
...Halt Failed
MPLAB ICD 2 ready for next operation


這樣是程式有問題嗎?請前輩不吝解答

發表於: 2009/9/23 14:26
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#4
初級會員
初級會員


查看用戶資訊
我當初也是沒有反應很久
最後檢查到流量控制要選擇"無"
先將終端機設定完成後再用實驗版最好
不過兩個順序隨便都可以正常動作喔
按鍵c跟p是在視窗裡面按沒錯
但是他不會顯示出來,視窗只會顯示回傳值

發表於: 2009/9/22 14:17
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#3
新會員
新會員


查看用戶資訊
不好意思,我照著做,可是依然沒有反應,再請教幾個問題,麻煩前輩解答

1.流量控制需要設定嗎?

2.鍵盤按C跟P是在超級終端機的視窗裡按嗎?會顯示C跟P在視窗上嗎?

3.做這個實習應該先開好終端機還是先RUN程式呢?

4.要怎麼測試MPLAB C30實驗版有確實送資料出去?

發表於: 2009/9/22 12:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於曾百由老師著書裡的UART實習
#2
初級會員
初級會員


查看用戶資訊
1. 超級終端機要設成 9600, 8-N-1

2. 鍵盤按 c 開始輸出資料
鍵盤按 p 停止輸出資料

發表於: 2009/9/21 23:44
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


關於曾百由老師著書裡的UART實習
#1
新會員
新會員


查看用戶資訊
請教一下各位前輩,因為我沒用過超級終端機,所以不太了解曾百由老師著書裡第12章UART這個實習該怎麼動作,課本上面寫到,"當使用者按下個人電腦的鍵盤上的任一個按鍵時,執行可變電阻VR2的類比訊號轉換,並將訊號轉換的結果輸出到個人電腦的終端機螢幕",但不管我怎麼操作,終端機的視窗裡都沒有顯示東西,請問按個人電腦的按鍵是要再何時按呢?如果有哪為前輩對這個實習有心得的話,可以跟我說明一下實習流程跟細節嗎?感激不盡

發表於: 2009/9/21 21:53
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... ]

教育訓練中心

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