DSPRelated.com
Forums

Re: Uart--->Flash---->Uart guys need guidence

Started by Mike Rosing June 1, 2005
On Wed, 1 Jun 2005 ajax_narayan@ajax... wrote:

>
> Simple words
>
> SIMPLE WAY SEND AN STRING TO UART ,TAKE THAT STRING COMPARE IT WITH ALL
>OTHERS VERIOUS STRINGS ,WHICH ALLREADY DEFINED ,COMPARE THAT INPUT STRING
>,SEE with WHICH IT matches .

Seems to me you already have the problem solved. Now that you have a flow
chart, just turn it into code. You can start with pseudo code, then turn
that into C or JAVA (or FORTRAN or Algol, it doesn't really matter) and
then turn that into assembler. Each level adds a few more details, but
it doesn't change the flow. And it's the flow that does the job you want.

Patience, persistence, truth,
Dr. mike


>I wanted to use uart for pooking the data from perticular address
>from the flash and send it back to uart.

I've done this a few times in the past. I wrote:

*A serial comms routine (ISR) that handles the UART and collects received
characters into a buffer
*A command interpreter that processes the buffer and splits the received
string up into commands and arguments, and calls the appropriate command
*A string-to-number conversion routine, so the program can make sense of the
arguments: eg if you type "get 20000000" it will convert the string
"20000000" into the value 0x20000000 in a register somewhere.
*A command that looks up the flash memory at an address determined by the
argument (that 0x20000000 I mentioned above) and sends it out the UART byte
by byte. Usually converting to a hex string instead of sending it raw.

Oh sorry, you wanted a "SIMPLE WAY" :-P Well this is the simplest way I can
think of doing it that will really work well. The libraries in your
development environment may already contain most of the functions you need.
If you're using C then you might have printf and scanf functions you can
hook up to the UART somehow.

Steve Conner