WIZ-iRadio User’s Manual
© Copyright 2008 WIZnet Inc. All rights reserved
24
1) Initialize device
When power is supplied, all devices are initialized.
GPIO is configured and clock is set. In regard to external memory interface, CS1 is
connected to W5100, CS2 is to SRAM and CS3 is to LCD. According to this interface, set the
‘wait’ and ‘bus’ size.
Timer 0 is used for DHCP request during lease time, and Timer 1 is for operation of IR
Remote Controller.
VS1033 chip used for decoding of MP3 and WMA is connected to MCU by SPI. The
interrupt should be set.
EEPROM is used for saving MAC address or IP address. As EEPORM is connected to MCU by
I2C, I2C should be set.
LCD is connected to the memory BUS. Only RESET of LCD can be controlled by port. As RS
of LCD is connected to A0, LCD can be controlled by define as below. When writing
command, the RS becomes low, and writing data, the RS becomes High.
#define LCDCmdAddress
*((volatile u8 *) 0x66000000)
#define LCDDataAddress
*((volatile u8 *) 0x66000001)
2) Read channel information from Flash
The address of Internet radio broadcasting station is saved in the Flash of MCU
(0x400C0000). After reading this, it is saved in channel buffer.
3) Read configuration data from EEPROM
The sequence of information saved in EEPROM is as below.
NAME
Byte
Description
EEP_MAC
6
MAC address
EEP_LIP
4
Local IP address
EEP_SN
4
Subnet mask
EEP_GW
5
Gateway
EEP_CUR_CH
2
Current channel number
EEP_DHCP
1
DHCP or static
EEP_VER
2
F/W version
EEP_SIP
4
Server IP address
EEP_SPORT
2
Server Port number
EEP_STATUS
1
Status
EEP_DNSIP
4
DNS server IP address
EEP_D_IP
128
URL of Server