USB FM RADIO 1. Introduction 2. System Overview

2y ago
20 Views
3 Downloads
1.48 MB
8 Pages
Last View : 16d ago
Last Download : 2m ago
Upload by : Noelle Grant
Transcription

AN264USB FM R ADIO1. IntroductionThis USB FM Radio design is intended as a reference for incorporating FM radio functionality into a USB product.The design consists of two major components, the Si4701 FM radio receiver and the C8051F321 microcontrollerwith a built-in universal serial bus (USB) peripheral. Due to the high level of system integration of both of thesecomponents, the total design is very small with fewer external components than many other solutions.The software, firmware, schematic, and layout source for this design are located in AN264SW.zip. The latestversion of these files as well as this document itself can be found at the following URL:http://www.silabs.com/usbradio2. System OverviewThe system consists of a Windows application that communicates with the C8051F321 using the USBconnection. The C8051F321 microcontroller controls the Si4701 using the serial peripheral interface (SPI). TheSi4701 audio outputs are sampled using the C8051F321’s analog-to-digital converter (ADC) and sent to the hostacross the USB interface. The Windows application plays the audio using the PC speakers or headphones.AntennaHost PCUSBUSBMicrocontrollerwith ADCSPIFM TunerAudio SignalConditioningFigure 1. System Block DiagramRev. 0.1 11/05Copyright 2005 by Silicon LaboratoriesAN264

AN2643. HardwareThe schematic and layout for the USB FM Radio design are located in "Appendix A—Schematics" on page 4 and"Appendix B—Layout" on page 6. The board consists of two layers with parts on one side only.ESD Protection—The design includes electrostatic discharge (ESD) protection on both the antenna and USBconnection using Littlefuse’s SP0503BAHT and California Micro’s CM1213, respectively.Analog Audio Filter—The Si4701 audio outputs are amplified and filtered before the C8051F321’s ADC samplesthem. The dual package op-amp, ON Semiconductor’s MC33202, is used to create a single-pole low-pass filterwith a corner at 23405 Hz and a gain of 3.Antenna Input—The antenna signal is conditioned using C1, C20, and L1 as recommended in “AN231: Si4700/01Headphone and Antenna Interface.”Reference Clock Generation—The 32.768 kHz reference clock for the Si4701 is generated using a watch crystal.The C8051F321 drives the crystal to oscillate and runs this signal through an asynchronous comparator creatingthe required reference clock.4. FirmwareThe firmware listings for the C8051F321 can be found in AN264SW.zip, under the “Firmware” directory. Theprovided firmware has been developed using the Keil C compiler, assembler, linker, and the Silicon LaboratoriesIDE.The overall organization of the firmware is straightforward. It begins by initializing all necessary device peripheralsand the Si4701 FM tuner. Once this is complete, the microcontroller operates in one of two modes, command oraudio. In command mode, the device can accept control commands from the USB host for operations such asseeking, tuning, or saving presets. In audio mode, the microcontroller sends ADC samples and a small amount ofstatus information up to the host. The MCU enters audio mode once the host has started polling for audio data, andexits when it receives any command from the host.USB Profile—This device presents four different interfaces to the host when it enumerates. Three of these areactive at any given time. The audio control interface is used by the host to control different parts of the audiofunctions. There is also a zero-bandwidth streaming interface and a full-bandwidth streaming interface. Only one ofthese interfaces is used at a time. Finally, there is a Human Interface Device (HID) interface used for all otherrequired device communication, such as controlling the Si4701 and upgrading the C8051F321 flash image.ADC Sampling—The 10-bit ADC on the C8051F321 is used to sample both the audio channels. The ADC samplerate is 192 kHz, and it switches between the right and left channel between successive conversions using the onchip ADC multiplexer. The audio sample rate for stereo samples is consequently 96 kHz, and each audio sample is4 bytes in size. These are sent to the host in signed two’s complement format.USB Transfer Type—The audio streaming interface uses isochronous USB transfers to send audio data to thehost. Since the audio sample rate is 96 kHz and each sample is 4 bytes in size, the device transfers 384 bytes permillisecond across the bus.Microcontroller Flash Upgrade—The firmware includes a command interpreter that is capable of upgrading thedevice’s flash image. This code is capable of parsing HID commands to read/write and check integrity of flashpages. However, it is not a true boot loader because it not functional without a valid external code image to handleUSB enumeration. This means that if the flash upgrade process fails, the device will be inoperable.2Rev. 0.1

AN2645. Windows SoftwareThe graphical user interface (GUI) software is located in AN264SW.zip, under the “GUI” directory. This softwarewas developed in C using Visual Studio 6.0.When the GUI is first launched, it begins by looking for a USB FM Radio device. Once a device is found, it isopened up as a USB Audio Device for audio streaming and as a HID device for FM Tuner control. In addition, thedefault WAV output device is opened to playback the audio stream.Audio Stream—The host application uses a circular buffer of 20 32 kB blocks to accept audio from the USB FMRadio device. Initially, 19 of the buffers are filled with audio data. Next, this data is sent to the WAV output device,and as streaming continues, pointers to the first free block and first playable block are incremented around thecircular buffer to provide a constant and seamless flow of audio.Audio will stream until a user action occurs such as tune, seek, or an alteration of radio settings. When this occurs,the audio stream will stop, and the commands for the requested action are sent down through the HID interface.Once the acknowledgement of the command comes back, the GUI is updated and stream playback will continue.Device Status—In addition to the audio streaming, the device is also polled for its current attributes such as thecurrent station, the received signal strength, and a stereo/mono indicator. As this information changes, it will alsochange on the display of the GUI.Device Removal—Audio streaming and polling will stop if the device is disconnected from the USB. In this case,all of the device handles are closed, and the host application will begin to poll for connected devices.USB Device Driver—Because Windows has built-in drivers for USB audio and HID class devices, the USB FMRadio does not require an OEM supplied driver disk for operation. The player executable is the only required usersoftware. A similar approach is possible for other operating systems, if they have built-in support for these two USBdevice classes.Rev. 0.13

AN264100 nHFigure 2. Schematic Page 1APPENDIX A—SCHEMATICS4Rev. 0.1

Figure 3. Schematic Page 2AN264Rev. 0.15

AN264APPENDIX B—LAYOUT6Rev. 0.1

AN264APPENDIX C—BILL OF MATERIALSQtyPartValuePackage1C1100 pF04022C2–368 pF04024C4, C7, C10, C171.0 µF04027C5–6, C8-9, C11, C13–140.1 µF04021C124.7 µF08052C15–1622000 pF04023C18–2022 pF04021D1Bi-Color LED06051D2CM1213-01STSOT231FB1Ferrite L100 nHCoilcraft2R1, R181 k 04022R2–310 04022R4, R1049.9 k 04022R5, R918.2 k 04023R6, R12, R1710 M 04022R7, R1330.1 k 04022R8, R11100 k 04021R160 06032R7, R1330.1 k 04021U1C8051F321QFN28Silicon Laboratories1U2Si4701QFN24Silicon 2DMR2OSMicro-8ON Semiconductor1Y132.7680 kHz CrystalSE3201Rev. 0.1ManufacturerCalifornia Micro Devices7

Simplicity StudioOne-click access to MCU andwireless tools, documentation,software, source code libraries &more. Available for Windows,Mac and Linux!IoT Portfoliowww.silabs.com/IoTSW/HWQualitySupport and ualitycommunity.silabs.comDisclaimerSilicon Labs intends to provide customers with the latest, accurate, and in-depth documentation of all peripherals and modules available for system and software implementers using orintending to use the Silicon Labs products. Characterization data, available modules and peripherals, memory sizes and memory addresses refer to each specific device, and "Typical"parameters provided can and do vary in different applications. Application examples described herein are for illustrative purposes only. Silicon Labs reserves the right to make changeswithout further notice and limitation to product information, specifications, and descriptions herein, and does not give warranties as to the accuracy or completeness of the includedinformation. Silicon Labs shall have no liability for the consequences of use of the information supplied herein. This document does not imply or express copyright licenses grantedhereunder to design or fabricate any integrated circuits. The products are not designed or authorized to be used within any Life Support System without the specific written consent ofSilicon Labs. A "Life Support System" is any product or system intended to support or sustain life and/or health, which, if it fails, can be reasonably expected to result in significant personalinjury or death. Silicon Labs products are not designed or authorized for military applications. Silicon Labs products shall under no circumstances be used in weapons of massdestruction including (but not limited to) nuclear, biological or chemical weapons, or missiles capable of delivering such weapons.Trademark InformationSilicon Laboratories Inc. , Silicon Laboratories , Silicon Labs , SiLabs and the Silicon Labs logo , Bluegiga , Bluegiga Logo , Clockbuilder , CMEMS , DSPLL , EFM , EFM32 ,EFR, Ember , Energy Micro, Energy Micro logo and combinations thereof, "the world’s most energy friendly microcontrollers", Ember , EZLink , EZRadio , EZRadioPRO ,Gecko , ISOmodem , Precision32 , ProSLIC , Simplicity Studio , SiPHY , Telegesis, the Telegesis Logo , USBXpress and others are trademarks or registered trademarks of SiliconLabs. ARM, CORTEX, Cortex-M3 and THUMB are trademarks or registered trademarks of ARM Holdings. Keil is a registered trademark of ARM Limited. All other products or brandnames mentioned herein are trademarks of their respective holders.Silicon Laboratories Inc.400 West Cesar ChavezAustin, TX 78701USAhttp://www.silabs.com

