ELEKTOR Internet Radio Version 1 - Ethernut

1y ago
10 Views
2 Downloads
9.46 MB
20 Pages
Last View : 22d ago
Last Download : 3m ago
Upload by : Oscar Steel
Transcription

ELEKTOR Internet RadioVersion 1.0Hardware Manual

Manual Revision: 1.0Issue date: May 2008Copyright 2008 by egnite GmbH. All rights reserved.egnite makes no warranty for the use of its products and assumes no responsibility for anyerrors which may appear in this document nor does it make a commitment to update theinformation contained herein.egnite products are not intended for use in medical, life saving or life sustaining applications.egnite retains the right to make changes to these specifications at any time, without notice.All product names referenced herein are trademarks of their respective companies. Ethernut isa registered trademark of egnite GmbH.

ContentsAbout the EIR Board. 4Mounting THT Parts. 5I/O Ports. 6USB Device Port. 6JTAG Port. 6Ethernet Port. 6Serial Port. 6Expansion Port. 6Power Supply Input. 7LED Indicators. 7Integrated Circuits. 8Memory Map. 8Realtime Clock. 8System Clocks. 8Flash ROM. 9SDRAM. 9DataFlash. 9Power Supply. 9Jumper Configuration. 10Jumper Overview. 10Serial Port Jumper Configuration. 10Hardware Expansion. 12Expansion Port. 12Troubleshooting. 15Schematics. 16

ELEKTOR Internet Radio 1.0 Hardware ManualAbout the EIR BoardThe EIR 1.0 is a small (100 x 100 mm) board combining Atmel's AT91SAM7SE512 RISCmicrocontroller with VLSI's VS1053 audio decoder and Davicom's DM9000E Ethernetcontroller. The main features are: ARM7TDMI microcontroller with internal 512 kBytes high speed Flash 64 MBytes SDRAM and 4 MByte serial Flash Full duplex IEEE 802.3 compliant 10/100 Mbps Ethernet RS-232 serial port Audio decoder with MP3, AAC , WMA and Ogg Vorbis support Realtime clock with double layer capacitor backup MMC/SD-Card socket 16 programmable digital I/O lines and 4 analog inputs All CPU ports available at 2.54mm (0.5”) pin headers LED indicators for power supply and Ethernet activity Single power supply 5-24V DC Lead-free and RoHS compliantThe following board overview shows the main components.Port C connector64 Mbyte SDRAMMMC/SD-Card SocketARM7 CPU5V.24V SupplySwitching RegulatorRS-232Audio DecoderSerial Port SelectEthernet ControllerPort B ConnectorAudio InputEthernet ConnectorRTC BackupReset ButtonAudio OutputUSB DeviceRealtime ClockPort A Connector4Power LED4MBytes Serial FlashJTAG Interface

Mounting THT PartsMounting THT PartsEIR boards may be shipped with SMD parts populated, but THT partspacked separately for DIY soldering.1. Ethernet connector2. Power supply connectorIf the firmware had been preloaded, you should be able to receive andlisten to Internet radio stations.In order to be able to erase and the Flash memory and upload newfirmware, we need to mount1. Expansion port connector K3 (or at least pins 34 and 36)2. USB connectorIf things are not working as expected, it would be a good idea to makeuse of the serial port, where the following parts are needed.5. RS-232 jumper6. RS-232 connector (male)In order to use the JTAG interface, mount7. JTAG connectorFor RTC backup during power loss, mount8. Double layer capacitorFinally, if you intend to attach an add-on board, K3 should have beenfully populated. Additionally mount9. Expansion port connectors K1 and K25

ELEKTOR Internet Radio 1.0 Hardware ManualI/O PortsUSB Device PortThis is a full speed USB 2.0 device, available at a standard B type connector K4. Theinterface is ESD protected and you can safely connect or disconnect the plug without powerremoval.There is currently no USB software support available for the EIR. However, the USB port canbe used to communicate with the SAM-BA boot loader, which is located in the internal ROMmemory of the CPU. This way, new firmware can be uploaded to the EIR by using a simpleUSB cable between the EIR and a PC. Currently this method is only supported by PCs runningthe Windows operating system.JTAG PortThe JTAG port can be used for uploadingnew firmware as well as in-circuitdebugging and is available at the standard20-pin header K6.Note, that a JTAG programming adapter isrequired to use this port.WARNING: The JTAG connector is notprotected against overload. Make sure, thatthe power supply is switched off whenattaching or detaching the programmingadapter. Take proper precautions to avoidelectrostatic discharge (ESD).Ethernet PortAn on-board modular RJ-45 connector K10 with integrated magnetics and LEDs is providedfor the twisted pair Ethernet port. This interface is connected to a Davicom DM9000EEthernet controller. The galvanically isolated port supports the maximum cable length of 100meters between the EIR Board and an Ethernet HUB or switch. You can safely attach orremove the plug without power removal.Serial PortThe EIR provides an on-board male DB-9 connector K5 for RS-232 serial communication. IC2is used to convert the required RS-232 voltage levels from the 3.3V power supply. Theinterface is ESD protected. You can safely connect or disconnect them without powerremoval.Either the DBGU or the UART0 peripheral can be routed to the RS-232 port. This is controlledby jumper JP1. Available jumper configurations are explained on page 10.Card SocketThe board provides a push-pull MultiMedia Card socket (K7), which may be used for SDCards too.6

I/O PortsExpansion PortAdd-on boards can be added to the expansion port, which consists of the three 40-pinconnectors (K1, K2 and K3). Such add-on boards may contain simple I/O circuits driven bythe EIR, or may be equipped with their own processor, using the EIR as an Ethernet I/Oprocessor only. All pins of all three CPU ports Port A, Port B and Port C are available at K1,K2, and K3 resp. In addition, the signals NRST (hardware reset), ERASE (firmware erase),JTAGSEL (boundary scan enable) and SHDN (power off), as well as the upper four analoginputs and power supply lines are available at these connectors.For further informations about the expansion port refer to page 12.Power Supply InputA standard 2.1mm barrel connector with positive voltage at the center pin is used to supplypower to the EIR. Any DC source from 5V up to 24V with sufficient current rating can beused. The on-board switching regulator draws about 220mA at 5V, 90mA at 12V and lessthan 60mA at 24V.The input is protected against reverse polarity and voltage or current overload.LED IndicatorsThe EIR is equipped with three status LEDs.The red LED1 is directly connected to the power supply. It is lit when power is applied to theboard. A green and a yellow LED are integrated into the RJ45 connector K10. The yellow LEDindicates the network link status and is lit when the link status is OK. The green LEDindicates receive and transmit activity from and to the network.7

ELEKTOR Internet Radio 1.0 Hardware ManualIntegrated CircuitsFor detailed informations please view the data sheets.Memory MapThe following table shows the memory layout.Byte Address0x0000 0000 – 0x000F FFFF0x0010 0000 – 0x0017 FFFF0x0018 0000 – 0x001F FFFF0x0020 0000 – 0x0020 7FFF0x0020 0000 – 0x002F FFFF0x0030 0000 – 0x003F FFFF0x0040 0000 – 0x0FFF FFFF0x1000 0000 – 0x1FFF FFFF0x2000 0000 – 0x23FF FFFF0x2400 0000 – 0x2FFF FFFF0x3000 0000 – 0x3000 00FF0x3000 0100 – 0x4FFF FFFF0x5000 0000 – 0x5FFF FFFF0x6000 0000 – 0x6FFF FFFF0x7000 0000 – 0x7FFF FFFF0x8000 0000 – 0x8FFF FFFF0x9000 0000 – 0xEFFF FFFF0xF000 0000 – 0xFFFF FFFFNoteNoteNoteNote1:2:3:4:DescriptionBoot MemoryInternal Flash MemoryReservedInternal SRAMReservedInternal SAM-BA ROMReservedChip Select 0, available for customExternal SDRAMReservedEthernet Controller Registers (Note 2)ReservedChip Select 4, available for customChip Select 5, available for customChip Select 6, available for customChip Select 7, available for customUnassigned, access causes abortInternal Peripherals (Note 4)(Note 1)extensionsextensions (Note 3)extensionsextensionsextensionsCan be ROM, Flash or SRAM, depending on GPNVM2 and REMAP.See DM9000E data sheet.Remove R7 before using NCS4, see EIR schematics.See AT91SAM7SE512 data sheet.Audio CodecThe VS1053B (IC7) audio codec decodes a number of different formats, including OggVorbis, MP3, AAC and WMA. With a loadable software plug-in it can encode Ogg Vorbis. Thechip includes an integrated headphone amplifier.Realtime ClockA Philips PCF8563 (IC11) is connected to the on-board I2C bus. During power loss it issupplied by a double layer capacitor (C36), which keeps the clock/calendar running up to afew days.8

Integrated CircuitsSystem ClocksThe microcontroller clocks are generated by an internal PLL, driven by an external 18.432MHz crystal (X1). The audio decoder uses a 12.288 MHz crystal (X2) to support all commonsample rates. The Ethernet controller is driven by a separate 25MHz crystal (X3) and anadditional 32.768kHz crystal (X4) drives realtime clock hardware.Flash ROMThe AT91SAM7SE512 provides 512 kBytes of on-chip, non-volatile flash memory, which canbe (re-)programmed by in-system programming.SDRAMThe EIR board is populated with a 64 MByte SDRAM chip (IC4).DataFlashAn AT45DB321 4 MByte serial Flash (IC5) can used for configuration data storage.Power SupplyIn general the chips on the EIR board run at 3.3V, which is created by a switching regulator(IC12) from a wide input voltage range (5 – 24V). The CPU core and the audio decoder coreneed 1.8V. The CPU provides its own on-chip voltage regulator. An additional linear regulator(IC13) is used to generate a clean 1.8V supply, exclusively used for the audio decoder.As soon as power is attached to the board, the red LED1 will light up.9

ELEKTOR Internet Radio 1.0 Hardware ManualJumper ConfigurationJumper OverviewThe EIR has one jumper block (JP1) to switch the serial port output between DBGU andUART0.Three additional jumpers may be placed on specific pins of the Port C connector (K3).The picture below shows the default jumper configuration of the EIR.K3 38-40: ShutdownJP1: UART selectionK3 34-36: FirmwareeraseK3 33-35: JTAGboundary scanSerial Port Jumper ConfigurationEIR provides an on-board male DB-9 connector for RS-232 serial communication. Either theDBGU or the UART0 device may be attached to this interface.JP1 Shortening pins 1-3 and pins 2-4 will route DBGU transmit andreceive lines to the DB-9 connector.10

Jumper ConfigurationJP1 When pins 3-5 and pins 4-6 are connected, then the UART0device is available at the DB-9 connector.K3 Pressing the reset button while pins 34-36 are connected willerase the firmware and enable the SAM-BA bootloader.K3 Connect pins 38-40 to switch off the board's power supply.K3 Connect pins 33-35 to enable JTAG boundary scan. This isused for in-circuit hardware testing, which requires specialequipment.11

ELEKTOR Internet Radio 1.0 Hardware ManualHardware ExpansionMany applications will do just fine with nothing else than the EIR. Or external hardware maybe connected to the RS-232 or RS-485 port. However, if more is required, the EIR expansionport is the first choice to add custom designed hardware.Expansion PortAdd-on boards can be added to the expansion port. These boards may contain simple I/Ocircuits driven by the EIR board, or may be equipped with their own processor, using the EIRboard as an Ethernet I/O processor only.The expansion port contains CPU data and address bus, memory read/write signals, digital I/Oports, reset signal and power supply. Nearly all microcontroller pins are available at the ex pansion port connector, providing an interface with lots of features like PWM, I2C (2-wire),SPI (3-wire) or counter input and output lines, to name just a few. It is strictly recommendedto consult the AT91SAM7SE512 data sheet before attaching hardware to the expansion port.Although available at the connector, some signals are used internally by EIR and can’t beused by external hardware. Carefully check the schematic.The following three tables list the expansion port connector's pin assignments.Table 1. Expansion connector 012PA1FreeFreePA234PA3TWI SDATWI SCLPA456PA5UART0 RxD via JP1UART0 TxD via JP1PA678PA7UART0 RTSUART0 CTSPA8910PA9DBUG RxD via JP1DBUG TxD via JP1PA101112PA11Data Flash Chip SelectSPI MISOPA121314PA13SPI MOSISPI SPCKPA141516PA15MMC Chip SelectMMC ClockPA161718PA17MMC CommandMMC DAT0PA181920PA19MMC DAT1 via R7MMC DAT2 via R8PA202122PA21FreeFreePA222324PA23SDRAM DQMHSDRAM A10PA242526PA25SDRAM CKESDRAM Chip SelectPA262728PA27SDRAM WESDRAM CASPA282930PA29SDRAM RASIRQ1, MP3 InterruptPA303132PA31MP3 Command SelectAD Wandler ReferenzVref33343,3 VPowerAnalogue input (free)AD43536AD5Analogue input (free)Analogue input (free)AD63738AD7Analogue input (free)GroundGND3940GNDGround

Hardware ExpansionTable 2. Expansion connector K2DescriptionSignalPinPinSignalDescriptionSDRAM DQMLPB012PB1FreeAddress Bus A2PB234PB3Address Bus A3Address Bus A4PB456PB5Address Bus A5Address Bus A6PB678PB7Address Bus A7Address Bus A8PB8910PB9Address Bus A9Address Bus A10PB101112PB11Address Bus A11FreePB121314PB13Address Bus A13Address Bus A14PB141516PB15FreeSDRAM BA0PB161718PB17SDRAM BA1FreePB181920PB19FIQ, RTC InterruptIRQ0, Ethernet InterruptPB202122PB21FreeDataFlash Chip SelectPB222324PB23USB ePB282930PB29FreeMP3 Data SelectPB303132PB31MP3 Hardware ResetPower3,3 V33343,3 VPower35363738NRSTHardware Reset3940GNDGroundNot usedNot usedGroundGNDNot usedTable 3. Expansion connector K3DescriptionSignalPinPinSignalDescriptionData bus D0PC012PC1Data bus D1Data bus D2PC234PC3Data bus D3Data bus D4PC456PC5Data bus D5Data bus D6PC678PC7Data bus D7Data bus D8PC8910PC9Data bus D9Data bus D10PC101112PC11Data bus D11Data bus D12PC121314PC13Data bus D13Data bus D14PC141516PC15Data bus D15Bus WAIT, Open CollectorPC161718PC17Ethernet Hardware ResetMMC Card DetectPC181920PC19MMC Write ProtectFreePC202122PC21Address/ Data bus NWEAddress/ Dada bus NRDPC22PC23Ethernet Chip Select2324Not used2526Not usedNot used2728Not usedNot used2930Not usedNot used3132Not usedPower3,3 V33343,3 VPowerBoundary Scan EnableJTAGSEL3536EraseFirmware EraseUnregulated 5–24 V via R106VIN3738SHDNPower ShutdownGroundGND3940GNDGround13

