|
|
|
|
Page Modified on: 05/07/04 |
|
|
Write up for lab # 3 I created a VU display that displays the intensity of the music signal that is fed into it. The pic16h876 chip has a built in analog to digital converter. It also has a built in digital to analog converter. In theory we could play a sample sound in and convert it to digital streams then take the digital streams and convert it back to analog signal and it should be the same sound we sent in.
I only used the analog to digital converter part of the PIC:
There are three different types of audio meters common in analog audio: VU (Volume Units) which go to +3dB on the scale with anything over 0 dB showing in red; PPM (Peak Program Meter), which go to + 6 dB; and digital audio meters which behave like PPM but do not go above 0 dB. I created a VU meter -
*I know that port B 0 is supposed to be
used for the communication bus, but it was easier to use it instead of the
other outputs
To correct that I assumed the following: each bit corresponds to a frequency. If the bit is on and that is the highest bit on that must mean that all the bits underneath are on. Just think of a sine wave.
The ☺represents a single LED and each bar represents how many LEDs are on at that given time given the intensity of the music. In a VU meter all the LEDs have to be on up to the highest level LED one that corresponds to the highest amplitude.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Bibliography: Hugh Robjohns: METER RULES Frequently Asked Questions: Metering http://www.soundonsound.com/sos/jun00/articles/metring.htm
|