I'm trying to set up the sensor in by puting it in command mode. This is to enable reading humidity with alarms set up in this mode.
to start:
power on of the sensoris done first.
I2CWRITE PORTA.1, PORTC.1, $4E, $A0, [$00, $00] Noack ' starts command mode
The 4E is the address (27 plus a write bit=0) The A0 is the command to enter command mode. The 00s are required per Honeywell . Port A.1 is SDA, PortC.1 is the CPIN.
I delay 1 ms to allow the sensor power on reset time. The message always is NACKed after the first byte (the address) If I skip the command mode for test purposes and try to enter measurment mode, the same happens, NACK of the first byte.
Does anyone know of a resolution? I need your help.
Joe Rapoza (joerap)
Bookmarks