Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/01/05 21:22
Read: times


 
#86316 - re: digital audio with 89s52
Responding to: ???'s previous message
1: You are writing to the UART without first checking if it has finished if it was ready sending the previous byte.

2: You are reading from the UART without checking first if something has come in. In this particular case, that's less of a problem than the above mentioned point (you'll simply read the last received byte over and over and over...)

3: At 9600 baud, you will not have any significant audio frequency range. At 9600 baud, you will be able to transmit about 1000 bytes per second. The highest audio frequency you can transmit at that rate is half of that: 500 Hz. If you try to send higher frequencies, this will lead to what is called "aliasing", and much of what you are hearing is probably that.
To increase the audio bandwidth, increase the baud rate. For telephone quality you will need up to 3500 Hz, so about 70000 baud. Also, provide good filtering on the DA output, but more importantly in the AD input to filter out anything above the maximum frequency you can transmit at your given rate, or it will lead to aliasing again.
Finally, for good quality digital audio, timing is all important. Your sampling frequency at both in- and output should be exactly synchronized. If you leave your timing to whatever your program takes to execution each loop, do not expect too good results.

I STRONGLY suggest you first do some basic reading on digital audio and signal processing before you continue down this road. You may well find that much more is required than you suspect.


List of 11 messages in thread
TopicAuthorDate
digital audio with 89s52            01/01/70 00:00      
   coexist            01/01/70 00:00      
      reply to mr erik            01/01/70 00:00      
      make serial processing interrupt driven            01/01/70 00:00      
         thanks but i don't know C            01/01/70 00:00      
            Ring-buffer            01/01/70 00:00      
   re: digital audio with 89s52            01/01/70 00:00      
      Telephone Quality            01/01/70 00:00      
         thanks every body            01/01/70 00:00      
            Sampled data systems recommended reading            01/01/70 00:00      
               Dear Mr Hans Van Pelt            01/01/70 00:00      

Back to Subject List