5 Visitor Messages

  1. View Conversation
    Third group:
    Read_SD:
    Sector_Number = 0
    Repeat
    SD_Sector Sector_Number,1 Buff = 1
    Repeat
    Dat_val = SD_Read
    HSerOut [" ",DEC3, Dat_val,13]
    If Buff // 32 = 0 Then HSerOut [13]
    Inc Buff
    Until Buff>512
    HSerOut [Rep "-"\95,13]
    DelayMS 200
    Inc Sector_Number
    Until Sector_Number = 1
    HSerOut ["TEST COMPLETE",13]
    Stop
  2. View Conversation
    Second groups:
    Untitled Include "augusttestsd1_Lib.pbp"
    Main_Prog:
    TRISA = %00000001
    ADCON0 = %00000001
    ADCON1 = %00001110
    ADCON2 = %00110101
    TRISB = %00000000
    TRISC = %10010000
    Output SD_CS : Output SD_DI : Output SD_CLK : Input SD_DO
    High SD_CS
    SSPCON1 = %00000001
    HSerOut ["Initialising SD",13]
    Repeat
    Response = SD_Init
    HSerOut ["RES= ",DEC1,Response]
    If Response = 1 Then HSerOut [" Insert card",13]
    Until Response = 0
    HSerOut [" response OK",13]
    SSPCON1 = %00000000
    Write_SD:
    CHAN0val =0
    Sector_Number = 0
    Repeat
    SD_Sector Sector_Number,0
    Buff = 1
    HSerOut [" WRITING SECTOR ", DEC2 Sector_Number,13]
    Repeat
    ADGoDone=1
    While ADGoDone=1 :Wend
    CHAN0val = ConvRes
    SD_Write CHAN0val
    HSerOut ["Heart beat = ",DEC3,CHAN0val,13]
    DelayMS 10 'should be 100
    Inc Buff
    Until Buff=512
    Inc Sector_Number
    Until Sector_Number =1
  3. View Conversation
    Untitled Untitled Untitled Untitled Please help, writing variable volts 0-2.5 v to mmc, reading them back using PC terminal , during writing prints fine, reading back, values are different.Not sure if writes to mmc.
    Please have a look. Sending to you in two groups.
    Thanks.
    Device 18f2580
    XTAL = 8
    Declare ADIN_STIME 50
    ALL_DIGITAL = TRUE
    HSERIAL_BAUD = 9600
    HSERIAL_RCSTA = %10010000
    HSERIAL_TXSTA = %00100000
    Dim Response As Byte
    Dim Dat_val As Byte
    Dim Sector_Number As DWord
    Dim Buff As Word
    Dim data_array1 [256] As Byte conversions
    Dim data_array2 [256] As Byte
    Dim CHAN0val As Byte
    Dim ConvRes As ADRESH.Word 'Use ADRESH left justified
    Symbol SD_CS = PORTC.2
    Symbol SD_DI = PORTC.5
    Symbol SD_DO = PORTC.4
    Symbol SD_CLK = PORTC.3
    Symbol LED = PORTB.0
    Symbol ADGoDone = ADCON0.1



  4. View Conversation
    Fine, will leave as is Steve
    John
  5. View Conversation
    Steven
    In the WIKI I have been checking spelling and grammar. In the article SD_File_Systems in the Wiki is this line:

    file and disk management commands, including SD_Delete_File, SD_Free_Space, SD_Disk_Size, SD_Dir and SD_Psuedo_Format.

    The word "pseudo" is misspelled. I wasn't game to fix it on the Wiki as this may be how you spelled it in the command.

    Should it be SD_Pseudo_Format or as you have it.
    Cheers
    John
Showing Visitor Messages 1 to 5 of 5
About swright

Basic Information


About swright
Location:
Cumbria, UK

Statistics


Total Posts
Total Posts
418
Posts Per Day
0.15
Visitor Messages
Total Messages
5
Most Recent Message
17th August 2010 14:40
General Information
Last Activity
6th December 2011 20:55
Join Date
24th October 2004
Helpful Postings

1 Friend

  1. wastrix wastrix is offline

    Super Moderator

    wastrix
Showing Friends 1 to 1 of 1