SPI beginner
Hello,
I am quite new in PIC24F and also it will be my first use of SPI
I read DataSheet (PIC24FJ128GA010 since this the one i use), a generic Chapter on SPI and a generic SPI overview (.PPT on Microchip web site)
I still have questions on my specific interest (want to connect 2 PIC24FJ128GA010 via SPIs):
1) First PIC is in MASTER mode (and not in enhanced buffer mode) , on every write to SPIxBUF i understood i have to immediately read incomming data since they a sync to clock generated by the pic in master mode .... ok but if the second PIC in Slave mode doesn't send anything what will i read ? 0 values ????
2) Datasheets DS39699B says In Standard modes, the SPIxBUF register must not be written before SPIxTBF bit is
set. Is this true or is this an error ? i thougt .... not to be written while it is set or before it is cleared ?
3) I thought (according to Datasheet of PIC24FJ128GA010) that to identify if my device is concerned with Errata datasheet i had to check my version at the end of my programm memory ..... MPLAB and ICD2 show me FFFF FFFF ? Strange isn't it or did i do something wrong ?
4) on many examples i see that TRIS registers are used for signals. I did not notice that in case of PIC24FJ128GA010. So do i have to use TRIS or not ?
Thank'sw for help
post edited by BulleTracker - 2009/03/25 06:17:06