Society of Robots - Robot Forum

Software => Software => Topic started by: benji on October 05, 2007, 03:43:21 PM

Title: 8051 c
Post by: benji on October 05, 2007, 03:43:21 PM
anybody knows a website or a pdf that teaches how to program the 8051 microcontroller family with C ?
Title: Re: 8051 c
Post by: paulstreats on October 05, 2007, 04:21:23 PM
here is a web page that has a free c compiler, and also some code examples, they should give you a starting point

http://www.pjrc.com/tech/8051/ (http://www.pjrc.com/tech/8051/)
Title: Re: 8051 c
Post by: benji on October 06, 2007, 02:04:17 PM
i checked the page but there are some codes in assembly not c
,  ???
Title: Re: 8051 c
Post by: creedcradle on October 06, 2007, 04:21:20 PM
if iam correct paulstreats likes you to use this

SDCC C Compiler and AS31 Assembler and GNU Make Win32 Binaries

which is right on that page
  ;)
Title: Re: 8051 c
Post by: benji on October 07, 2007, 05:56:49 AM
true i did notice these programs but im askin for example codes in C
or a tutorial that teaches C for the 8051 family
Title: Re: 8051 c
Post by: paulstreats on October 07, 2007, 11:38:51 AM
here is another link for c in 8051 starting with "hello world" type tutorial
http://www.spjsystems.com/c31exmpl.htm (http://www.spjsystems.com/c31exmpl.htm)
Title: Re: 8051 c
Post by: benji on October 07, 2007, 03:50:34 PM
yea that link is hot