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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: Help Me!
#18
高級會員
高級會員


查看用戶資訊
抱歉 ! 是我太緊張了 !!
或許只是那顆ENC28J60有受損但還沒霸工!!

Ethernet PICtail Plus Daughter Board的Version 4與Version 5的線路圖之間我只看到 R8的電阻值不同 , 但不知為何要變 ?? Version 5為 2K7 , Version 4為 2K32

找到一個資訊 (ENC28J60 Rev. B7 Silicon Errata) , 大家研究看看是不是問題的癥結所在 ?
http://ww1.microchip.com/downloads/en/DeviceDoc/80349b.pdf

Attach file:



jpg  (0.00 KB)


發表於: 2009/6/6 22:47

Edited by genitec on 2009年06月06日 23:21:03
Edited by genitec on 2009年06月06日 23:22:34
Edited by genitec on 2009年06月06日 23:26:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#17
新會員
新會員


查看用戶資訊
在此澄清並強調一下。我並沒有任何明確的資料證明Explorer 16與Ethernet PICtail Plus Daughter Board有相容性問題,只是將看到同好們遇到相同問題,剛好自己也遇到,所以才提出。請大家不要誤解。

因為到目前為止,我只是剛好遇到一塊這樣子的Ethernet PICtail Plus Daughter Board(看似壞卻沒壞),之後遇到的Version 5搭配Explorer 16整合測試都是OK的。

順帶在提一下,使用ENC28J60晶片做網路功能時,在Layout好送洗,板子拿到手並且焊接完後。一定會想到要如何得知硬體Layout有沒有大問題,要用什麼樣的程式去檢測網路底硬體通訊是否OK。如果是根據Ethernet PICtail Plus Daughter Board參考電路圖去Layout。這樣的話,『不需要任何程式』,只要電源線路與ENC28J60相關線路先上好零件,然後直接上電並接上網路線至HUB,ENC28J60的LED燈就會亮,HUB如果有LED指示的話,那麼HUB那邊的燈也會亮。到這邊,ENC28J60與網路的連接已無問題。剩下的只是ENC28J60與MCU之間的SPI介面通訊測試。

以下是Ethernet PICtail Plus Daughter Board網址,裡面剛好有Version 4與Version 5的線路圖,請參考附檔。
http://www.microchip.com/stellent/idc ... Id=1406&dDocName=en027750
我下載來看,怎麼看都看不出有哪裡不同。

另外,只需擔心網路現有沒有問題,不用擔心網路現有沒有跳線,ENC28J60會幫你自動做極性偵測。

Attach file:



jpg  (0.00 KB)


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


Re: Help Me!
#16
新會員
新會員


查看用戶資訊
感謝 SimonWu 與 Genitec 前輩的建議與說明

我的板子也是 [5] 版

Explorer 16 = 05-01872 REV [5]
Ethernet PICtail Plus = [5]

一大早看見 2 位前輩的建言, 想說死馬當活馬醫, 趕緊跑去材料行買 180 歐姆電阻

因再去看了一下 Ethernet PICtail? Plus Daughter Board 手冊, 看見了這行:

Note: Input signal, RESET, is optional. Install R10 with a 180 ohm resistor to use this signal. The
corresponding pin on the Explorer 16 development board is RD15/U1RTS_E.

但是 HardwareProfile.h 標 TRISDbits.TRISD15 . Not connected by default

// ENC28J60 I/O pins
#define ENC_RST_TRIS (TRISDbits.TRISD15) // Not connected by default
#define ENC_RST_IO (PORTDbits.RD15)
#define ENC_CS_TRIS (TRISDbits.TRISD14)
#define ENC_CS_IO (PORTDbits.RD14)

想說或許應該會 OK 真是興奮 >.< , 但又搞了一早上, 還是卡在那裡 /.\

也試了 Genitec前輩的建議, 接 Pull High 電阻 到 VDD,
也試過 Power ON後 讓 ENC28J60 的 PIN 6 和 PIN 7 短路一下 (RESET)

但它還是不理我, 真是傷心 /.\

還是等下季 RTC 課程再去驗證試試吧 ! 

感謝諸位前輩的提點, 衷心感謝. 3Q & 3Q ^.^

發表於: 2009/6/6 13:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#15
高級會員
高級會員


查看用戶資訊
因為覺得納悶 , 打開 Ethernet PICtail Plus Rev 5 Schematic.pdf 看了一下 , 發現 gehom大 說的 R10 原來是接到 ENC28J60 的 RESET 腳 , R10 沒接 , 那不就可能會 RESET 不良嗎?

gehom大 試試接個 PULL HIGH到 VDD , 或者 POWER ON後 讓 ENC28J60 的 PIN 6 和 PIN 7 短路一下 (RESET) , 看看會不會就 MACInit成功了??

發表於: 2009/6/6 1:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#14
高級會員
高級會員


查看用戶資訊
那不就是 Explorer 16 + Ethernet PICtail Plus Daughter Board 有相容性的問題!!

我的 Explorer 16 在 p1的背面有 "05-01872 REV 5"
Ethernet PICtail Plus Daughter 的版本像 SimonWu大說的是5
記得當時上RTC時是可以WORK的
------------------------------------------------
大家整合看看 , 看能不能得到一些資訊 !!

gehom大 可不可以說說你所用的版本??


SimonWu大 當時測試的資訊沒留到真是太可惜了!!
參照:
後來交叉測試,這塊有問題的Ethernet PICtail Plus Daughter Board可以跟一些Explorer組裝使用,跟另外一些Explorer無法組裝使用。

發表於: 2009/6/6 1:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#13
新會員
新會員


查看用戶資訊
抱歉,我說錯,Ethernet PICtail Plus Daughter Board電路板版本編號是與網路接頭同一面,剛好在接頭的旁邊。你在找找看。

發表於: 2009/6/5 22:23
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#12
新會員
新會員


查看用戶資訊
你的ENC28J60 Demo Board『不一定』壞掉,請留著。我曾經遇過這問題。

當時一些原因,拿身旁可取得的Explorer 16 + PIC32MX USB PIM + Ethernet PICtail Plus Daughter Board。

此時的『Explorer 16 + PIC32MX USB PIM』這兩個板子,是我先前已經驗證過,確實可以跟『先前』的一塊『Ethernet PICtail Plus Daughter Board』組裝在一起,實現網路功能。

而當下因為先前那塊Ethernet PICtail Plus Daughter Board借給別人用,所以我又拿了『另一塊』Ethernet PICtail Plus Daughter Board來用,結果開始出問題,出的問題就如gehom說得一樣,卡在同一個位置,那個位置是最剛開始的初始化網路晶片的動作。照理說沒問題的板子絕對不應該卡在那邊。

因ENC28J60晶片我曾拿來與8051系列、MSP430系列做過硬體整合,將Microchip's TCP/IP Stack移植到那些平台上無誤的正確動作,不能稱說很熟,但基本的一些功能還算瞭解。所以我也是直覺告訴我手上這片Ethernet PICtail Plus Daughter Board一定有問題,烙鐵也出動了,重新過錫,量訊號,Ethernet PICtail Plus Daughter Board板子上的一些電壓準位都正常。但死都是不會過那個while-loop。所以經過了三天,我私自判那塊板子死刑。然後在找朋友拿回先前可動的Ethernet PICtail Plus Daughter Board來用。

但最重要的事情發生,雖然判死刑,我還是帶在身邊,因為一些原因,剛好遇到好多塊Explorer板子,我就將這塊認為壞掉的Ethernet PICtail Plus Daughter Board插上去,跑網路程式,結果竟然是可以用,後來交叉測試,這塊有問題的Ethernet PICtail Plus Daughter Board可以跟一些Explorer組裝使用,跟另外一些Explorer無法組裝使用。

可惜因為當時時間有限與有事要處理,無法找出是否因為Explorer板子的版本不同而出現這問題,還是其它什麼原因導致這問題產生。唯一確定的是,相容性較差的Ethernet PICtail Plus Daughter Board電路版本本是『5』,印刷上的文字也較模糊,粗糙很多。gehom可先將Ethernet PICtail Plus Daughter Board翻過來看,背面有版本可看。

最終原因我還是沒找到,也沒機會在碰到那環境,建議gehom你先把它留著,有機會去上RTC時,拿去跟別塊Explorer做整合測試。也可試試Explorer搭配別塊、別種PIC MCU來測試。在決定是否判它死刑。

當時有問題的Ethernet PICtail Plus Daughter Board配上『行動RTC』的Explorer 16是可以動的。你在試看看。

發表於: 2009/6/5 22:18
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#11
新會員
新會員


查看用戶資訊
感謝 Ryang 和 genitec 前輩的提點, 說明, 雖然搞了好久還是沒反應, 但應該可能知道問題出在那了.

剛開始玩時(PS.自己太懶沒先確定腳位), 無圖可考, 試前段插孔SPI1也不行, 試後段插孔SPI2也不行

可能不小心把 Ethernet PICtail Plus 搞掛了, 雖然燈也有亮但 ENC28J60 可能掛了, 所以才會卡在這沒回應. (猜的)


MACInit();
|
v
// RESET the entire ENC28J60, clearing all registers
// Also wait for CLKRDY to become set.
// Bit 3 in ESTAT is an unimplemented bit. If it reads out as '1' that
// means the part is in RESET or there is something wrong with the SPI
// connection. This loop makes sure that we can communicate with the
// ENC28J60 before proceeding.
do{
SendSystemReset();
i = ReadETHReg(ESTAT).Val;
} while((i & 0x08) || (~i & ESTAT_CLKRDY));

我會再去敗一顆回來試試, 驗證看看.

謝謝 genitec 前輩的幫忙, 感謝萬分, 等會動了, 再來向您請教

3Q & 3Q ^.^

發表於: 2009/6/5 20:30
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#10
高級會員
高級會員


查看用戶資訊
你的主程式應該是卡在下列:

// If the DHCP lease has changed recently, write the new
        // IP address to the LCD display, UART, and Announce service
        
if(DHCPBindCount != myDHCPBindCount)
        {
            
myDHCPBindCount DHCPBindCount;

            
#if defined(STACK_USE_UART)
                
putrsUART((ROM char*)"rnNew IP Address: ");
            
#endif

            
DisplayIPValue(AppConfig.MyIPAddr);

            
#if defined(STACK_USE_ANNOUNCE)
                
AnnounceIP();
            
#endif
        
}


也不能說卡住 , 主流程 while(1) {...} 應該一直在跑 , 只是DHCP取不到 IP , DHCPBindCount一直無法加一 , 使得你的"New IP Address: 192.168.1.123 "一直無法顯示出來

最快的方法 , 將第8項 disable , 改用你在 TCPIPConfig.h 的內定 IP , 開機應該會SHOW 出 IP.

發表於: 2009/6/5 16:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Help Me!
#9
高級會員
高級會員


查看用戶資訊
參照:

gehom 寫道:

超級終端機也 OK

Microchip TCP/IP Config Application (v4.55, Nov 11 2008)

1: Change serial number: 21220
2: Change host name: MCHPBOARD
3: Change static IP address: 192.168.1.123
4: Change static gateway address: 192.168.1.254
5: Change static subnet mask: 255.255.255.0
6: Change static primary DNS server: 192.168.1.1
7: Change static secondary DNS server: 0.0.0.0
8: Disable DHCP & IP Gleaning: DHCP is currently enabled
9: Download MPFS image.
0: Save & Quit.
Enter a menu choice:

BUTTON0 held for more than 4 seconds. Default settings restored. <--有看到這行嗎 ? 不可按太久拉

-----------------------------------------------------------
LCD 顯示 TCPStack v4.55 就不動了, 弄了一個多星期了, 還是搞不定. <--因為你按太久 , 使用內定值是 DHCP enable , 一定要有 DHCP Server才能取得IP , 沒取得IP才會卡在這裡

我 DEBUG 一下, 發現卡住在下段迴圈內. <--是在這嗎? , 覺得怪怪的??

ENC28J60.c

// RESET the entire ENC28J60, clearing all registers
// Also wait for CLKRDY to become set.
// Bit 3 in ESTAT is an unimplemented bit. If it reads out as '1' that
// means the part is in RESET or there is something wrong with the SPI
// connection. This loop makes sure that we can communicate with the
// ENC28J60 before proceeding.
do{
SendSystemReset();
i = ReadETHReg(ESTAT).Val;
} while((i & 0x08) || (~i & ESTAT_CLKRDY));

有誰能幫幫忙, 指導一下眉角 ^.^, 感激不盡.

------------------------------------------------------------
DHCP 自動配置 IP, 是要接 HUB, 還是 IP 分享器, 還是可與電腦跳線對接呢? <--我的IP分享器會自動判斷接線 , 所以有交叉沒交叉都可以 , 但IP分享器要ENABLE DHCP SERVER
試了又試, 它還是不理我.

順問一下 Ethernet PICtail Plus 上的 R10電阻, 是本來就沒接嗎,
手冊上是 NL, 板子上是空的. 這是正常的嗎? <--正常 , 我的也沒接

------------------------------------------------------------
本想放棄了, 等下季課程開再去上, 但技術人的壞習慣, 搞不出來很難過
因此懇請各位大大幫幫忙, 點一下眉角. 3Q & 3Q ^.^

發表於: 2009/6/5 15:35
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... ]

教育訓練中心

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