I'm trying to control a MAX5820 DAC with a PIC18F4525. My problem is this doesn't work.
I've monitored SDA and SCL and it seems that the connection is ok, because MAX5820 sends the ACK bit (pulling SDA low while 9th SCL clock cycle).
Maybe something in my code is wrong. I'm very unsure about my set_DAC procedure. (And without writing something to the DAC I can't really test my get_DAC function. Maybe you can tell me whats wrong in my code.
This are my functions:
Code:
//using CCS-compiler with MPLAB
#define DAC 0x70
void set_DAC(char dac_a, char dac_b) { //set DAC A and DAC B of MAX5820
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum