No dice. I think that command was wrong and this one *looks* correct after doing some more reading.Maybe one of the IC's on the PICkit board is bad. I wouldn't expect, although I don't know for sure, the MOSI and MISO pins to both go high or low at the same time if you only have power on one of those pins.Code:MCP_WRITE: low CS SSPBUF=64 GOSUB CLOCK_BIT SSPBUF=MCP_ADDRESS GOSUB CLOCK_BIT SSPBUF = MCP_DATA GOSUB CLOCK_BIT high CS return
Bookmarks