Okay I missed this line of code in the main loop "GOTO SD_WRITE".
The modified mainloop..But this time even the rtc output is not displaying in the communication terminal and freezed on the lcd as well...I'm lost with the sdcard code part.Code:mainloop: Gosub READ_RTC ' Read the time from the RTC ' Display time on LCD Lcdout $fe, 128,"Date:", CRON_D[1],CRON_D[2],CRON_D[3],CRON_D[4],CRON_D[5],CRON_D[6],CRON_D[7],CRON_D[8] Lcdout $fe, $c0, "Time:", CRON[1], CRON[2],CRON[3],CRON[4],CRON[5],CRON[6],CRON[7],CRON[8] Pause 500 GOSUB USB_DISPLAY IF (SD_WE = 0) AND (SD_CD = 0) THEN GOTO SD_WRITE ELSE PWM LED,25,250 USBOUT 3, TEXT_NO_CARD, 10, mainloop PAUSE 500 ENDIF Goto mainloop
tacbanon




Bookmarks