Feb 18, 2017 · This USB FM Radio design is intended as a reference for incorporating FM radio functionality into a USB product. The design consists of two major components, the Si4701 FM radio receiver and the C8051F321 microcontroller with a built-in universal serial bus (USB) peripheral. Due

Related Documents:

In-box 1m cable or Jabra 1.8m cable How to connect using Anker PowerLine/Newnex cable USB-A USB-C 3m USB-A to USB-C cable How to connect using Startech USB 3.0/USB 2.0 Startech USB Extender Power Adapter USB-A USB-A USB-C In-box

APC Back-UPS USB USB APC Back-UPS RS USB USB APC Back-UPS LS USB USB APC Back-UPS ES/CyberFort 350 USB APC Back-UPS BF500 USB APC BACK-UPS XS LCD USB APC Smart-UPS USB USB APC Back-UPS 940-0095A/C cables APC Back-UPS 940-0020B/C cables APC Back-UPS 940-0023A cable APC Back-UPS Office 940-0119A cable APC Ba

4. USB 2.0 connector Connect USB-compatible devices, such as a USB keyboard, USB mouse, USB storage device, or USB printer. 5. USB 3.2 connector Gen 1 Connect USB-compatible devices, such as a USB keyboard, USB mouse,

USB-COMi-TB . USB-COMi-TB USB to Industrial Single RS-422 / 485 Adapter Manual . The USB-COMi-TB USB-to-Industrial Single RS-422/485 Adapter is designed to make industrial communication port expansion quick and simple. Connecting to a USB port on your computer or USB hub, the USB-COMi-TB instantly adds an industrial communication port to your .

Bridgeport CNC TorqCut 22 USB-A001 Bridgeport Lathe - EZ-Path USB-A001 Bridgeport Mille - EZ Trax DX USB-A001 . HAAS Mini Mill USB-A001 HAAS SL20 Lathe 1999 USB-A001 HAAS VF2 Mill USB-A001 HAAS VF3 USB-A001 HAAS VF7 w/ Mitsumi D359T6 USB-D022 HACO ERM40200 USB-D001 Happy Embroidery Machine USB-D003

USB Keyboard console port The product USB keyboard port is compatible with Standard USB keyboards. Notes: a. USB keyboard and mouse ports are switchable, i.e. you can connect keyboard to mouse port and vice versa. However, for optimal operation it is recommended to connect USB keyboard to console USB keyboard port and USB mouse to console USB .

Custom USB – 6.39 Custom Shape PVC USB Aluminum Card USB - 6.75 Card USB made in aluminum Ultra-thin Code Card - 15.37 Card Style USB Flash Drive USB Stick– 5.91 Platinum USB 5.30 Glide USB USB Stick– 5.30 W

APC BACK-UPS XS LCD USB APC *Smart-UPS USB USB APC Back-UPS 940-0095A/C cables . APC Back-UPS RS 500 custom non-USB cable Atlantis Land A03-P826 Belkin Active Battery Backup BU30 series USB Belkin F6H375-USB USB ( 2005 models, vendor id: 050d) Belkin F6H375-USB USB (2007 models, vendor id: 0665) . Meta System ECO Network 1500 Meta System .