??? 09/21/04 05:33 Read: times |
#77765 - DAC doesn't work well. |
I'm now trying to make a simple signal transmission system with two ADuC814. One side of ADuC814 picks analog sound signal input up to convert into digital output through TXD, and another part restores the digital signal coming through RXD back to as much nearly as original analog sound input.
Now the question. What I need to do is to make a real-time DA onversion. Input signal is an AD conversion result. I just would like to restore the digitally converted signal to the original. analog sound -> ADuC814(1) -> digital data -> ADuC814(2) -> analog sound My idea is here, but it doesn't work well. No DAC0 output possible with it. Please tell me some good ideas and how do I have to change the program? Or I'm really appreciated if you help me by giving some sample programs which is the best suit to my requirement. I already have finished AD conversion part and just I need to finish up now is DA conversion part with the same initialized condition to AD's one. ------------------------------------------- #include <stdio.h> #include <ADuC814.h> int i; void daout(int i) { DACCON |= 0x0D; DAC0H = i >> 8; DAC0L = i; } void main(void) { PLLCON = 0x00; SCON = 0x52; TMOD = 0x22; TH1 = 0xF7; TR1 = 1; PCON = 0x80; while(1) { daout(RXD); } } ------------------------------------------- Thank you very much for a kind help. |
Topic | Author | Date |
DAC doesn't work well. | 01/01/70 00:00 | |
RE: DAC doesn't work well. | 01/01/70 00:00 | |
RE: DAC doesnt work well. | 01/01/70 00:00 | |
RE: DAC doesn't work well. | 01/01/70 00:00 | |
RE: DAC doesn\'t work well. | 01/01/70 00:00 | |
Serial transmission + output filter | 01/01/70 00:00 | |
RE: DAC doesn\\\'t work well. | 01/01/70 00:00 | |
RE: DAC doesn\\\\\\\'t work well.![]() | 01/01/70 00:00 |