Newbie level 6
I am new to PIC and ask that does anyone knows the steps of SPI configuration
If possible gives some source code examples!
Full Member level 4
I configured a PIC16F873A for SPI interface with a MAX6952 after looking at the SPI EEPROM application note from Microchip. The routine provided needs a little modification for the number of bytes you want to send and clock speed.
I'm at work so I don't have my code available.
Member level 2
Full Member level 6
Well, how the SPI is configured depends on what its communicating with? Clock phase, frequency? And you can even change the idle state of the data line. Looking at examples won't really help, it'll get the SPI working, but might not be the cofiguration you need for your application. I say this over and over again, read the datasheet! all the info you need is in there. Microchip even provide a step by step guide to setting up peripherals:
the datasheet: http://ww1.microchip.com/downloads/e...Doc/39582b.pdf
Seriously, it5 isn't difficult to work out, thats why manufacturers provide datasheets, otherwise all enigineers would require 'training courses' to use these chips.