Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] ATtiny2313 audio

2009-12-27 by wg0z@aol.com

you'll probably have to change your approach to the problem; use the PWM channel(s) to generate your waveforms. 




-----Original Message-----
From: Marc R.J. Brevoort <mrjb@dnd.utwente.nl>
To: AVR-Chat@yahoogroups.com
Sent: Sun, Dec 27, 2009 7:56 am
Subject: [AVR-Chat] ATtiny2313 audio


Hello all,
I've been programming the ATtiny2313 to generate
onophonic, square wave beeps (you could call it
music' with a bit of imagination). The code was
ased mostly around the delay function.
I'd like to try polyphonic audio now- still using
imple square waves. As the time needed per
alculation is now variable and/or the wave forms
ore complex, I can no longer count on the delay
unction. So instead, I wanted to make the code
nterrupt-driven.
However, I don't seem to manage to get even nearly
nough interrupts per second to generate audio.
 would need about 16000 interrupts per second.
he ATtiny2313 is running at 8 MHz. Is the 2313
imply too slow for the task? Surely if a lowly
86 could feed audio to a DAC, the ATtiny2313
hould be able to handle the load as well?
Best,
arc

------------------------------------
Yahoo! Groups Links
   Individual Email | Traditional
   http://docs.yahoo.com/info/terms/



[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.