Dr_Doggy
Well-Known Member
1 host, multiple slaves
I want to use the PICs ICSP bus for 2 wire(max) comm line after programming, so i will program chip, remove from pickit then put header on to master
Most code found is for when im using proper spi pins, but since i want to put it on b6&7 i can not use the program registers commonly used in the examples i am finding....
so first, what protocol should i use, maybe there is something better i didn't think of, rite now im thinking of 1-wire or i2c(more familar with i2c), any other suggestions,
also is there code, or psudo code somewhere on the web that i can rip(c++)?
EDIT: just after posting i found code for a master:
https://www.robot-electronics.co.uk/i2c-tutorial
but still need code for slave!?
I want to use the PICs ICSP bus for 2 wire(max) comm line after programming, so i will program chip, remove from pickit then put header on to master
Most code found is for when im using proper spi pins, but since i want to put it on b6&7 i can not use the program registers commonly used in the examples i am finding....
so first, what protocol should i use, maybe there is something better i didn't think of, rite now im thinking of 1-wire or i2c(more familar with i2c), any other suggestions,
also is there code, or psudo code somewhere on the web that i can rip(c++)?
EDIT: just after posting i found code for a master:
https://www.robot-electronics.co.uk/i2c-tutorial
but still need code for slave!?
Last edited: