From: "Jean Nicolle" Newsgroups: comp.arch.fpga Subject: How to listen to music through an FPGA pin? Lines: 8 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 67.125.89.32 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1061885277 ST000 67.125.89.32 (Tue, 26 Aug 2003 04:07:57 EDT) NNTP-Posting-Date: Tue, 26 Aug 2003 04:07:57 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: FKPO@MC@OPTOFQLXMZH\OP@@USXB@DTMNHWB_EYLJZ]BGIELYFWUQBKZQLYJX\_ITFD_KFVLUN[DOM_A_NSYNWPFWNS[XV\I]PZ@BQ[@CDQDPCL^FKCBIPC@KLGEZEFNMDYMKHRL_YYYGDSSODXYN@[\BK[LVTWI@AXGQCOA_SAH@TPD^\AL\RLGRFWEARBM Date: Tue, 26 Aug 2003 08:07:57 GMT Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!solnet.ch!solnet.ch!newsfeed.stueberl.de!in.100proofnews.com!in.100proofnews.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!a0e6b194!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32197 my manager said it couldn't be done. So just to prove him wrong :-) http://www.fpga4fun.com/PWM_DAC.html Well, pretty simple stuff anyway. Have fun. Jean ###### From: John Williams Newsgroups: comp.arch.fpga Subject: Re: How to listen to music through an FPGA pin? Date: Wed, 27 Aug 2003 09:07:25 +1000 Organization: ITEE, University of Queensland Lines: 17 Message-ID: References: Reply-To: jwilliams@itee.uq.edu.au NNTP-Posting-Host: g435-9029.itee.uq.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: bunyip.cc.uq.edu.au 1061938579 12168 130.102.66.250 (26 Aug 2003 22:56:19 GMT) X-Complaints-To: news@uq.edu.au NNTP-Posting-Date: 26 Aug 2003 22:56:19 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en In-Reply-To: Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!switch.ch!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!news-out.newsfeeds.com!propagator2-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!news.xtra.co.nz!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!bunyip.cc.uq.edu.au!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32236 Jean Nicolle wrote: > my manager said it couldn't be done. So just to prove him wrong :-) There is no better reason! :-) > http://www.fpga4fun.com/PWM_DAC.html > > Well, pretty simple stuff anyway. Nice work Jean, it's a great thing you're doing with that site. Ever considered putting VHDL and verilog side-by-side for your examples? Regards, John ###### From: Peter Wallace Newsgroups: comp.arch.fpga Subject: Re: How to listen to music through an FPGA pin? Date: Wed, 27 Aug 2003 07:29:30 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Peter Wallace" X-Complaints-To: abuse@supernews.com Lines: 20 Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32265 On Wed, 27 Aug 2003 08:12:56 -0700, Peter Wallace wrote: > On Tue, 26 Aug 2003 02:07:57 -0700, Jean Nicolle wrote: > >> my manager said it couldn't be done. So just to prove him wrong :-) >> http://www.fpga4fun.com/PWM_DAC.html >> >> Well, pretty simple stuff anyway. >> Have fun. >> Jean > > Actually I dont think that you have a PWM generator, but a phase > accumulator (The output will _toggle_ at a rate determined by your clock > and the input data) > Oops it will work, I see it now! I miseed that you were just adding the lower 8 bits to the result Peter Wallace ###### From: rickman Newsgroups: comp.arch.fpga Subject: Re: How to listen to music through an FPGA pin? Date: Wed, 27 Aug 2003 21:16:21 -0400 Organization: Arius, Inc Lines: 45 Message-ID: <3F4D57E5.8BDDD7A0@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: UmFuZG9tSVbkv0I5Za3V2vjvhwcZl+NiFvz3500AydB+MjHwbjFYriLGYGAnMQ/L X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 28 Aug 2003 01:17:09 GMT X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!switch.ch!news.imp.ch!news.imp.ch!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32275 Kolja Sulimma wrote: > > John Williams wrote in message news:... > > Jean Nicolle wrote: > > > my manager said it couldn't be done. So just to prove him wrong :-) > > > > There is no better reason! :-) > > > > > http://www.fpga4fun.com/PWM_DAC.html > > > > > > Well, pretty simple stuff anyway. > > > > Nice work Jean, it's a great thing you're doing with that site. > > I agree. > But for better audio quality with little extra effort have a look at this: > http://www.xilinx.com/apps/xappsumm.htm#xapp154 > > Kolja Sulimma I never wrote it up in any way, but I once used a PC timer chip which drives the internal speaker to reproduce signalling tones using PWM. I don't remember this being part of my job, I think I was just playing around with the idea and tested it at work since they had some sampled sound files. A manager was walking by and recognized the sound. When he found out that I did it without a sound card, he wanted me to add it to their signal software package. This was in the days when DOS was still around and not many PCs had much more than the internal beep-boop speaker. He never got it funded so I didn't add it to the product. But my little test program worked suprizingly well. -- Rick "rickman" Collins rick.collins@XYarius.com Ignore the reply address. To email me use the above address with the XY removed. Arius - A Signal Processing Solutions Company Specializing in DSP and FPGA design URL http://www.arius.com 4 King Ave 301-682-7772 Voice Frederick, MD 21701-3110 301-682-7666 FAX ###### Message-ID: <3F4D8155.A14C666F@andraka.com> From: Ray Andraka Organization: Andraka Consulting Group, Inc X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.arch.fpga Subject: Re: How to listen to music through an FPGA pin? References: <3F4D57E5.8BDDD7A0@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 71 Date: Thu, 28 Aug 2003 00:13:09 -0400 NNTP-Posting-Host: 68.15.41.165 X-Complaints-To: abuse@cox.net X-Trace: lakeread05 1062043493 68.15.41.165 (Thu, 28 Aug 2003 00:04:53 EDT) NNTP-Posting-Date: Thu, 28 Aug 2003 00:04:53 EDT Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!switch.ch!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!194.168.4.91.MISMATCH!newspeer1-gui.server.ntli.net!ntli.net!peer01.cox.net!cox.net!p01!lakeread05.POSTED!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32280 How about not just music out of an FPGA pin, but a complete shortwave receiver using just a SpartanII FPGA and an AtoD converter? See the block diagram on my website. I'll be demo'ing it in two weeks at the MAPLD conference, as well as discussing the design in the 6 hour tutorial seminar on DSP for FPGAs I will be doing on the Monday of the conference. The demo is on an Insight spartanII board containing an XC2S100. The only mods to the board are an RC filter between the FPGA pin and the speaker jack, the speaker jack and two blue jumpers to make the ADC demo board plug onto one connector. It actually works without a filter in front of the ADC demo board if the SNR is high enough (I was able to receive BBC from Rhode Island with the antenna connected directly to the ADC board). Adding a tunable antenna preamp makes it a usable for AM and SSB reception over DC to 20MHz. The ADC is external because it is sampling at 40MHz, 12 bits. The DAC for the speakers is a stereo sigma-delta DAC implemented in the FPGA. rickman wrote: > Kolja Sulimma wrote: > > > > John Williams wrote in message news:... > > > Jean Nicolle wrote: > > > > my manager said it couldn't be done. So just to prove him wrong :-) > > > > > > There is no better reason! :-) > > > > > > > http://www.fpga4fun.com/PWM_DAC.html > > > > > > > > Well, pretty simple stuff anyway. > > > > > > Nice work Jean, it's a great thing you're doing with that site. > > > > I agree. > > But for better audio quality with little extra effort have a look at this: > > http://www.xilinx.com/apps/xappsumm.htm#xapp154 > > > > Kolja Sulimma > > I never wrote it up in any way, but I once used a PC timer chip which > drives the internal speaker to reproduce signalling tones using PWM. I > don't remember this being part of my job, I think I was just playing > around with the idea and tested it at work since they had some sampled > sound files. A manager was walking by and recognized the sound. When > he found out that I did it without a sound card, he wanted me to add it > to their signal software package. This was in the days when DOS was > still around and not many PCs had much more than the internal beep-boop > speaker. > > He never got it funded so I didn't add it to the product. But my little > test program worked suprizingly well. > > -- > > Rick "rickman" Collins > > rick.collins@XYarius.com > Ignore the reply address. To email me use the above address with the XY > removed. > > Arius - A Signal Processing Solutions Company > Specializing in DSP and FPGA design URL http://www.arius.com > 4 King Ave 301-682-7772 Voice > Frederick, MD 21701-3110 301-682-7666 FAX -- --Ray Andraka, P.E. President, the Andraka Consulting Group, Inc. 401/884-7930 Fax 401/884-7950 email ray@andraka.com http://www.andraka.com "They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, 1759 ###### From: "Pete Fraser" Newsgroups: comp.arch.fpga Subject: Re: How to listen to music through an FPGA pin? Date: Thu, 28 Aug 2003 09:43:02 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3F4D57E5.8BDDD7A0@yahoo.com> <3F4D8155.A14C666F@andraka.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Complaints-To: abuse@supernews.com Lines: 11 Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!switch.ch!news.imp.ch!news.imp.ch!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!news.supernews.com!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32292 "Ray Andraka" wrote in message news:3F4D8155.A14C666F@andraka.com... > How about not just music out of an FPGA pin, but a complete shortwave receiver using just a SpartanII FPGA > and an AtoD converter? See the block diagram on my website. Sounds like fun. Are you going to post the HDL? ###### From: "Jean Nicolle" Newsgroups: comp.arch.fpga References: Subject: Re: How to listen to music through an FPGA pin? Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 63.201.59.222 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1062349834 ST000 63.201.59.222 (Sun, 31 Aug 2003 13:10:34 EDT) NNTP-Posting-Date: Sun, 31 Aug 2003 13:10:34 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: OX[OFYCDVZUKBP\YN[O@_WH@YR_B@EXLLBWLOOAFMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN Date: Sun, 31 Aug 2003 17:10:34 GMT Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!switch.ch!news.imp.ch!news.imp.ch!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!a0e6b194!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32382 yes, VHLD would be nice too. I'm still green in VHDL so I don't want to publish code that might be wrong or ugly. If someone translates anything, fell free to send in! Jean "John Williams" wrote in message news:bigoij$bs8$1@bunyip.cc.uq.edu.au... > Jean Nicolle wrote: > > my manager said it couldn't be done. So just to prove him wrong :-) > > There is no better reason! :-) > > > http://www.fpga4fun.com/PWM_DAC.html > > > > Well, pretty simple stuff anyway. > > Nice work Jean, it's a great thing you're doing with that site. > > Ever considered putting VHDL and verilog side-by-side for your examples? > > Regards, > > John > > ###### From: Bassman59a@yahoo.com (Andy Peters) Newsgroups: comp.arch.fpga Subject: Re: How to listen to music through an FPGA pin? Date: 31 Aug 2003 18:36:24 -0700 Organization: http://groups.google.com/ Lines: 13 Message-ID: <9a2c3a75.0308311736.297112ce@posting.google.com> References: NNTP-Posting-Host: 68.111.12.228 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1062380185 7908 127.0.0.1 (1 Sep 2003 01:36:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 Sep 2003 01:36:25 GMT Path: chonsp.franklin.ch!pfaff2.ethz.ch!pfaff.ethz.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:32391 "Jean Nicolle" wrote in message news:... > my manager said it couldn't be done. So just to prove him wrong :-) > http://www.fpga4fun.com/PWM_DAC.html It's pretty easy... I did a programmable pattern-generator board; one of the tests we cooked up was that it could play a .au file as PWM through any of its output bits. The outputs were on RS422 drivers. The test jig simply AC-coupled the outputs to a small car-stereo speaker. Not hi-fi, by any means, but it never fails to impress and amaze! --a