After loading SSPBUF the second time, you need to wait for it to finish the transfer before taking CS high again.
After loading SSPBUF the second time, you need to wait for it to finish the transfer before taking CS high again.
DT
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
Hi Christopher;
Check this wiki article. It shows how to handle the MCP23S17. Maybe can help you if you adapt to your ic.
http://www.picbasic.co.uk/forum/cont...P-PBP-MSSP-ASM
Thanks and Regards;
Gadelhas
Bookmarks