Porting WIZnet W5500 ioLibrary_BSD to MCU 8051 (2)

3. Making a Test Board

– Prepare C8051F380-TB board from Silicon Labs and WIZ550io from WIZnet. Also, prepare the Breadboard, all-purpose kit, and jumper wire.

http://www.silabs.com/Support%20Documents/TechnicalDocs/C8051F38x-DK.pdf

C8051F380 IO pins are basically used as GPIO pin, it can be switching to SPI, UART, or Peir(IO pin) through CrossBar. We have to know which port is connected to SPI IO pins before making test board because Pin’s location is changed depends on how Crossbar is set up.

Simplicity Studio supports the tool named as Configuration Wizard 2.

Run Configuration Wizard 2 and select C8051F380.

To add “Peripherals” on the Menu, click the [OK] button.

If you select “Port I/O”, you can set up the Port I/O pin as following

You can move SPI IO pins to any port pin that you want by using Pin Skip Check Box.

In order to output the Serial Debugging Message, set up UART0 as P0_4(TXD), P0_5(RXD) and set up SPI IO as P0_0(SCLK), P0_1(MISO), P0_2(MOSI), P0_3(NSS) without Port Skip.

WIZ550io is Network Module based on W5500 chip from WIZnet. Please refer to following website; http://wizwiki.net/wiki/doku.php?id=products:wiz550io:allpages.

 

 

Let’s make Test Board in earnest from now.

Before making Test board, let’s make simple schematic first.

Connect RSTn pin and INTn pin from WIZ550io with P1_0 pin and P0_6 pin from C8051F380 respectively.

<NOTICE>

RDY PIN becomes “High” when WIZ550io MCU in itself complete the Network Configuration of W5500. RDY PIN is Option PIN that would be more stable in order to control WIZ550io. If GPIO PIN of target B/D for development code is not enough, just access WIZ550io with 200ms delay instead you connect it with GPIO PIN.

 Signal Name C8051F380 PIN location  WIZ550io PIN location
SPI : SCLK P0_0 (J13:C12, J2:1) J1:5
 SPI : MISO P0_1 (J13:B12, J2:2) J1:4
SPI : MOSI P0_2  (J13:A12, J2:3) J1:3
 SPI : SCS P0_3 (J13:C11, J2:4) J1:6
 Interrupt P0_6 (J13:C10, J2:7) J2:5
 RESET P1_0(J13:C21, J3:1) J2:3
 3.3 VDD J13:A1 J1:7, J1:8, J2:1
 GND J13:B1

Let’s solder now by using jumper wire.

Finally, complete to make the test board.

After connecting WIZ550io, give permission to have power.

We are ready for porting ioLibrary_BSD to MCU 8051.

See you in next chapter!

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s