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.
If you use PIC or AVR then I can help you. 89S52 diesn't have hardware SPI. You have to write software SPI routines. Instead can you use PIC or AVR. I can give you FAT16 or FAT32 code for PIC or AVR.
Sorry, AT89S52 has hardware SPI. You have to write SPI initialization code for your chip.
I use mikroC PRO 8051 Compiler. For you 8252 chip there is hardware SPI library in mikroC. I will see if Fatfs can be implemented for your chip.
If you use PIC then I will write a FAT32 code but using mikroC FAT32 library for reading and writing files and for opening directories. You have to use PIC18F46K22. Is this ok for you. There will be sno code for the FAT32 library as it is a pre compiled library but it will work in hardware. You can't test FAT32 in Proteus.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.