Hello!!
I am going to need three different analog output for my arduino nano.
I started my project with one and I had to my output a DAC MCP9xx1.
Non my question is, how I manege the SPI libriary for three different output?
I don't unserdand how it will devide the works between the three DAC.
How I hqve to configure the three SS?
For one I am using pin 10 of arduino, I am using ping 13 for the clock, and pin 11 for the MOSI communication.
the signal that currently is going Inside the DAC is a PWM
TCCR2A |= (1 << WGM20);
bitClear(TCCR2B, CS20); //set prescaler to 8
bitSet(TCCR2B, CS21);
bitClear(TCCR2B, CS22);
and the SPI clock divider is
dac.setSPIDivider(SPI_CLOCK_DIV128);
I am not using latch pin on ground.
the other two signal will be coming out from pin 5 and 6, so TIMER1, they will have different frequency.
So I have question in how to configure the Library SPI,
Do I need to use latch and what is its use?