1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Electronics PIC RAM write or buffer??

Discussion in 'Modding' started by veryevil, 29 Mar 2008.

  1. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    Hi,

    Im looking to store a max of 256 bytes of data from a USART serial interface quickly in a PIC18F4550.

    Basically i need to receive a long string of ASCII from a serial console (max of 256 chars) and buffer it for processing later.

    It only needs to run at 9600 baud but i dont now where to store it until the full string is received as the on board eeprom takes about 4ms to write and a program write does 64bytes in about 8ms

    The data doesnt need to be retained for long and was wondering if there was anyway that i didnt know of for storing it in on board RAM.

    however i only know how to use variables for that as im pretty sure pointers cannot be used.

    Im doing this in Assembly

    Cheers Steven Richardson
     
  2. ch424

    ch424 Design Warrior

    Joined:
    26 May 2004
    Posts:
    3,112
    Likes Received:
    41
    Store it in RAM - you can do pointers in assembly code - look up FSR and INDF in the datasheet. I know that works for 16 series devices, so I'm sure there's an 18 series equivalent.
     
  3. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    Sweet! been looking for this for ages now!
     
  4. Macaba

    Macaba What's a Dremel?

    Joined:
    4 Mar 2006
    Posts:
    107
    Likes Received:
    1
    EDIT:
    What he said ^^
    (i didn't realise you were using 18F)
     

Share This Page