ELEKTOR Internet Radio 1.0 Hardware ManualTroubleshootingThe red LED does not go on when applyingpower.The fuse may be blown. Remove any kind ofattached hardware and remove all jumpers.Make sure the board is placed on a non con ductive surface like a piece of paper.Replace the fuse (Littelfuse part #0453 001)and supply the board via the barrelconnector K12 with no more than 12V DC.Best use a lab power supply with currentcontrol and carefully increase the voltagestarting from 3V. The board should not drawmore than 250 milliamps at 5V, going downto 60 milliamps at 24V .The yellow LED at K10 will not light up afterstarting the Webradio or similar networkenabled software.The yellow LED will go on only if EIR isconnected to an Ethernet network and theEIR software properly initialized the LANcontroller hardware on the EIR. Replace theEthernet cable and try the same connectionwith your PC to make sure that the networklink is working.The board seems to work unreliable.I’m not able to program the microcontroller.This problem is typically caused by a wrongpower supply. Make sure to use one with5-24V DC. The EIR will not work with ACsupply.EIR doesn’t respond to pings. The green LEDdoes not go on.Configuring TCP/IP looks generally simpleafter one has understood the principle, butmay still become confusing under some cir cumstances. For example, changing EIR’sMAC address can disable a link, which hadbeen running fine before the change. Thishappens, because the PC remembers theMAC/IP relations for some minutes.Check your configuration again. Make sure,that EIR and the PC are located in the samenetwork, sharing the same IP mask andnetwork IP address. If you don’t know whatall this means, check the Web, there aresome excellent TCP/IP tutorials.EIR works fine after pressing reset, but notafter switching on the power supply.The LAN controller’s power on reset requiresa minimum supply raise time, while somepower supplies do have an intentionally slowrise.14

SchematicsSchematicsFull schematics are provided on the next 4 pages.15

ELEKTOR Internet Radio 1.0 Hardware Manual16

Schematics17

ELEKTOR Internet Radio 1.0 Hardware Manual18

Schematics19

egnite GmbHErinstr. 944575 Castrop-RauxelGermanyPhone 49 (0)23 05-44 12 56Fax 49 (0)23 05-44 14 87Email nut.de

ELEKTOR Internet Radio 1.0 Hardware Manual Hardware Expansion Many applications will do just fine with nothing else than the EIR. Or external hardware may be connected to the RS-232 or RS-485 port. However, if more is required, the EIR expansion port is the first choice to add custom designed hardware. Expansion Port

Related Documents:

ATM18 ist ein gemeinsames Projekt von Elektor und dem Computer:club2 (www.cczwei.de) in Zusammenarbeit mit Udo Jürß, dem Chefentwickler von www.microdrones.de. Elektor un-terstützt dieses Projekt durch Artikel in der Zeitschrift, bestückte Platinen im Elektor-Shop und Zusatzinformationen, Software-Downloads und das Forum auf www.elektor.de.

4/2008 - elektor 17 Elektor Internet Radio (EIR) Listening to radio programmes with the latest ICs 16 bits and a sampling rate of 44.1 kHz, using a data transmission rate as low as 192 kbit/s (or even less) instead of the normal rate of around 1.4 Mbit/s. This means that a buffer with a capa-city of approximately 10 seconds can

Elektor is published 11 times a year with a double issue for July & August. Elektor is also published in French, Spanish, American English, German and Dutch. Together with franchised editions the magazine is on circulation in more than 50 countries. International Editor: Wisse Hettinga (w.hettinga@elektor.nl)

RFID reader on the Elektor Electronics website. Get started The double-sided printed circuit board for the Elektor Electronics RFID reader is shown in Figure 5. It is only possi-ble to reflow solder the reader IC, and so we are making the board available 28 elektor electronics - 9/2006 HANDS-

8.3.4 Elektor RFID Reader Library: MIFARE Ultralight. 263 8. copyright Elektor. copyright Elektor. 2 2 2 .

Elektor Magazine: our monthly haymaker – in print and online Elektor Magazine is published both in print and online in English, Dutch, German and French, with a jumbo issue in the winter and summer. Spanish and Portuguese only digital. Elektor Magazine is

r elektor eletrónica . A IMW dMf* Guia de Compras Santa Itinenia . Montagem cio vocoder Elektor Termômetro eletrônico linear Medida de tensão e corrente em de processamento paralelo alimentaçao . A grande novidade desta e das próximas edições é o Guia de Compras Sta. Ifigênia. Ele veio atender uma velha reivindicação

Conditional Random Fields: An Introduction Hanna M. Wallach February 24, 2004 1 Labeling Sequential Data The task of assigning label sequences to a set of observation sequences arises in many fields, including bioinformatics, computational linguistics and speech recognition [6, 9, 12]. For example, consider the natural language processing