Thread: ASCII Aray

  1. #1
    Registered User
    Join Date
    Aug 2015
    Posts
    9

    ASCII Aray

    Hi
    I want read 6 bytes of ASCII values ex "5AARUS" and then I want to send 6 bytes out again.
    I am using Psoc3 microcontroller.
    My suggestion would be to use an Array to stored data in but otherwise I am pretty blank on how to do it. Hi

    Best regards MacJ

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,509
    Do you know enough C to write a console program that reads input from stdin, stores that input in an array, and prints the array back out to stdout?

    If not, you should start there.

    Otherwise, you need to ask yourself a few questions...

    • What communication protocol will you be using?
    • What device or software will you be using to communicate with your micro?
    • Will bytes be echoed as they are received?
    • How will the micro know when to output the bytes it has read? Will it just print out after it receives a fixed number of bytes, or will it be looking for a specific byte (e.g. '\n' or '\r') to indicate it should print out the contents it has read?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 06-02-2012, 04:47 AM
  2. Replies: 3
    Last Post: 12-23-2009, 07:38 AM
  3. Defining aray constants
    By vyn in forum C Programming
    Replies: 1
    Last Post: 08-31-2009, 10:29 PM
  4. how to transform an aray of char in to a big number
    By transgalactic2 in forum C Programming
    Replies: 1
    Last Post: 01-03-2009, 06:41 AM