Home

KS884x 16Bit BSP User`s Manual

image

Contents

1.
2. The PHY port s au frame are set according to Data value 0x00000001 10MBPS full duplex 0x00000002 10MBPS half duplex 0x00000004 100MBPS full duplex 0x00000008 100MBPS half duplex 0x00000100 Pause frame 0x00010000 Auto MDIX Micrel 0x00020000 Force MDIX Confidential Information 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 13 2006 Micrel Semiconductor Rev 1 0 MICHEL KS884x 16Bit BSP User s Manual The following CLI commands are used to enable disable Early Transmit Receive function on KS8841 only hwrxthres FData Set Early Receive Threshold in unit of 64 byte gt hwrxthres 1 Set Early receive threshold to 64 bytes hwtxthres FData Set Early Transmit Threshold in unit of 64 byte Set Early transmit threshold to 64 bytes hwearly Flag Enable Disable Early Transmit Receive 1 Enable 0 Disable gt hwearly 1 Enable Early transmit receive function gt hwearly 0 Disable Early transmit receive function hwrepeat Flag Enable Disable Repeat mode 1 Enable 0 Disable gt hwrepeat 1 Enable KS8842 Repead mode function gt hwrepeat 0 Disable KS8842 Repead mode function Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 14 2006 Micrel Semiconductor MICHEL KS884x 16B
3. T 1 Gbps Full duplex P 1 Gbps Full duplex T 1 Gbps Half duplex P 1 Gbps Half duplex F 100 Mbps Full duplex F 100 Mbps Ful duplex Retesh M 100 Mbps Half duplex 7 100 Mbps Half duplex S M 10 Mbps Full duplex F 10 Mbps Full duplex _ Update M 10 Mbps Half duplex F 10 Mbps Half duplex T Asymmetric Pause P Asymmetric Pause M Symmetric Pause 7 Symmetric Pause Help MICREL Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 19 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 4 2 Diagnostics Tab The Diagnostics Tab provides the menu page to check the cable status and the integrity of transmit and receive datapaths These two selections are provided by the cable diagnostic test and the TX RX traffic test respectively Cable Diagnostic Test The cable diagnostic test is enabled only when there is no link to the KS8841 2 PHY This test provides the following cable information for the differential pairs connected to pins 1 2 and 3 6 of the RJ 45 jack e Status Indicates whether the differential pair is Open Short or Unknown no link and no cable test conducted If there is a physical link Status is Good e Length Provides approximate distance in meters to the open or short cable fault If there is a physical link Length has no meaning and displays an empty field To run the cable d
4. Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual The top of portions are CLI command input output data format BankNum 0 3 Bank number RegNum 0 Register number RegData 0 f ff Register data to write Width 1 2 Register data width to read write l in BYTE 2 in WORD 4 in LONG BitMask 0 0001 Mask defining bit pattern field BitPat 0 0001 Bit pattern to check for BufNum 0 5 l Debug buffer number BufOffset 0 TEE Debug buffer offset Len 1 800 Debug buffer length WData 0 ff Buffer data to write e g FF 00 01 OA FData 0 ff Buffer data to fill BufiInc 0 ff Buffer data to fill by increasing count Repeat 0 n Repeat times Port 0 3 Port number 0 by lookup 1 direct to port 1 2 direct to port 2 3 direct to port 1 and 2 SameBuf O0 1 1 use same buffer to Tx 0 continuous next buffer to Tx TimeOut 0 n Time in ms to wait before giving up Index 0 n Table index Count 0 n Number of table entry items max Count macl 8 mac2 1024 vlan 6 mib 102 RegDataH 0 ffffffff Table Update Write Data Register High bit_63 bit_32 RegDataL 0 ffffffff Table Update Write Data
5. OpenTCP and Viola Systems must not be used to 4 ks_rate c endorse or promote products derived from this software without prior IB ks_stp c yritten permission For written permission please contact 4 ks tablec opentcp opentcp org a IS ks vlan c xR Products derived from this software mav not be called OpenTCP gt d 4 ksCliFunc c Ii gt ret ln narba m lt gt ethernet_ks Ha El Projects FE Templates lt I Navigation Ready E Default1 desktop Read write 1 1675 fl ins Nm Figure 6 1 3 HEW Workspace Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 27 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 6 2 Build KS8841 2 BSP from HEW If need to rebuild the KS8841 2 BSP from HEW click on the Build All icon This will re compile and link all the source files Status errors messages etc during a build process is displayed on the Output window Figure 6 2 1 OpenTCP_M16C62P High performance Embedded Workshop ethernet ks884x 4 Fe a x 5 File Edit View Project Options Build Memory Tools Window Help l amp x Dega SLR IT PRIS SIR N Bz 5 5 Mutiat Ja RA melon pere TET Ae oe Bu eee zx A igs S S Copyright c 2000 2002 Viola Systems Ltd PT OpenTCP_M1
6. Register Low bit_31 bit_O DumpF lag O 1 1 Start dumpping packet 0 Stop dummping packet Delay 0 ff Delay ms between continous transmit packets Table macl mac2 vlan mib Table identifier macl static MAC mac2 dynamic MAC The bottom of portions are CLI command syntax describe as following S Note All the inpuloutput data is in hex format The following CLI commands are used to access the device registers hwread BankNum RegNum Width Read KS8841 2 register gt hwread 20 0 2 gt bank32 reg 00 8801 Read bank 32 register 0 with data width is WORD format hwwrite BankNum RegNum RegData Width Modify KS8841 2 register gt hwwrite 2 0 12345678 4 gt hwread 2 0 4 gt bank02 reg 00 12345678 7 BYTE is 8 bit WORD is 16 bit and DWORD is 32 bit data width Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page7 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Write bank 2 register 0 with data value 0x12345678 in DWORD format hwpoll BankNum RegNum BitMask BitPat TimeOut Poll register bit if it match bit pattern gt hwpoll 11 2 0001 0000 10 Polling bank 17 register 2 bit 1 if it match 0b pattern in 10 ms gt hwpoll 11 2 0001 0001 10 gt ERROR Time out If 10 ms passed and match bit pattern no found ERROR message display The following CLI commands t
7. US As 408 944 0800 e http www micrel com Page 31 2006 Micrel Semiconductor MICHEL OPEN READ ERASE UNLOCK Unlocke KS884x 16Bit BSP User s Manual FLASH OVER USB d FILE PROGRAM ioni SETTINGS HELP BT s ee ee ee L L PT Everywhere you imegine Figure 7 1 1 Example of FOUSB Programmer Screen with KS8841 2 demo board Connected 7 2 Downloading KS8841 2 BSP To download the KS8841 2 BSP perform following steps 1 Click on OPEN on FOUSB main GUI Windows file selection menu appears as shown in Figure 7 2 1 2 Find the demo file e g OpenTCP_M16C62P_ks8842_v0 1 11 mot for KS8842 and OpenTCP_M16C62P_ks8841_v0 1 11 mot for KS8841 for loading into MCU flash The selected target file appears on FoUSB main GUI beside FILE as shown in Figure 7 2 2 3 Click on PROGRAM appears as shown 4 Click on Program program into MCU on FoUSB main GUI The Program Flash dialog box in Figure 7 2 3 of the Program Flash GUI The loading of target flash will start at this point and the progress of flash programming will be shown dynamically by a moving bar located at the lower part of this dialog box After a successful programming of the flash a Program Completed Successfully dialog box will appear 5 Click on OK button and the dialog box disappear 6 Click on EXIT button on the lower right corner of the main GUI to exit FoUSB Programmer Confidential Informatio
8. a license and royalty free TCP IP stack available to the public It was created by Viola Systems in Finland www violasystems com The code is supported and distributed via the website www opentcp org Please reference the OpenTCP_App_Note manual for detail information about OpenTCP protocol stack Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page3 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 2 CLI Commands The KS8841 2 BSP provides a set of CLI commands to help user to debug KS8841 2 device through the RS 232 serial port from your host laptop 2 1 Connecting a Serial Cable for the Terminal Emulator Connect the serial port of the laptop and serial port of the KS8841 2 demo board via a RS 232 cable After completed of serial connection set up the communications software Any communication software for personal computer communications can be used Hyper terminal Windows terminal and etc E NOTE The HyperTerminal serial port setup is 38400 8 N 1 KS8841 2 Demo Board eZ RS232 Cable 2 2 Running the KS8841 2 BSP After power up the KS8841 2 demo board The ks8841 2 BSP code is running at M16C 62P flash The following BSP message is displayed on the host Hyper terminal screen as Figure 2 2 1 or Figure 2 2 2 The BSP messages contain Bus interface of KS8841 or KS8842 interface OpenTCP Ethernet driver
9. esse enen nee 25 6 1 Starting HEW KS884x Project ss sees sse sese ennenen eee 25 6 2 Build KS8841 2 BSP from HEW eee ennenen 27 6 3 Build KS8842 BSP pelana a a a aa 27 6 4 Build KSSS41 BSP en nii ee 28 7 Downloading re loading the Firmware Program 30 7 1 Running FoUSB Programmer sccscscscescscescscescscescecscesceseess 30 7 2 Downloading KS8841 2 BSP sss sss enean aaee 31 Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page2 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 1 Overview The KS8841 2 BSP is developed under Renesas M16C 62P microprocessor with D Renesas HEW High performance Embedded Workshop IDE The KS8841 2 BSP contains the KS8841 2 driver and OpenTCP protocol stack with no OS Operating System involved This manual is divided into two parts The first part describes how to run KS8841 2 BSP with OpenTCP 1 0 4 on Micrel KS8841 and KS8842 demo board The second part describes how to install and build KS8841 2 BSP by using the Renesas SKP16C62P StarterKit Plus SKP E NOTE KS8841 2 BSP works for Micrel KS8841 and KS8842 demo board Please reference the M16C62 Hardware Manual from SKP CD for detail information about M16C 62P microprocessor via the website www renesas com BSP is Board Support Package 7 OpenTCP is
10. version KS8842 or KS8841 hardware driver version KS8841 2 Chip ID KS8841 2 Device Revision KS8842 or KS8841 base address that is mapped to the CPU memory space MAC address of KS8841 or KS8842 station IP address of KS8841 or KS8842 target Port Link Status Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page4 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual H Tera Term COM1 YT o Memek Fie Edit Setup Control Window Help icrel Ethernet Group 6x00018308 HR 04 74 22 44 55 IP Address 192 168 1 1 ort 1 Link Status 166 Mbps Full DPS ort 2 Link Status Down Figure 2 2 1 BSP message on KS8842 Demo Board Gi Tera Term COM1 YT OX File Edit Setup Control Window Help icrel Ethernet Group 8841 16 bit BUS Ethernet Driver demo penTCP Ethernet Driver Version 6 1 13 8841 Driver Version 6 1 5 8841 Chip ID 8816 8841 Device Revision 8841 Base Address 6x86616306 AC Address 68 06 70 22 44 55 IP Address 192 168 1 1 ort 1 Link Status Down Figure 2 2 2 BSP message on KS8841 Demo Board 2 3 CLI Commands Descriptions From CLI command prompt type hwhelp will display all the CLI commands that the BSP provides Figure 2 3 1 D hwhelp Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Pa
11. 00 00000000 00000000 TxStopInterrupt TxExcessiveCollision 00000000 00000000 00000000 00000000 TxOSDroppedPkts TxSingleCollision 00000000 00000000 00000000 00000000 TxUnderrunInterrupt TxMultiCollision 00000000 00000000 00000000 00000004 TxDoneInterrupt RxDroppedPackets 00000000 00000000 00000000 TxDroppedPackets 00000000 00000000 00000000 Display MIB counters for all the ports and driver statistic counters D Note From left to right columns the first four columns show MIB counters from device registers The fifth to seventh columns shows driver statistic counters hwclearmib Port Clear software MIB counter database clear all if Port 4 Clear all the MIB counters by per port or all the ports The following CLI commands are used to get set device PHY link status hwgetlink Port Get Link status gt hwgetlink 1 gt 00000000 000186a0 00000002 0000010Ff 0005010f 00000000 Display link status in hex by following sequence LinkStatus LinkSpeed LinkDuplex LinkCapable LinkAdvertisement LinkPartnerCapable Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 12 2006 Micrel Semiconductor MICHEL For the Link status information Link is download Link is good 0 means 1 means KS884x 16Bit BSP User s Manual For the Link Speed status information 1000000 100000 For the Link Duplex mode status inform
12. 000 00000000 00000000 00000000 RxRuntError RxCRCError 00000000 00000000 00000000 00000000 RxCRCError RxAlignmentError 00000000 00000000 00000000 00000000 RxMIIError RxCtr18808Pkts 00000000 00000000 00000000 00000000 RxTooLong RxPausePkts 00000000 00000000 00000000 00000000 RxInvalidFrame RxBroadcastPkts 00000000 00000002 00000000 00000000 RxIPChecksumError RxMulticastPkts 00000000 00000000 00000000 00000000 RxTCPChecksumError RxUnicastPkts 00000000 00000004 00000004 00000000 RxUDPChecksumError Rx640ctets 00000000 00000001 00000001 00000000 RxTotalError Rx65to1270ctets 00000000 00000004 00000003 00000000 RxErrorFramelnterrupt Rx128to2550ctets 00000000 00000001 00000000 00000000 RxOverrunInterrupt Rx256to5110ctets 00000000 00000000 00000000 00000000 RxStopInterrupt Rx512t010230ctets 00000000 00000000 00000000 00000000 RxOSDroppedPkts Rx1024t015220ctets 00000000 00000000 00000000 00000006 RxInterrupt TxLoPriorityByte 00000000 00000298 00000629 00000278 TxByte TxHiPriorityByte 00000000 00000000 00000000 00000004 TxTotalPkts TxPausePkts 00000000 00000000 00000000 TxBroadcastPkts 00000000 00000000 00000000 00000000 TxLateCollision TxMulticastPkts 00000000 00000000 00000000 00000000 TxMaximumCollision TxUnicastPkts 00000000 00000004 00000004 00000000 TxUnderrun TxLateCollision 00000000 00000000 00000000 00000000 TxTotalError TxDeferred 00000000 00000000 00000000 00000000 TxAllocMemFail TxTotalCollision 00000000 000000
13. 00f0001 0002 0000 00000000 000f0001 0003 0000 00000000 000f0001 0004 0000 00000000 000f0001 0005 0000 00000000 000f0001 Read VLAN tables from entry 0 for total 6 entries gt hwtableread macl 0 2 gt DataH DataM DataL 0000 0000 00000000 00000000 0001 0000 00000000 00000000 Read static MAC tables from entry 0 for total 2 entries gt hwtableread mac2 2 4 gt DataH DataM DataL 0002 0000 0199d33d bblee313 0003 0000 014ef0d7 fa7feddc 0004 0000 01823988 e0157890 0005 0000 0102cc09 29e95603 Read dynamic MAC tables from entry 2 for total 4 entries gt hwtableread mib 20 4 gt DataH DataM DataL 0020 0000 0102cc09 40007229 0021 0000 0102cc09 40000000 0022 0000 0102cc09 40000000 0023 0000 0102cc09 40000000 Read MIB counters from entry 32 for total 4 entries D Note DataH column shows data from bit_79 to bit_64 DataM column shows data from bit_63 to bit_32 DataL column shows data from bit 31 to bit 0 Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 10 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual hwtablewrite Table Index RegDataH RegDataL Write ks884X table data register gt hwtablewrite vlan 1 00000000 000ba00a Write VLAN table with data value 0x00000000 to data bit 63 to data bit 32 0x000ba00a to data bit 31 to data bit 0 hwtableshow Table Index Count Show ks884X table gt hwtables
14. 0800 e http www micrel com Page16 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual fe TCP UDP Demo El Es i UDP Receive Routine When ever the value of IP Address of Board the on board pat is CRIS Estabish connection ee is sent via a UDP Connected Ce datagram on port 5004 TCP Send Routine Enter text to be Micrel Start Streaming Eq displayed on the LCD port 5001 ks 8842 Stop Streaming Current Value 80 E r TCP Receive Routine UDP Send When a button is pressed on the remote board the E board uses the opened TCP connection to transfer Sliding this bar will cause this app button information back port 5001 to send UDP packets to the board over port 5004 a pu Get Device Stats Figure 3 4 1 Interactive TCP Windows GUI Program Now click the Establish connection button in order to open a TCP and UDP connection to your target board If a successful connection is made the LCD on the target board will read Conn Est meaning connection established The demo has been set up so that the OpenTCP stack will close a socket if it remains inactive for more than 2 minutes To write to the LCD simply type in the edit boxes one for each line on the LCD and click the Send button This sends the LCD text using the TCP socket it opened when the connection was established When a button is pressed on
15. 5ea 10 1 0 Transmit packet to Port 2 of KS8842 from data buffer 0 with packet length 1514 bytes transmit 16 times using the same buffer no delay between transmit packets Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Pages 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual gt hwbuftx 3 0 5ea 3e8 1 1 Transmit packet to Port 1 and Port 2 of KS8842 from data buffer 0 with packet length 1514 bytes transmit 1000 times using the same buffer delay Ims between transmit packets gt hwbuftx 0 0 3c 600 Transmit packet to KS8842 by lookup mode or KS8841 from data buffer 0 with packet length 60 bytes transmit 6 times continuous next buffer for next transmit no delay between transmit packets hwdumptx DumpFlag Start Stop dumpping transmit packet data gt hwdumptx 1 Start dumping transmits packets to the screen when every packet sends to KS8841 2 device from CPU system Eg gt hwbuftx 1 0 3c 1 1 0 Tx Cntl Word 0x8113 Byte Count 0x003c Tx On port 1 Pkt Len 60 DA ff ff ff ff ff ff SA 08 00 70 22 44 55 Type 0103 0000 f ff ff ff ff ff 08 00 70 22 44 55 01 03 05 07 0010 09 Ob Od Of 11 13 15 17 19 1b 1d 1f 21 23 25 27 0020 29 2b 2d 2f 31 33 35 37 39 3b 3d 3f 41 43 45 47 0030 49 4b 4d 4f 51 53 55 57 59 Sb 5d 5f The first line of message tells you what Control Word and Byte Count is writt
16. 6C62P p All rights reserved B E Assembly source file E _nert0_62pskp a30 Redistribution and use in source and binary forms with or without A ef nodification are permitted provided that the following conditions sft_labels_62p a30 ence nets B E C header file l cliTable h 1 Redistributions of source code must retain the above copyright hardware h notice this list of conditions and the following disclaimer Zz is targeth 2 Redistributions in binary form must reproduce the above copyright ey C fil S lt x ea A E T notice this list of conditions and the following disclaimer in the A cliParser c documentation and or other materials provided with the distribution ethemet_ks884x El S el E 2 The endoucer documentation included with the redietrihution if BC E ae gt qui demo c a wt Fe lt 5 Di lt gt hardware gt ethemet_ks E Projects processing C MTOOL lib30 nc30lib lib _ISDIVU r30 j processing C MTOOL lib30 nc30lib lib _ISMODU r30 j DATA 0028882 070D2H Byte s ROMDATA O0016303 03FAFH Byte s CODE 0062938 OFSDAH Byte s Phase M16C Linker finished xl 2i Phase M16C Load Module Converter starting Load Module Converter lmc30 for R8C Tiny M16C 60 Series Version 4 00 01 COPYRIGHT C 1995 2004 RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED tm mm tm Phase M16C Load Module Converter finished Bu
17. 88xx_v1 0 0 SW Driver zip ZIP file under directory Software M16C software Driver contains Oo OpenTCP protocol stack and demo program o BSP functions including UART driver LCD driver etc o KS8841 or KS8842 Ethernet driver o Windows TCP GUI demo program o Windows LinkMD GUI demo program 5 1 Creating a KS884x BSP Directory Create a KS884x directory under installDir eg MTOOL ks884x and copy the ks884x zip to MTOOL ks884x Unzip ks884x zip under MTOOL ks884x directory It is successful if you see a new the directory MTOOL ks884x OpenTCP_104 The most of subdirectories and files are the same as you download from OpenTCP website the KS8841 2 BSP only add or modify following subdirectories and files Directory Status Description ks884x OpenTCP_104 ks884x ethernet_ks884x c Add OpenTCP Ethernet Driver for Micrel KS8841 2 device ks884x OpenTCP_104 gui_demo c Modify Change target IP to 192 168 1 1 Init UART driver and polling UART receive ks884x OpenTCP_104 arch M16C set30_62pskp inc Modify Change the ISP in vector table to ks884xIntr ISP ks884x OpenTCP_104 ks884x Add This directory contains the KS8841 2 driver ks884x OpenTCP_104 arch uart Add This directory contains UART driver and CLI parser T Please contact Renesas support on how to get SKP CD via the website www renesas com Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e h
18. MICHEL KS884x 16Bit BSP User s Manual Micrel KS8841 2 16Bit Bus BSP User s Manual Version 1 0 07 28 2006 Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 2006 Micrel Semiconductor E Creel KS884x 16Bit BSP User s Manual Contents 1 OVERVIEW en ee A a Ge er 3 2 CLT C mmands Ann nn A A desise aude ELA 95 RES res 4 2 1 Connecting a Serial Cable for the Terminal Emulator 4 2 2 Running the KS8841 2 BSP ccscscescsceccscscescscsscscescscescsseseess 4 2 3 CLI Commands Descriptions sss sss sss sse sse esse sees eee eee 5 3 Running the OpenTCP Demo sccsccccccccsccccccccsccessccssccesecs 15 3 1 Setting the Target IP sss sees esse eean 15 3 2 Connecting a Cable for Ethernet Connection 15 3 3 PING to KS8841 2 Demo Target cesse eee eea 15 3 4 Running Windows TCP GUI Demo Program sss sss sss ss sss ss sese sees ee ens 16 4 LinkMD GUI Demo Program cccccccscccsccccscccsccccsccessccssscssecs 18 4 1 Capabilities Tab pns de a A A a 18 4 2 Diagnostics Tab dcsacoroucdccaccasaades ssseccnnased diecpanan bee dada sieste 20 4 3 TX RX Traffic Test since einen 21 5 KS8841 2 BSP Installation cesses sees sese sss esse sese eenn ennenen 24 5 1 Creating a KS884x BSP Directory sss ss sss esse eee enean 24 6 Building KS8841 2 BSP from HEW sss sss secs sss sees
19. Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual the PC is sending ARP packets or other Ethernet traffic is present the transmit count and receive count may differ Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 23 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Figure 4 4 LinkMD Diagnostics Traffic Test Tab ST ox Capabilities Diagnostics PHY com1 K58842 1 Cable Status Crossed m 41 Pair 1 2 3 6 4 5 7 8 Status Good Good Unknown Unknown Refresh Test MICREL Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 24 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 5 KS8841 2 BSP Installation This section describes how to install and build KS8841 2 BSP under Renesas HEW Version 3 01 05 OpenTCP 1 04 for Renesas M16C 62P Before install KS8841 2 BSP The Renesas SKP16C62P StarterKit Plus SKP CDP for M16C 62P must be installed on the host system Microsoft Windows A Note The SKP kit comes with an integrated software development environment HEW IDE C compiler assembler and linker KD30 Debugger and FoUSB Flash over USB Programmer NOTE For more detail information about HEW see the SKP16C62P_Tutorial_1_HEW from Renesas The ks
20. R NR 2 aaa R 6 je RZ M16C62P_Release z DefautSesson zi A amp E A El amp PP L EO El Copyright c 2000 2002 Viola Systems Ltd 2 19 OpenTCP_M16C62P All rights reserved J Assembly source file E _nertO_62pskp a30 Redistribution and use in source and binary forms with or without FE Sr labels 62 nodification are permitted provided that the following conditions a 62p 230 are met EQ C header file cliTable h 1 Redistributions of source code must retain the above copyright hardware b notice this list of conditions and the following disclaimer NE 2 Redistributions in binary form must reproduce the above copyright aa eel notice this list of conditions and the following disclaimer in the LE cliParser c documentation and or other materials provided with the distribution ethemet_ks884x c k A fi 3 The end user documentation included with the redistribution if file_system c A D qui d any must include the following acknowledgment E gul_demo c This product includes software developed by Viola 5 hardware c Systems http www violasystems com 4 ks_config c 2 ks_Diag c Alternately this acknowledgment may appear in the software itself I ba if and wherever suci ird party acknowledgments normally appear if d whi h third t knowled t 11 E ks mirror c F Z ks_qos c 4 The names
21. Width Modify ks884X register BankNum RegNum BitMask BitPat TimeOut Poll register bit if it match bit pattern Buf Num BufOffset Len Display contents of debug buffer Buf Num Buf Offset WData Write data to debug buffer Buf Num BufOffset FData BufInc Len Fill data to debug buffer Port BufNum Len Repeat SameBuf Delay Tx packet from debug buffer to ks884 Buf Num TimeOut Rx packet from ks884K and store in debug buffer lt start at BufNum gt Table Index Count Read ks884X table data register Table Index RegDataH RegDataL Write ks884X table data register Table Index Count Show ks884X table Port Clear software MIB counter database clear all if Port 4 gt DumpFlag Start Stop dumpping transmit packet data DumpFlag Enable Disable Repeat mode lt i Enable Disable Flag Start Stop dumpping receive packet data TimeOut Reset the device FData Set Early Receive Threshold Cin unit of 64 byte gt FData Set Early Transmit Threshold Cin unit of 64 byte Flag Enable Disable Early Transmit Receive 1 Enable Disable Port Ethernet cable diagnostics Port Get Link status Port Set Link speed Get device MAC address Get device IP address Get driver port 1 total transmit packets counters Get driver port 2 total transmit packets counters Get driver port 1 total received packets counters Get driver port 2 total received packets counters Repeat MAC IP Tx ARP request packet to ks884X Figure 2 3 1 hwhelp display Confidential
22. ation means means Link Speed is 100Mbps Link Speed is 10Mbps LinkStatus LinkSpeed LinkDuplex 0x01 means Link Duplex is full duplex 0x02 means cable is crossed 0x04 means is reversed For the Link Capable status information LinkCapable 0x00000001 means 10BaseT full duplex 0x00000002 means 10BaseT half duplex 0x00000004 means 100BaseTX full duplex 0x00000008 means 100BaseTX half duplex 0x00000100 means Link Pause For the Link Auto Negotiation Advertisement status information LinkAdvertisement 0x00000001 0x00000002 0x00000004 0x00000008 0x00000100 0x00010000 0x00020000 0x00040000 For the Link 0x00000001 0x00000002 0x00000004 0x00000008 0x00000100 m 3 33 3 3 3 3 3 33 33 eans eans eans eans eans eans eans eans Partner Capabil eans eans eans eans eans 10MBPS full duplex 10MBPS half duplex 100MBPS full duplex 100MBPS half duplex Pause frame enable Auto MDIX Force MDIX Auto Polarity 10MBPS full 10MBPS half dup duplex 100MBPS ful 100MBPS hal 1 dupl f dupl Pause frame hwsetlink Port Data gt hwsetlink 1 00000004 gt Set Port 1 with Data 00000004 ex ex lities status information ex LinkPartnerCapable Set Link speed to negotiation advertisement link speed duplex and pause
23. en to the KS8841 2 TXQ gt hwdumptx 0 Stop dumping transmits packets to the screen hwdumprx DumpFlag Start Stop dumpping receive packet data gt hwdumprx 1 Start dumping received packets received from KS8841 2 device to the screen when every packets received from KS8841 2 device to CPU system Eg if PING from the laptop Rx Cntl Word 0x82c8 Byte Count 0x003c Rx On port 2 Pkt Len 60 DA ff ff ff ff ff ff SA 00 50 ba 15 56 29 Type 0806 0000 ff ff ff ff ff ff 00 50 ba 15 56 29 08 06 00 O1 7 If you already prepare the six buffers with different Ethernet packets data it will transmit data buffer from 0 to 5 one by one Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page9 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 0010 08 00 06 04 00 01 00 50 ba 15 56 29 c0 a8 01 Oa 0020 00 00 00 00 00 00 cO a8 01 01 00 00 00 00 00 00 0030 00 00 00 00 00 00 00 00 00 00 00 00 The first line of message is Receive Status from register RXSR and RXBC gt hwdumprx 0 Stop dumping received packets to the screen The following CLI commands are used to access the device indirect access registers for the VLAN table static MAC table dynamic MAC table and MIB counters hwtableread Table Index Count Read ks884X table data register gt hwtableread vlan 0 6 gt DataH DataM DataL 0000 0000 00000000 000f0001 0001 0000 00000000 0
24. ges 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual era TG U Y R Ly LAI File Edit Setup Control Window Help Bank number Register number Register data to write Register data width to read write 1 in BYTE 2 in WORD 4 in LONG Mask defining bit pattern field Bit pattern to check for Debug buffer number Debug buffer offset Debug buffer length Buffer data to write e g FF BO Gi GA Buffer data to fill Buffer data to fill by increasing count Repeat times Port number lt by lookup 1 direct to porti 2 direct to port2 3 direct to porti and 2 1 use same buffer to Tx continuous next buffer to Tx Time in ms to wait before giving up Table index n Number of table entry items max Count maci 8 mac2 1624 vlan 6 mib 1 2 gt ff ffffff Table Update Write Data Register High bit 63 bit 32 ff ffffff Table Update Write Data Register Low bit 31 bit gt 1 gt 1 Start dumpping packet Stop dummping packet ff gt Delay ms between continous transmit packets maci mac2 vlan mib Table identifier lt maci static MAC mac2 dynamic MAC m Gol NASA NA NA ee ee ee Ket Ket Kt rpa w RegDataH egDataL RAIL RRR a a 1 0081 aa a a a a a a a a a a a Ca a a a a a a Ca H SOSSSSSSSSSSS l RRR R RUR RT RRR RRR RR E RR R 8 78 I a R LRR RRR 888808 8 Display help message BankNum RegNum Width Read ks884X register BankNum RegNum RegData
25. ght 1985 2666 Microsoft Corp P gt ping 192 168 1 1 t Pinging 192 168 1 1 with 32 bytes of data from 192 168 1 1 bytes 32 time lt iGms TTL 166 from 192 168 1 1 bytes 32 time lt 1 ms TTL 166 from 192 168 1 1 bytes 32 time lt i ms TTL 160 from 192 168 1 1 bytes 32 time lt i ms TTL 166 from 192 168 1 1 bytes 32 time lt i ms TTL 166 from 192 168 1 1 bytes 32 time lt i ms TTL 166 from 192 168 1 1 bytes 32 time lt iGms TTL 166 from 192 168 1 1 bytes 32 time lt 1 ms TTL 106 from 192 168 1 1 bytes 32 time lt 1 ms TTL 100 from 192 168 1 1 bytes 32 time lt i ms TTL 106 from 192 168 1 1 bytes 32 time lt i ms TTL 166 from 192 168 1 1 bytes 32 time lt 1 ms TTL 166 Figure 3 3 1 Issue PING from the laptop Command Prompt 3 4 Running Windows TCP GUI Demo Program The KS8841 2 BSP packet also provides a Windows GUI program tcp_gui exe that can run on your laptop to test whether the KS8841 2 is accessible in the real TCP IP application protocol From the directory that you installed the KS8841 2 BSP packet on your host laptop double click M16C Software Demo Programa TCP GUI Demo tcp_gui exe An interactive TCP GUI Window will come up Change the IP address in the upper left hand corner of the window by clicking on the IP address button Figure 3 4 1 gt NOTE You should change the IP address to the one that you assigned to your board Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944
26. how vlan 0 6 Entry Status VID FID Port 1 2 3 0000 valid 0001 0000 MMM 0001 valid 0010 0010 MM 0002 valid 0001 0000 MMM 0003 valid 0001 0000 MMM 0004 valid 0001 0000 MMM 0005 valid 0001 0000 MMM Display VLAN table from entry 0 for total 6 entries gt hwtableshow macl 0 2 Entry Status MAC FID Port 1 2 3 UseFID Override 0000 invalid 00 00 00 00 00 00 0000 FALSE FALSE 0001 invalid 00 00 00 00 00 00 0000 FALSE FALSE Display static MAC table from entry 0 for total 4 entries gt hwtableshow mac2 0 4 Entry Status MAC FID Port 12 3 AgingTime 0000 learned 00 50 ba 15 56 29 0000 M 00 0001 learned 08 00 70 22 44 55 0000 M 00 0002 invalid d3 3d bb le e3 13 0009 M 02 0003 invalid f0 d7 fa 7f ed dc 0014 M 01 Display dynamic MAC table from entry 0 for total 4 entries Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Pagell 2006 Micrel Semiconductor E Creel KS884x 16Bit BSP User s Manual gt hwtableshow mib 0 1 Port 1 Port 2 Port 3 Driver RxLoPriorityByte 00000000 00000629 00000298 00000605 RxByte RxHiPriorityByte 00000000 00000000 00000000 00000002 RxBroadcastPkts RxUndersizePkt 00000000 00000000 00000000 00000002 RxMulticastPkts RxFragments 00000000 00000000 00000000 00000004 RxUnicastPkts RxOversize 00000000 00000000 00000000 00000006 RxTotalPkts RxJabbers 00000000 00000000 00000000 RxSymbolError 00000
27. iagnostic test press the Test button Figure 4 2 shows the sample test results of the cable diagnostic test where a 4 meters short and 3 meters open were found on the differential pairs connected to pins 1 2 and 3 6 of the RJ 45 jack respectively Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 20 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Figure 4 2 LinKMD Diagnostics Cable Status Tab Etine 015 Capabilities Diagnostics PHY com1 K58842 1 Cable Status Open e 41 3m Pair ie 3 6 4 5 7 6 Status Open Short Unknown Unknown Length 3m 4m Refresh MICREL Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 21 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 4 3 TX RX Traffic Test The TX RX traffic test uses Ethernet packets to check the integrity of transmit and receive datapaths This test requires the KS8841 2 PHY to have a physical link established with a PHY on the PC that is connected to the KS8841 2 via RS232 Serial interface as shown in Figure 4 3 KS8841 or KS8842 Demo Board _ RS232 Cable 192 168 1 1 Figure 4 3 TX RX Traffic Test Setup The PC should be connected to only two PHYs One is the KS8841 2 via RS232 serial interface and the
28. ild Finished 0 Errors 6 Warnings Build A Debug A Find in Files Version Control Ready E El El Default1 desktop Read write 1 1675 1 ins NUM ESI EGI E Figure 6 2 1 HEW Workspace with Output window 6 3 Build KS8842 BSP To rebuild the KS8842 BSP from HEW click on the Options gt Renesas M16C Standard Toolchain From C gt Defines add DEP KS8842 1 then Build All Figure 6 3 1 Now an executable file OpenTCP M16C62P mot has been created in the MTOOL ks884x OpenTCP_104 arch M16C M16C62P_ Release directory D NOTE Rename OpenTCP_M16C62P mot to OpenTCP M16C62P ks8842 mot Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 28 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Renesas M16C Standard Toolchain 21 D C Assembly Link Librarian Lme Cfg Me Categow Soue gt Show entries for Defines D Define a identifier Configuration M16C62P_Release EMG All Loaded Projects Eee C source file Assembly source file Pemove M16C_62P 1 KS ISA BUS 1 Remove KS ISA 1 DEF_K58842 1 Options C A PROJDIR include A PROJDIR Awebfiles A PROJDIR S 4ks884x J PROJDIR S uart PROJDIR DM16C_62P 1 DKS ISA BUS 1 Figure 6 3 1 Renesas M16C Standard Toolchain wind
29. is currently possible done by FoUSB Flash Over USB FoUSB along with the ICD RTA FOUSB MON to download reprogramming the M16C 62P flash MCU with firmware Before downloading the demo program First Renesas FoUSB has been installed in your host system Microsoft Windows Seconds connect the RTA FOUSB MON ICD to your host system and to your KS8841 2 demo board Figure 7 1 Host PC running FoUSB Programmer RTA FoUSB MON TARGET ve RENESAS Poem Vante wa Pa s109 1 GD 10 Pin at as ete 1 RER Connection USB KSD Demo Board Figure 7 1 M16C 62P System Connectivity for FoUSB programmer E IMPORTANT When using RTA FOUSB MON connect to the KS8841 2 demo board switch the power source switch on the RTA FOUSB MON to TARGET Powered Mode since the power supply on the KS8841 2 demo board will provide power to the KS8841 2 demo board as well as the RTA FOUSB MON If the switch is left at USB Powered Mode some MCU pins may be driven to undesirable levels 7 1 Running FoUSB Programmer Apply the 5V power supply to External Power Input on the KS8841 2 demo board Click on Start gt Programs gt Renesas Tools gt Flashover USB Ver 2 01 gt FoUSB Programmer and a screen similar to Figure 7 1 1 will be displayed T Please reference the RTA F oUSB MON_Users_Manual for how to install FoUSB ICD Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131
30. it BSP User s Manual 3 Running the OpenTCP Demo 3 1 Setting the Target IP In order to use the demo you must first assign an IP address to the target The KS8841 2 demo board is assigned a fix IP address 192 168 1 1 and if you connect one of Ethernet port from KS8841 2 target to your laptop You should use an IP number on the same sub net as you laptop For example set the IP address of your laptop is 192 168 1 10 Figure 3 2 1 E Note If you want to use a IP address other than this you need to edit the gui_demo c file and rebuild your project 3 2 Connecting a Cable for the Ethernet Connection Connecting an Ethernet cable between your laptop and one of the ports on the KS8842 demo board Or Connecting an Ethernet cable between your laptop and port 1 on the KS8841 demo board KS8841 2 Demo Board RS232 Cable 192 168 1510 Ethernet Cable 192 168 1 1 Figure 3 2 1 Example of connection between KS8841 2 Demo Board and Laptop 3 3 PING to KS8841 2 Demo Target You can use the PING command from your laptop Windows Command Prompt to test whether the KS8841 2 is accessible over the network Figure 3 3 1 Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 15 2006 Micrel Semiconductor EMI Cree KS884x 16Bit BSP User s Manual Command Prompt ping 192 168 1 1 t Microsoft Windows 2888 Version 5 66 2195 CC Copyri
31. n 2180 Fortune Drive Rev 1 0 San Jose CA95131 US As 408 944 0800 e http www micrel com Page 32 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual D Note Select Erase gt Program gt Verify option the default option from Choose an Operation Select Erase Only Needed Blocks option from Erasing Options la a a M16C62P_Release e SIP Fae a OpenTCP M16C62P mot sa OpenTCP_M16C62P_ks8841_8bit_v0 1 11 mot OpenTCP_M16C62P_ks8841_v0 1 11 mot Filename OpenTCP_MIBC62P_ks8841_v0 1 11 Files of type Intel Hex or Motorola S Record lt Cancel 7 Figure 7 2 1 Dialog box for file selection FLASH OVER USB CEE 5 AA OPEN READ ERASE J UNLOCK PROGRAM SETTINGS HELP EXIT A e e H T Figure 7 2 2 FoUSB main GUI after file selection Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 33 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Program Flash x Choose an Operation Erase gt Program gt Verify C Program Only Erasing Option C Erase ALLY Blocks GC Erase Only Needed Blocks Help Program Close Figure 7 2 3 Menu options for programming flash Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 34 2006 Micrel Semiconductor
32. o prepare an Ethernet packet and transmit from CLI command to KS8841 2 device There are total six data buffer for the user to store the Ethernet packet One data buffer can only store one Ethernet packet and must be a completed Ethernet packet hwbufwrite BufNum BufOffset WData Write data to debug buffer gt hwbufwrite 0 0 ff ff ff ff ff ff 08 00 70 22 44 55 Write a destination MAC address broadcast source MAC address 08 00 70 22 44 55 to the data buffer 0 data buffer offset 0 hwbuffill BufNum BufOffset FData BufInc Len Fill data to debug buffer gt hwbuffill 0 Oc 01 02 3c Fill data buffer 0 start from data buffer offset 0x0c with data 0x01 and increasing by 0x02 totally filling data length is 0x3c 60 bytes hwbufread BufNum BufOffset Len Display contents of debug buffer gt hwbufread 0 0 3c gt 00000000 ff ff ff ff ff ff 08 00 00000010 09 Ob Od Of 11 13 15 17 00000020 29 2b 2d 2f 31 33 35 37 00000030 49 4b 4d 4f 51 53 55 57 70 22 44 55 01 03 05 07 19 1b 1d 1f 21 23 25 27 39 3b 3d 3f 41 43 45 47 59 5b 5d 5f Display the contents of data buffer 0 offset 0 data length 0x3c 60 bytes hwbuftx Port BufNum Len Repeat SameBuf Delay Tx packet from debug buffer to KS8841 2 gt hwbuftx 1 0 3c 2 1 0 Transmit packet to Port 1 of KS8842 from data buffer 0 with packet length 60 bytes transmit 2 times using the same buffer no delay between transmit packets gt hwbuftx 2 0
33. other could be either a PHY on the motherboard or a network interface card NIC The PHYs should be configured with different static IP addresses under the same subnet S section 4 3 on how to configure network settings for Windows XP The Cable Status field at the top of this menu page displays the cable link status of the KS8841 2 Before starting the TX RX traffic test press the Refresh button to check the latest cable status If there is a link the status will display either Crossed for a crossover connection or Good for a straight connection If there is no link the status will display Unknown For the test setup in Figure 4 3 the TX RX counters and Send button at the bottom left of this menu page are associated with the KS8841 2 PHY Similarly the TX RX counters and Send button at the bottom right of this menu page are associated with the other PHY The drop down menu between the TX RX counters selects the number of Ethernet packets to send The selections are 1 10 100 1000 or Continuous The Send buttons start the transmission of packets with respect to either KS8841 2 PHY or other PHY The sample test results in 4 4 shows 100 packets sent by the KS8841 2 PHY and 100 packets received by other PHY Also all 100 packets sent by the other PHY are received the KS8841 2 PHY Note if Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 22 2006
34. ow to build KS8842 BSP 6 4 Build KS8841 BSP To rebuild the KS8841 BSP from HEW click on the Options gt Renesas M16C Standard Toolchain From C gt Defines add DEF_KS8841 1 then Build All Figure 6 4 1 Now an executable file OpenTCP_M16C62P mot has been created in the MTOOL ks884x OpenTCP_104 arch M16C M16C62P_Release directory gt NOTE Rename OpenTCP_M16C62P mot to OpenTCP_M16C62P_ks8841 mot Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 29 2006 Micrel Semiconductor BIC del KS884x 16Bit BSP User s Manual Configuration M16C62P Release EMG All Loaded Projects S OpenTCP_M16C62P C source file Assembly source file Category Source H Show entries for Defines lt D Define a identifier M1BC_62P 1 KS ISA BUS Remove KS ISA DEF_K58841 K b a Options C J PROJDIR S include 1 PROJDIA webfiles A PROJDIR 4ks884x I PROJDIR uart PROJDIR DM16C_62P 1 DKS_ISA_BUS 1 Figure 6 4 1 Renesas M16C Standard Toolchain window to build KS8841 BSP Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 30 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 7 Downloading re loading the Firmware Program Updating the KS8841 2 BSP
35. the target board that info is also sent via the TCP connection to the windows program and the corresponding picture of the button on the GUI will change To send receive UDP packets click the Start Streaming button This will send a TCP packet to the target board telling it to start sending the current A2D value of the pot via a UDP packet every time it changes Also when the slider bar on the GUI is moved the new value is send to the target board via UDP packets and the value is displayed on the LCD Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 17 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 4 LinkMD GUI Demo Program The Micrel LinkMD software is a Windows Graphical User Interface GUI program that simplifies and expedites the evaluation and testing of the KS8841 2 Three separate Window tabs provide menu selections to check the PHY s link status and capabilities perform cable diagnostics and integrity check on transmit and receive datapaths To launch the LinkMD program navigate to the directory with the Micrel LinkMD software M16C Software Demo Program LinkMD GUI Demo and double click on the LinkMD exe file The LinkMD program will start and display the Capabilities menu page The other two menu pages are Diagnostics and PHY Common to all three pages are the Exit button to close the LinkMD program and the Help button
36. to display the current version of LinkMD software 4 1 Capabilities Tab The Capabilities Tab shown in Figure 4 1 provides the following basic link status and settings for the KS8841 2 e Link Status section shows the current link speed duplex MDI MDIX and polarity settings of the KS8841 2 If there is no link these four fields are dimmed to indicate no status e Advertised Capabilities and Link Partner Capabilities sections show the speed duplex and full duplex flow control capabilities of the KS8841 2 and its link partner KS8841 2 capabilities are programmable Its link partner capabilities are read only and dimmed to indicate no capabilities when there is no link e Crossover option allows the PHY to be set in HP Auto MDIX for automatic detection and correction for straight through and crossover cabling or forced to either MDI or MDIX mode To read the latest PHY status press the Refresh button To configure the PHY set the desired settings and press the Update button Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 18 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Figure 4 1 LinkMD Capabilities Tab ix CEEE Diagnostics PHY CRE Link Status Speed 100 Mbps Duplex Full Duplex MDI MDIX MDIX Polarity Normal Advertised Capabilities Link Partner Capabilities
37. ttp www micrel com Page 25 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual 6 Building KS8841 2 BSP from HEW This section describes how to build KS8841 2 BSP for KS8841 2 demo board from Renesas HEW project facility 6 1 Starting HEW KS884x Project To start HEW from your development Windows PC click on the Start gt Programs gt Renesas High performance Embedded Workshop gt High performance Embedded Workshop After HEW opens from the Welcome dialog box Figure 6 1 1 select Browse to another project workspace option and then click OK LE High performance Embedded Workshop Welcome Figure 6 1 1 HEW Main Window Then click on Browse selection of Hew3 under MTOOL ks884x OpenTCP_104 arch M16C directory from the Workspace Browse window Figure 6 1 2 Confidential Information Rev 1 0 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 s http www micrel com Page 26 2006 Micrel Semiconductor MICHEL KS884x 16Bit BSP User s Manual Look in Sa mec lt e eE M16C62P_Release File name Hew3 Files of type HEW Workspaces hws gt Cancel Figure 6 1 2 HEW Workspace Browse Window 72 HEW workspace should look like the figure 6 1 3 below OpenTCP_M16C62P High performance Embedded Workshop ethernet_ks884x File Edit View Project Options Build Memory Tools Window Help l x psug s gt et Ta IA 8

Download Pdf Manuals

image

Related Search

Related Contents

User Manual  SERVICE LIGHT PLUS AIRBAG RESET TOOL  産業デザイン分野スキルスタンダードに関する説明書  Massive Wall light 55600/17/10  30” Freestanding Gas Range SERVICE MANUAL  

Copyright © All rights reserved.
Failed to retrieve file