I need to know a lot more about the mssp module on the PIC16f887, other than " sometimes it works, but a lot of the time it doesnt. " I crib the code directly from the microchip app notes and data sheets, but fail to understand why it finishes an operation with the data high and the clock low. Sample scope traces provided by microchip show this clearly, but fail to point out that this means I have to disconnect the pullups in order to have any battery left to wake up with. The datasheet, in its explanation of the workings of I2C, has moved to SPI within the paragraph, and continues in like manner, leaving me in total ignorance.
Now its obviously something stupid I,m doing, but what?
Other problems I get are:
after setting sspcon,sen action does not complete, sspcon,sen remains set indefinitely.
" " rcen, " " " " "
A page read from a serial eeprom often sticks in one of these loops several bytes into the read.
For some reason a page write runs beautifully.
Anyone any ideas why, or know of the whereabouts of further information, please reply.
Now its obviously something stupid I,m doing, but what?
Other problems I get are:
after setting sspcon,sen action does not complete, sspcon,sen remains set indefinitely.
" " rcen, " " " " "
A page read from a serial eeprom often sticks in one of these loops several bytes into the read.
For some reason a page write runs beautifully.
Anyone any ideas why, or know of the whereabouts of further information, please reply.