I have to use RTC DS1307, SD card, and USB HID Communication with PIC. I want to know which is the best PIC/PIC18F for the project. DS1307 and SD Card both uses SPI. So I need two SPI interface to PIC.
I have to read the adc value that is temperature from LM35DZ and log the value with date and time from RTC to SD card.
I have to use RTC DS1307, SD card, and USB HID Communication with PIC. I want to know which is the best PIC/PIC18F for the project. DS1307 and SD Card both uses SPI. So I need two SPI interface to PIC.
You can certainly attach multiple SPI slave devices to the same interface, each device does require a separate CS/SS line by which the SPI master (PIC) selects the currently active SPI slave device.
Therefore, SPI master (PIC) does not normally require multiple SPI interfaces.
For data transfer with the DS1307, first the slave address must be sent. So, if you do not send the address of DS1307, you won't be transferring data with it. So, at that time, communicate with the SD card.