Hi,
How to send and receive 64 bit data using spi communication considering 8-bit pic16 controller.
Let say implementation of spi communication between 8 bit PIC16 working at 32 MHZ with another micro controller has to be done in C language using xc8.
pic16 will send command in 64-bit data format which will contain 4 arguments i.e., 16-bit fixedVal1, 16-bit fixedVal2, empty 16-bit val3, empty 16-bit val4.
Another controller will send the response in the form of the 64-bit data format which will contain again 4 arguments having same 16-bit fixedVal1,
same 16-bit fixedVal2, but newly filled 16-bit val3, and newly filled 16-bit val4.
Let me know how to store the received values val3 and val4 in the pic16 without loosing any data. How to use chip select, sck, sdo and sdi lines considering port and tris registers?
Please help.
Thanking you,
Sarvanan.
How to send and receive 64 bit data using spi communication considering 8-bit pic16 controller.
Let say implementation of spi communication between 8 bit PIC16 working at 32 MHZ with another micro controller has to be done in C language using xc8.
pic16 will send command in 64-bit data format which will contain 4 arguments i.e., 16-bit fixedVal1, 16-bit fixedVal2, empty 16-bit val3, empty 16-bit val4.
Another controller will send the response in the form of the 64-bit data format which will contain again 4 arguments having same 16-bit fixedVal1,
same 16-bit fixedVal2, but newly filled 16-bit val3, and newly filled 16-bit val4.
Let me know how to store the received values val3 and val4 in the pic16 without loosing any data. How to use chip select, sck, sdo and sdi lines considering port and tris registers?
Please help.
Thanking you,
Sarvanan.