Hello,
Recently I started using LPC1768 and I have a problem with AnalogOut. I tried to identify the issue but I couldn’t so decided to post here.
I’m sending an audio signal to PIN15 and probing at PIN18 but there is no audio signal.
Here is my code:
#include “mbed.h”
//mbed objects
AnalogIn Ain(p15);
AnalogOut Aout(p18);
//variables and data
float data;
//main program start here
int main() {
data = Ain - 0.5;
Aout = data + 0.5;
}
I also tried just “Aout = Ain” but there was no AnalogOut signal neither.
I see the input signal swinging at PIN15 after the bias circuit (below) so I believe something I’m doing wrong in coding.
Thanks for your advice in advance.