Hi, i guess i'll start off with what i'm trying to do:
I'm using a PIC18f4320 to take in analog values through AN0-AN3 and using those values to trigger sounds for a certain frequency and beep it 3 times for around 75ms each before stopping. These sounds will output from the PIC to two different speakers. Depending on values received from AN0-AN3, there are times when i want the PIC to output a tone through one speaker or the other speaker, and other times i would like it to output through both speakers.
now the problem:
i can't use freqout because it won't cause two different outputs at the same time, so there goes the simple answer. But i remember through a different processor (motorola 68HC12) that you could use output compare to create a tone of a for a certain amount of time. But i'm pretty new to PIC microprocessors and how to go about with BASIC programming.
I'm using a PIC18f4320 to take in analog values through AN0-AN3 and using those values to trigger sounds for a certain frequency and beep it 3 times for around 75ms each before stopping. These sounds will output from the PIC to two different speakers. Depending on values received from AN0-AN3, there are times when i want the PIC to output a tone through one speaker or the other speaker, and other times i would like it to output through both speakers.
now the problem:
i can't use freqout because it won't cause two different outputs at the same time, so there goes the simple answer. But i remember through a different processor (motorola 68HC12) that you could use output compare to create a tone of a for a certain amount of time. But i'm pretty new to PIC microprocessors and how to go about with BASIC programming.