Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/14/08 19:03
Read: times


 
#149443 - C suggestion
Responding to: ???'s previous message
I use the free SDCC compiler for 8051 projects. Doing anything for the first time is tough, but learning C is well worth while. I don't know how you load code in to your SBC, but I assume it's got an RS232 port. I would try writing a main() function that prints "Hello World" out of the serial port repeatedly:

void main(void)
{
    for(;;)
    {
        printf("\n\rHello World");
    }
}


Then all you need to do is write putchar and getchar functions, which the compiler will link to!

It's easier said than done, but you have to start somewhere.

Search 1700+ opamps with my opamp searcher

List of 15 messages in thread
TopicAuthorDate
How common is 2 Byte ASCII HEX?            01/01/70 00:00      
   That is an odd way of looking at is            01/01/70 00:00      
      Must not post when tired            01/01/70 00:00      
         Correct!            01/01/70 00:00      
   Very common indeed!            01/01/70 00:00      
      hex_digit_to_ascii            01/01/70 00:00      
         optimisation            01/01/70 00:00      
            you could, but            01/01/70 00:00      
   Widespread            01/01/70 00:00      
      ERR Thanks            01/01/70 00:00      
         C suggestion            01/01/70 00:00      
            and 10 times tougher ..            01/01/70 00:00      
            beware            01/01/70 00:00      
               C? sorry long post!            01/01/70 00:00      
                  'C' - not rocket science            01/01/70 00:00      

Back to Subject List