Wiring Wiz820io Ethernet Module to Teensy 3.1 (or 3.2)

by BigDan



Overview

He have a Teensy 3.1 and Wiz820io Ethernet Module He want to connect together. PJRC does sell a little shield for the Wiz820io, but He plan to mount the Teensy to a PCB and want to do the same with the Wiz820io rather than use this shield.

He immediately had issues which he incorrectly blamed on drivers. Had this been any MCU other than the Teensy, drivers would have been a good guess. He was puzzled as to why he would have driver issues given PJRC was selling the shield. It should work, yet didn’t.

To make a very long (as in 8 hours) story short, the root of the problem lies in the Wiz820io’s RESET pin. He finally discovered that you MUST properly provide power to this pin to get the Wiz820io up and running. When you do, the two lights on the Wiz820io will come on.

But even after discovering the necessity of the RESET pin, He could not get the drivers to work. In his research he found one person telling another to toss their Arduino Due and use a Teensy because the Teensyduino had all the necessary drivers. OK, He must be using the proper drivers, and now he know the trick of the RESET pin, what else is he missing?

PJRC shield wiring diagram

Teensy3 SD Card WIZ820io MCP1825 JUMPER PADS
4 2:CS
8 Left Side
9 RESET
10:CS SS
11:DOUT 3:DI MOSI
12:DIN 7:DO MISO
13:SCK 5:CLK SCLK
VIN 1:IN
4:VDD VIN33,VIN33 3:OUT
GND 6:VSS GND,GND,GND 2:GND+TAB Right Side
PWDN Center

How to be wired a standalone Wiz820io module to a Teensy 3.1

Learn More

Goto Original


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

How to use WIZnet Chip set such as W5100, W5200, W5300, and W5500 with Basic source code

by MCS electronics



Overview

This post introduces how to use WIZnet chip solution such like as W3100A, W5100, W5200, W5300, and W5500 with BASIC source code on BASCOM-AVR & BASCOM-8051.
BASCOM-AVR & BASCOM-8051 are BASIC complier & IDE development tools. These can implement with BASIC source code on WIZnet chip solutions.

CONFIG TCPIP

  • Syntax W3100A

    CONFIG TCPIP = int , MAC = mac , IP = ip, SUBMASK = mask, GATEWAY = gateway, LOCALPORT= port, TX= tx, RX= rx , NOINIT= 0|1 [, TWI=address] [, Clock = speed] [, baseaddress = address] [,TimeOut=tmOut] [,CHIP=W3100A] 
    
  • Syntax W5100

    CONFIG TCPIP = int , MAC = mac , IP = ip, SUBMASK = mask, GATEWAY = gateway, LOCALPORT= port, TX= tx, RX= rx , NOINIT= 0|1 [, baseaddress = address] [,TimeOut=tmOut] [,CHIP=5100] [,SPI=spi] [,INT=imsg] [,CS=cs] [,NOUDP=noudp] 
    
  • Syntax W5200

    CONFIG TCPIP = int , MAC = mac , IP = ip, SUBMASK = mask, GATEWAY = gateway, LOCALPORT= port, NOINIT= 0|1 [,TimeOut=tmOut] [,CHIP=W5200] [,SPI=spi] [,INT=imsg] [,CS=cs] [,NOUDP=noudp] [TXn= tx] [, RXn= rx] 
    
  • Syntax W5300

    CONFIG TCPIP = int , MAC = mac , IP = ip, SUBMASK = mask, GATEWAY = gateway, LOCALPORT= port, NOINIT= 0|1 [, baseaddress = address] [,TimeOut=tmOut] [,CHIP=W5300] [,INT=imsg] [,NOUDP=noudp] [align=align] [TXn= tx] [, RXn= rx] [SOCKMEM=sockmem] 
    
  • Syntax W5500

    CONFIG TCPIP = NOINT , MAC = mac , IP = ip, SUBMASK = mask, GATEWAY = gateway, LOCALPORT= port, NOINIT= 0|1 [,TimeOut=tmOut] [,CHIP=W5500] [,SPI=spi] [,INT=imsg] [,CS=cs] [,NOUDP=noudp] [TXn= tx] [, RXn= rx] 
    

Learn More

Goto Original

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

AVR ATxmega - Development Board (Model: AL-XAVRB_EXT)

by ALVIDI



Overview

This product supports a large 8MBytes SDRAM memory and Hardwired TCP/IP chip W5200. So, It is very easy to develope the applicatioin to be needed large memory such like IP-camera, Web-service, and SSL secuity communication.

Construction:

  • Controller: Atmel AVR ATxmega128A1U-AU up to 32 MHz
  • Equipment:

    • internal voltage regulator 3.3V
    • external SDRAM 64Mbit
    • USB to USART CP2102 controller
    • Ethernet to SPI W5200 controller
    • Reset and SWQ2 keys
    • quartz sockez and 32.768kHz quartz
    • 50 I/O
    • Power LED
    • optional equipment: on request
    • MicroSD card slot
    • site pin connectors
    • JTAG and PDI connectors
    • Voltage Supply:
      • USB 5V or external 3.3V or external 5.0-12V
  • Module size: W x H x D 49 mm x 100 mm x 19 mm

  • Operating temperature:
    • -25°C bis +70°C with microSD card slot
    • -40°C bis +70°C without microSD card slot

Links:


Learn More

Goto Original


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

freeRTOS and libraries for AVR ATmega with Eclipse IDE

by feilipu



Overview

This is a library for AVR ATmega platform such as Arduino, AVRDUDE, and etc. This libraray support uIP Library operated by WIZnet chip such as W5100, W5200, and W5500. This library also support OS environment as FreeRTOS.

This library is very useful for AVR developers who have an experience about uIP stack.

Features

  • Arduino Uno family ATmega328p, Freetronics EtherMega (Arduino Mega2560), and Goldilocks ATmega1284p, scheduling and IO works.
  • Being able to use any Timer on the AVR as the system Tick. In practice this means Timer0 on 328p (Arduino Uno), Timer3 on 2560 (Arduino Mega) and 1284p (Pololu SVP) and Timer2 on 1284p with 32.768kHz watch crystal (Freetronics Goldilocks).
  • Converting all of the relevant libraries to be friendly to a RTOS system. No delay busy-wait loops etc. Everything defers to (is interruptible by) the scheduler when waiting, or is driven from interrupts.
  • Having many finished projects, that are good demonstrations of lots of AVR and freeRTOS capabilities.
  • Having the Sparkfun LCD Shield working properly, with printf string formatting.
  • Having the Rugged Circuits QuadRAM 512kByte and MegaRAM 128kByte RAM extensions working on ATmega2560.
  • Porting ChaN FatF microSD card support for a variety of uSD shield cages.
  • Porting Wiznet W5100 and W5200 drivers for Arduino Ethernet shields.
  • Porting Wiznet and uIP DHCP and HTTP applications, creating options for implementing a basic web server.
  • Properly implementing semaphores for access to resources (ports, interfaces, ADC, LCD).
  • Properly implementing queues for transferring data between tasks (threads).

Learn More

Goto Orignal : http://feilipu.me/2011/09/22/freertos-and-libraries-for-avr-atmega/

Download

http://sourceforge.net/projects/avrfreertos/

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

ioLibrary 100% 활용하기 (1)


ioLibray ?

ioLibrary는 WIZnet의 W5XXX(W5100,W5200,W5300,W5500) 기반의 통합 BSD socket Library를 제공한다.
칩별로 차이가 있는 Hardware dependent code들을 Driver로 분리하여 각각 구현되었고, 이를 이용하여 BSD Socket API를 구현함으로써, Webserver, FTP와 같은 Application Protocol을 구현함에 있어 Hardware적 제약 조건으로부터 자유로워질 수 있으며, Application의 최소한의 수정으로 쉽게 원하는 WIZnet Chip들로 Porting이 가능하다.

ioLibrary 특징

  • DRIVER 분리
    • Basic IO function
      1. WIZCHIP_READ and WIZCHIP_WRITE
      2. 모든 Register & Memory Access를 WIZCHIP_READ & WIZCHIP_WRITE로 통일
      3. Hardware dependent I/F code는 Callback Function으로 분리
      4. Driver 수정없이 callback function 등록만으로 바로 사용
    • Extra Function
      1. Optional : Omissble for code optimization
      2. User-freindly name : 같은 기능 다른 이름의 Register 들을 통일
  • SOCKET API
    • Berkeley Socket API와 유사
    • 네트워크 응용 개발 경험자들은 쉽게 ioLibrary 활용 가능
    • 모든 함수의 상황별 Error Code 지원
    • Blocked or Non-Blocked function 지원
    • Datagram Data 처리의 유연성 : 한 Packet을 원하는 크기로 나누어 수신 가능
  • APPLICATIION PROTOCOL
    • 더욱 풍부해지는 Standard application protocol
    • WIZnet Chip별로 각각 제공되는 Application protocol을 Chip에 관계없이 재사용 가능
  • User Application
    • Easy to migration
    • Easy to upgrade
    • Easy to Maintainment
  • The smallest resouces usage for TCP/IP stack
  • The highest performance at the same board

ioLibrary Version 3.0 Directory 구조

  • [ioLibrary]
    • [Ethernet]
      • wizchip_conf.h & wizchip_conf.c
      • socket.h & socket.c
      • [W5100]
        • w5100.h & w5100.c
      • [W5200]
        • W5200.h & W5200.c
      • [W5300]
        • w5300.h & w5300.c
      • [W5500]
        • w5500.h & w5500.c
    • [Internet]
      • [DHCP]
        • DHCP.h & DHCP.c
      • [DNS]
        • dns.h & dns.c
      • [FTPClient]
        • ftpc.h & ftpc.c
        • stdio_private.h
      • [FTPServer]
        • ftpd.h & ftpd.c
        • stdio_private.h
      • [httpServer]
        • httpParser.h & httpParser.c
        • httpServer.h & httpServer.c
        • httpUtil.h & httpUtil.c
      • [SNMP]
        • snmp.h & snmap.c
        • snmap_custom.h & smtp_custom.c
      • [SNTP]
        • sntp.h & sntp.c
      • [TFTP]
        • tftp.h & tftp.c
      • [Others Will be Added]

Download

[Download on GitHub]

How to Porting into your application

  • TODO
  • How to Register your call-back functions

Refer to My post - W5500 ioLibrary_BSD를 MCU 8051에 포팅하기(1)~(8)

목차

  1. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(1)
  2. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(2)
  3. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(3)
  4. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(4)
  5. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(5)
  6. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(6)
  7. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(7)
  8. W5500 ioLibrary_BSD를 MCU 8051로 포팅하기(8)

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

The SNARC: Concept to Prototype to Product

by Lawrence Lemming Dixon

SNARCSimple NetworkAble RFID Controller의 약자로 Maker Lemming에 의해 만들어졌다.


SNARC은 RFID를 이용한 출입통제 시스템으로 출입통제에 대한 Data Logging 기능을 위해 WIZ820io를 사용한 것이 특징이다.
Lemming은 호주의 브리지번에 위치한 Hackerspace HSBNE에서 활동하는 Maker로
SNARC을 Tindie에서 기부모금(Fundraiser)을 위해 제작하였으며 개발 과정의 History와 Materials을 http://www.lemelec.com/snarc-pth 에 공유하였다.
Tidie에서 실제 SNARC 제품에 대한 모금페이지는 현재 찾아 볼 수 없어, Fund 모금에 성공했는지는 알 수 없다.


Lemming은 처음에는 Arduino Board와 EM4100 125KHz RFID tags를 이용하여 단순한 출입통제 시스템을 개발하였고, 이를 아래의 4가지 목적을 달성하기 위해 여러 번의 시행 착오를 거쳐 SNARC_PTH V1.3을 완성하게 되었다.

4 Goals for SNARC

  • Small
  • As self contained as possible
  • Cheap
  • Easy to implement

PCB : SNARC_PTH V1.3

Lemming은 누구나 싶게 만들 수 있도록 하기 위해 SMT part를 사용하지 않고 PTH Part만을 사용하여 DIY 제품을 만들어 4번째 Goal(Easy to implement)를 달성하였다.

Tip for WIZ820io

Lemming이 ATmega328-pu와 WIZ820io의 Reset을 같은 Signal로 처리하였으나, 둘 간의 Reset Time이 서로 맞지 않는 문제(WIZ820io Reset Time이 훨씬 길다 - 150ms 이상)를 해결하기 위해 ATmega328pu의 GPIO를 이용하여 WIZ820io의 Reset Signal을 제어하여 해결하였다.


Learn more

Lemming’s site : http://www.lemelec.com/snarc-pth
Source open : https://github.com/LemElec/SNARC_PTH_V1.3, https://github.com/LemElec/SNARC_Demo_Code

The related article : http://www.embedds.com/simple-networkable-rfid-controller/

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

ARM Cortex M3 Dev Board

by Nathan Zimmerman


Alt Text

Nathan Zimmermanl has been aiding in developing an Embedded 2 class of North Dakota State University(NDSU) . For the class he attempted to develop a flexible and cheap dev board that could host numerous advance applications such as Ethernet and USB.
He selected the WIZnet W5200 for cheaper & easiser Ethernet solution.


Dev Board Features:

  • LPC1768 ARM Cortex M3 MCU
  • W5200 SPI based Ethernet Controller
  • 160×128 Color LCD Display
  • FTDI FT232 VCP USB
  • 2nd USB port hooked directly to the LPC1768 for more advance USB applications
  • 6 LEDs, 4 push buttons, 1 potentiometer
  • NRF24L01 SPI Wireless Module
  • Can be powered via USB or wall-wart plugin
  • Micro is modular and thus can be easily replaced
  • Raw part costs for these boards at quantity x10 is roughly 70 usd.

The board is compatible with the following IDE’s / JTAG Programers:
LPC Xpresso Board & Code Red IDE (+ FreeRTOS)
Ulink2 Programer & Keil IDE


Learn More…
He made DIY Walking Desk using WIZnet Wifi solution WizFi210.


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자