Wiznet WIZ-iRadio User Manual page 24

Receives and plays the data through internet protocols from a streaming server
Table of Contents

Advertisement

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
#define LCDDataAddress
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
EEP_MAC
EEP_LIP
EEP_SN
EEP_GW
EEP_CUR_CH
EEP_DHCP
EEP_VER
EEP_SIP
EEP_SPORT
EEP_STATUS
EEP_DNSIP
EEP_D_IP
© Copyright 2008 WIZnet Inc. All rights reserved
*((volatile u8 *) 0x66000000)
*((volatile u8 *) 0x66000001)
Byte
Description
6
MAC address
4
Local IP address
4
Subnet mask
5
Gateway
2
Current channel number
1
DHCP or static
2
F/W version
4
Server IP address
2
Server Port number
1
Status
4
DNS server IP address
128
URL of Server
WIZ-iRadio User's Manual
24

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wiz-iradio-evb

Table of Contents