Jun 22, 2011 #1 B brew Member level 3 Joined Mar 4, 2011 Messages 59 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,288 Activity points 1,693 how will i configure the pins of PORTB to enable SPI? is it just as simple as setting TRISB to input/output? the screenshot of the PORTB bits is attached here thanks. -regards, brew.
how will i configure the pins of PORTB to enable SPI? is it just as simple as setting TRISB to input/output? the screenshot of the PORTB bits is attached here thanks. -regards, brew.
Jun 22, 2011 #2 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,393 Location villingen (Germany) / Bangalore Activity points 30,086 check this https://ww1.microchip.com/downloads/en/devicedoc/spi.pdf it has sample code at the end....
check this https://ww1.microchip.com/downloads/en/devicedoc/spi.pdf it has sample code at the end....
Jun 23, 2011 #3 B brew Member level 3 Joined Mar 4, 2011 Messages 59 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,288 Activity points 1,693 ckshivaram said: check this https://ww1.microchip.com/downloads/en/devicedoc/spi.pdf it has sample code at the end.... Click to expand... i actually came across this document, i just didn't understand it.
ckshivaram said: check this https://ww1.microchip.com/downloads/en/devicedoc/spi.pdf it has sample code at the end.... Click to expand... i actually came across this document, i just didn't understand it.