Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

String parser

I need some example for string parsing. Just some basics to move on. I get commands from a terminal on UART module so I want to parse this commands and its arguments.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What have you tried?

    I'd store all incoming characters into a DPRAM and then process them once you've received a carriage return - assuming that marks the end of your command.

    Cheers,

    Alex
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    What have you tried?

    I'd store all incoming characters into a DPRAM and then process them once you've received a carriage return - assuming that marks the end of your command.

    Cheers,

    Alex

    --- Quote End ---

    So I have to store all commands and compare with an incoming buffer?