That's for sure. SHIFTIN act as master, not slave. you'll need to roll your own.
Possible to use the MSSP module as well. Have a look to SPISlave.bas
http://www.melabs.com/resources/samp...p/spislave.bas
You could still implement a simple serial communication with DEBUG/SEROUT2/HSEROUT... just an idea.
PS:
Code:
@Config = _XT_OSC & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _BODEN_OFF
Define PIC16F877A
You don't need to define the PIC, and you config line is incorrect. it should be
Code:
@ __CONFIG _XT_OSC & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _BODEN_OFF
further reference : http://www.picbasic.co.uk/forum/showthread.php?t=543
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks