Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help choosing the right PIC

Status
Not open for further replies.
Joined
Jul 25, 2012
Messages
1,192
Helped
171
Reputation
342
Reaction score
162
Trophy points
1,343
Activity points
0
Hello!

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.

Should I use MCP23S17?
 
Last edited:

Without the estimated code size and the speed you require it is difficult to help you.

Any way you can start with pic18f2550
 
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.


BigDog
 

You can certainly make do without a port expander.

EDIT: DS1307 uses I2C and not SPI.

You can use 18F2550 if pin count is sufficient. If you require more pins/IO lines, you can use 18F4550.

To select the required PIC, use the Microchip Product Selector: **broken link removed**

Hope this helps.
Tahmid.
 
Last edited:

But the RTC DS1307 part in proteus doesn't have a CS/SS pin. How can I use it as a slave with SD Card reader?

- - - Updated - - -

@Tahmid

Can you post a Proteus schematic of PIC18F4550 with RTC DS1307 and SD Card reader?

Thanks
Jayanth D
 

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.
 

DS1307 uses I2C which is different from SPI.

DS1307 can be connected through any normal IO pin by bit bang..

So there is no interference.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top