Hi added the following code to SDcard routines as suggested..My observation, when powered Rtc displays infos in the lcd after a couple second it goes to the BLINK routine and toggled the LED1 and displays "Blink". But after 6 seconds the lcd goes blank. BTW from the start of the program I can not connect to communication port its says "Serial port not available"Code:'SD CARD ROUTINES SD_WRITE: CIU = 1 SDINIT: ' FSInit initializes the card and reads all the preliminary information from it GOSUB FSInit IF (FAT_error != 0) THEN BLINK ' Display card directory GOSUB FINDfirst ' Find first file on card WHILE (FAT_error = 0) GOSUB FINDnext ' Find next file on card WEND BLINK: Toggle LED1 Lcdout $fe, 1 Lcdout $fe, 128,"I Blink" return
This my SDCARD Connection:
SCLK -> PortA.3
MOSI -> PortA.5
SD_CS -> PortC.2
MISO -> PortC.1
regards,
tacbanon




Bookmarks