This is a multi-part message in MIME format. ------=_NextPart_000_0142_01C4589A.A637D020 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit My first foray into I2C on the F452 is turning into something of a test of patience. Bit-banging on older PICs worked out OK. I've not used its MMSP before, but I thought I'd done enough reading beforehand to get it going. Set up code shown below. I just can't get a low ACK from the slave on the 9th clock and the whole thing stalls What piece of the jigsaw am I missing ? I've tried a heap of arrangements but the analyser grab always looks depressingly the same ;-((( PCB traces are ~ 50mm (SDA signal on pin 5, SCL pin 6), 5V, 2k2 pullups on each, 0.1uF ceramic across 5V/0V pins, no noise detected on Vcc TIA mov b'11011000',trisc ;SDA, SCL as i/p ; Read address A3 ; Write address A2 mov b'00101000',sspcon1 ; 1 SSPEN ; 1000 master mov b'10000000',sspstat ; 1 slew rate off mov 0x61,sspadd ;I2C baud rate, 100kHz bsf portb,3 ;analyser trigger nop bcf portb,3 bsf startb ;send start bit btfsc sspcon2,sen bra $-2 mov 0xa2,sspbuf ;slave address btfsc sspstat,r_w bra $-2 bsf portb,3 btfsc sspcon2,ackstat ;wait for ACK bra $-2 bcf portb,3 ;never happens ============================================== Research is what I'm doing when I don't know what I'm doing - Wernher von Braun -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. ------=_NextPart_000_0142_01C4589A.A637D020 Content-Type: image/gif; name="i2c_byte.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="i2c_byte.gif" R0lGODlhnQFlAIAAAAAAAP///ywAAAAAnQFlAAAC/oSPqcvtD6OctNqLs968+w8uwUiW5omm6sq2 7gvH8kzX9o3n+s73/g8MCofEovGITCqXzKbzCY1Kp9Sq9YrNarfcrvcLDovH5LIZPJGFEMD14Zxz G9pyeBGgbut/eLut7wPYI8hD6BeYx7eHeEhjqPMYt9jICBOJc3mT+Uc5s1nz6TjZuRNaYppYOUga g9o6Wsq6+qpYqyq74moJC4kbS3v7G+x7ovti7ILcokx8mjo7LNmswpzLKz0N+lx4jZmdU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YsXV4B7vce4ZZFP5fjlyRFeecKBY/45TJz73fnZmpPolGGjR1Z6 OZmb2BW/s4bZ+jd/vy7kHJKvbnntvv/1e/C48C588UgQ30ph9ilfz+TGw418X5vgfvrzcUef2O5P vREK9tbn5v15srfE1arOf692+AKZuuth3aN//cUejv+q+vDPZr9/XuGeev73w+Y/EbGveSC5C/P+ Z7YACkEmdWugAx8IwQhK8ALAQ6AFL4jBDGpwgxzsoAc/CMIQinCEYisAAAA7 ------=_NextPart_000_0142_01C4589A.A637D020--