![]() My only debug capability involves using LEDs on my board, so I st uck one at a very early point in “main” (TRIS and digital output settings running prior), hoping to see it light up – but it doesn’t. But nothing is written to the SD card when I try it in my PC. I also get a flawless write to my board (using PICKIT2). The MPLAB SIM debug runs fluently too – not that I understand the steps too much - but it gets well into the program before it hits the need for an SPI buffer response and sticks. ![]() I have done this – I carefully went through Microchip’s software and changed the configuration and all the I/Os, with due attention to the RPs and also the CS and CD and the W E, to match my controller (which is internally pretty similar to the one in the demo) and I get a flawless compile on MPLAB IDE. My alternative has been to lift Microchip’s demo software “MDD File System SD Card” and adapt it to my controller (it is written for the 24FJ128GA010 on the Explorer 16 card, with the Pictail SD) - then to use one of three demo packages on there and get that working – then adapt the software to my application. Now I am trying to write to the SD in FAT16 protocol and, looking at the book, I have to go through 45 pages of firmware stuff I shall probably never use again, agonizingly boring and full of pitfalls! ![]() ![]() My aim is to make a datalogger (actually an ECG) where I can transfer the data to my PC using the SD card. SD CARD - WRITING IN FAT FORMAT I have made my own board with a 24FJ64GB002 connected to a micro SD card and I have followed the method used in “Learning to Fly the PIC24” and successfully got the controller to write to the SD card (Chapter 13).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |