Hi everyone,
I have the PICDEM Lab development kit of Microchip tools and I would like to control a peripheral (at first another MCU PIC16F88) through the SPI port of the PIC16F690.
I see that there aren't any functions at either xc8 or Hitech compiler to support the SPI module for this microcontroller but I found some people who have worked around building their own protocols that I want to try to adapt to my system.
As I am just starting with programming a MCU I have two basic questions:
1) I am using the Pickit3 to power, debug and download my code to the microcontroller.
Could I just program first the slave microcontroller then disconnect the Pickit from the slave and connect it to the master, program the master and make the connection for the data transfer? Also, can I just power my slave from the Vdd of the master that is provided by the Pickit3 or this will mess with the voltages on the two units causing troubles?
2) Can I use the simulator of MPlab to test that my code works for transfer and then download it to each device separately?
I appreciate anyone who will try to help me understand a little more on this.
Leo
I have the PICDEM Lab development kit of Microchip tools and I would like to control a peripheral (at first another MCU PIC16F88) through the SPI port of the PIC16F690.
I see that there aren't any functions at either xc8 or Hitech compiler to support the SPI module for this microcontroller but I found some people who have worked around building their own protocols that I want to try to adapt to my system.
As I am just starting with programming a MCU I have two basic questions:
1) I am using the Pickit3 to power, debug and download my code to the microcontroller.
Could I just program first the slave microcontroller then disconnect the Pickit from the slave and connect it to the master, program the master and make the connection for the data transfer? Also, can I just power my slave from the Vdd of the master that is provided by the Pickit3 or this will mess with the voltages on the two units causing troubles?
2) Can I use the simulator of MPlab to test that my code works for transfer and then download it to each device separately?
I appreciate anyone who will try to help me understand a little more on this.
Leo
Last edited: