LONGssss


Closed Thread
Results 1 to 2 of 2

Thread: LONGssss

  1. #1
    Join Date
    Dec 2011
    Location
    Sofia, BG
    Posts
    18

    Default LONGssss

    Hello,
    I decide to test 2.50 long variables with sd card application. I wrote my own functions for write and read sectors. I don't use FS, but i do sequenced .bin file with predefined size ( i am reading MBR, FAT, ROOT DIR, etc ) and after writing there ( by sectors) i am cutting the "tail". So far is not essential.
    Now.
    I am using pure asm interrupts, high and low.
    I am using FSRx (POSTINCx) in low_int to fill my buffer.
    I am using a flag to wait (in loop) buffer_ready from low_int.
    I am using LONG variable in that loop to address the next sector :
    Sector_Address = Sector_Address + 1
    That line give mistakes sometime !!!!!!
    So i am cutting the "tail" till the head ( MBR ) sometimes, you know what that mean ....

    Can someone help me please!
    How these LONG variables work, they use FSR or what ?

    ps mcu is 26k20 with bootloader for 2620 .....
    Last edited by theFob; - 8th August 2013 at 14:06.

  2. #2
    Join Date
    Dec 2011
    Location
    Sofia, BG
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: LONGssss

    sorry, the problem is in my code. Had retfie instead bra restore in the middle of the interrupt, which is low, need restore ...
    If any is interested in 2 interleaved 512B FIFOs capturing port value, i will post that part.

    My favor soft till now is Circuit Maker, Picbasic and Proteus. I will buy Silver this week.
    Picbasic is great for small to middle projects. In some cases i write procedure in Picbasic and then translate it to assembler.
    Strange, eh? C is more close to mcu hardware, but there are drawbacks because of that too ...
    Regards

Members who have read this thread : 1

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