maciuka
Newbie level 4
Hello,
I need some assistance regarding an implementation of a SPI function on a PIC16F818 device i have.I'm finding it very confusing to figure out since each post or tutorial i read presents new C commands and i can't find out which can work with my controller.
What i want to do is connect it via SPI to a A/D converter ( no other pins are available besides these ones ).
Please help me find a basic,easy initialization procedure for a SPI communication protocol with the PIC as master for my device.
I need to have the following configuration :
- controller needs to be master
- clock frequency - whatever,can be adjusted
- clock output pin - RB4/SCL
- data input - RB1/SDA
All advice is welcomed.
Thanks in advance!
I need some assistance regarding an implementation of a SPI function on a PIC16F818 device i have.I'm finding it very confusing to figure out since each post or tutorial i read presents new C commands and i can't find out which can work with my controller.
What i want to do is connect it via SPI to a A/D converter ( no other pins are available besides these ones ).
Please help me find a basic,easy initialization procedure for a SPI communication protocol with the PIC as master for my device.
I need to have the following configuration :
- controller needs to be master
- clock frequency - whatever,can be adjusted
- clock output pin - RB4/SCL
- data input - RB1/SDA
All advice is welcomed.
Thanks in advance!