I’m currently using the MLX90614ESF-AAA Infrared temperature sensor.
I’ve modified the port numbers for my Orangutan SVP
PORTC = (1 << PORTC1) | (1 << PORTC0);
I connected my sensor to JP8
Pin7 (db0) => PC0 (SCL)
Pin8 (db1) => PC1 (SDA)
Pin1 => Vss (ground)
Pin2 => Vdd (+5v)
But the program stays stuck in an infinite loop in the function:
void i2c_start() {
TWCR = (1 << TWINT) | (1 << TWSTA) | (1 << TWEN); // send start condition
while (!(TWCR & (1 << TWINT))); //<-- stays stuck here!
}
Any Ideas why?
Thanks