Counting led blinks..


Results 1 to 40 of 93

Threaded View

  1. #34
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Counting led blinks..

    Hi added the following code to SDcard routines as suggested..
    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
    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"
    This my SDCARD Connection:
    SCLK -> PortA.3
    MOSI -> PortA.5
    SD_CS -> PortC.2
    MISO -> PortC.1
    Name:  sdcard.jpg
Views: 1891
Size:  75.8 KB

    regards,
    tacbanon
    Last edited by tacbanon; - 24th October 2011 at 01:33.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts