I am trying to program my digital potentiometer ad5241 with flowcodeV4 but I can't get it to work. my SDA and SCL are each connected to 10K resistor.
This is my program.
MI2C_init
MI2C_start
MI2C_Transmit_Byte 0b01011110 (this is my adress byte for the AD 5241 the first 5 MSB byte are the adress the 2 next are AD1 and AD0 they must be 1 caus they are connected to VDD and the last bit is READ or WRITE so i made it 0 to write)
MI2C_Transmit_Byte 0b00000000 (instruction_Byte wich i do not use , i sellect RDAC1 to use register 1 for a single potentiometer.)
MI2C_Transmit_Byte 0b11111111 (this is the data byte ,it sets the resister value to full scale)
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