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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: [求助] PIC18F6722 燒錄問題~~
#14
高級會員
高級會員


查看用戶資訊
LCD還是不亮, ISR只設定flag, 程式如下:

void main(void)
{
test_flag=0;
....
while(1)
{
.....
if (test_flag==1)
{
test_flag=0;
Disp_All_Lcd();
}
.....
}

}


void RS232RxISR(void)
{
int i;

test_flag=1;
.....
}

發表於: 2007/9/11 13:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: [求助] PIC18F6722 燒錄問題~~
#13
版主
版主


查看用戶資訊
你的 Disp_All_Lcd( ) 執行一次要花掉多少時間,有沒有超過接收一個 Byte 的時間?

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


Re: [求助] PIC18F6722 燒錄問題~~
#12
高級會員
高級會員


查看用戶資訊
謝謝回覆!!

看起來是Debugging Mode可以接收資料(LCD全亮), Programming Mode接收不到資料(LCD沒反應), 程式如下:

void Isr_High(void)
{
if (PIR3bits.RC2IF==1)
{

PIR3bits.RC2IF=0; // Clr RC2IF //
Usart_Temp=Read2USART();
Usart_Rx_Temp=Usart_Temp;
RS232RxTemp=Usart_Temp;
Pc_Adj_Code_Temp=Usart_Temp;
RS232RxISR();
}
}

void RS232RxISR(void)
{
int i;

Disp_All_Lcd();
.....
}

發表於: 2007/9/10 17:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: [求助] PIC18F6722 燒錄問題~~
#11
版主
版主


查看用戶資訊
我猜是通訊速率不對,用示波器量一下 RS-232 的速度。

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


Re: [求助] PIC18F6722 燒錄問題~~
#10
高級會員
高級會員


查看用戶資訊
PIC18F6627有執行程式碼, LCD有顯示出來, 只是PC與MCU不能連???

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


Re: [求助] PIC18F6722 燒錄問題~~
#9
版主
版主


查看用戶資訊
PIC18F6627 與 PIC18F6620 除了記憶體大小不一樣,還有 PIC18F6627 是屬於nanoWatt 的元件,其振盪器的設計也不一樣,請在檢查一下是否有震盪成功或PIC18F6627有執行程式碼。

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


Re: [求助] PIC18F6722 燒錄問題~~
#8
高級會員
高級會員


查看用戶資訊
Sorry!忘記說了, 板子的電路原本是使用PIC18F6620, 燒進去沒問題, 現在由於Code Size, 換了一個PIC18F6627, 只有換MCU, 其他週邊電路都一樣, 和這有關係嗎?

謝謝回覆~~

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


Re: [求助] PIC18F6722 燒錄問題~~
#7
資深會員
資深會員


查看用戶資訊
configuration的設定看起來,沒什麼問題.
那麼可以檢查一下版主所說的AD的I/O,
1.就是說有些I/O你想當數位I/O使用,可是卻可能規畫成AD去了.
2.再來就是檢查I/O是設定成輸入或輸出..
3.我想比較器要關掉...

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


Re: [求助] PIC18F6722 燒錄問題~~
#6
高級會員
高級會員


查看用戶資訊
這是我的Configuration Bits的設定, 跟這有關嗎?

Oscillator --HS
Fail-Safe Clock Monitor Enable --Disabled
Internal External Switch Over Mode --Disabled
Power Up Timer --Disabled
Brown Out Detect --Enabled in Hardware,
Brown Out Voltage --4.5V
Watchdog Timer --Disabled
Watchdog Postscaler --1:32768
CCP2 Mux --CCP2 muxed with RC1
Low Power Timer1 Osc enable --Disabled
Master Clear Enable --MCLR Enabled,RG5 Disabled
Stack Overflow Reset --Enabled
Low Voltage Program --Disabled
Boot Block Size --1K Words
. --Disabled
. --Disabled
. --Disabled

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


Re: [求助] PIC18F6722 燒錄問題~~
#5
版主
版主


查看用戶資訊
我認為應該檢查一下週邊I/O的初始設定,有可能 ICD2 的Firmware 有做了 I/O 的 Initialize 動作所以會正常工作。但換成 Stand Alone Mode 時因 I/O 沒有規劃到導致動作錯誤。
先檢查 AD 與 I/O 的設定。

發表於: 2007/9/7 15:13
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... ]

教育訓練中心

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