Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | beginner and 8051

There are 22 messages in this thread.

You are currently looking at messages 0 to 10.

beginner and 8051 - 09:55 31-05-06

Hi All,
I'm a beginner and I'd like to start from 8051 . as I can see-the only
cheap boards with jtag are from silabs, right? there are a few of them
for about 70$ , which one should I buy?
will I be able easily move my code to other 8051 mcu like ats89s?

thanks.




Re: beginner and 8051 - Tim Wescott - 10:56 31-05-06

n...@yahoo.com wrote:
> Hi All,
> I'm a beginner and I'd like to start from 8051 . as I can see-the only
> cheap boards with jtag are from silabs, right? there are a few of them
> for about 70$ , which one should I buy?
> will I be able easily move my code to other 8051 mcu like ats89s?
> 
> thanks.
> 
Should you write your application in assembly language you will find 
that you have to rewrite every line to port to another processor.

Should you choose a higher level language like C and are careful to 
write portable code then yes.  I highly recommend Harbison and Steel's 
"C: A Reference Manual" for pointers on portable code.  Unfortunately, 
well-structured portable C code is a terrible fit for the 8051 
instruction set.  Your code will be bigger and slower than it would be 
if you fit your C code to match the processor -- but if you fit your C 
code to the 8051 then it'll be nasty stuff, and not terribly portable.

If you can afford the extra memory and slow operation that comes with 
good C on an 8051 it's the way to go, however.

-- 

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Posting from Google?  See http://cfaj.freeshell.org/google/

"Applied Control Theory for Embedded Systems" came out in April.
See details at http://www.wescottdesign.com/actfes/actfes.html

Re: beginner and 8051 - noemail12000@yahoo.com - 11:28 31-05-06

Tim Wescott wrote:
> Should you write your application in assembly language you will find
> that you have to rewrite every line to port to another processor.

 I'm going to study assembler.
I thought that's what " having same 8051 core" is all about. so, do
they all have different assembler instructions? and even if I create
small app which uses only 1 I/O port and timer - I'll not be able to
move it to another mcu without a lot of changes?

thanks.




Tim Wescott wrote:
> n...@yahoo.com wrote:
> > Hi All,
> > I'm a beginner and I'd like to start from 8051 . as I can see-the only
> > cheap boards with jtag are from silabs, right? there are a few of them
> > for about 70$ , which one should I buy?
> > will I be able easily move my code to other 8051 mcu like ats89s?
> >
> > thanks.
> >
> Should you write your application in assembly language you will find
> that you have to rewrite every line to port to another processor.
>
> Should you choose a higher level language like C and are careful to
> write portable code then yes.  I highly recommend Harbison and Steel's
> "C: A Reference Manual" for pointers on portable code.  Unfortunately,
> well-structured portable C code is a terrible fit for the 8051
> instruction set.  Your code will be bigger and slower than it would be
> if you fit your C code to match the processor -- but if you fit your C
> code to the 8051 then it'll be nasty stuff, and not terribly portable.
>
> If you can afford the extra memory and slow operation that comes with
> good C on an 8051 it's the way to go, however.
>
> --
>
> Tim Wescott
> Wescott Design Services
> http://www.wescottdesign.com
>
> Posting from Google?  See http://cfaj.freeshell.org/google/
>
> "Applied Control Theory for Embedded Systems" came out in April.
> See details at http://www.wescottdesign.com/actfes/actfes.html


Re: beginner and 8051 - Rich Webb - 11:56 31-05-06

On 31 May 2006 08:28:44 -0700, "n...@yahoo.com"
<n...@yahoo.com> wrote:

>Tim Wescott wrote:
>> Should you write your application in assembly language you will find
>> that you have to rewrite every line to port to another processor.
>
> I'm going to study assembler.
>I thought that's what " having same 8051 core" is all about. so, do
>they all have different assembler instructions? and even if I create
>small app which uses only 1 I/O port and timer - I'll not be able to
>move it to another mcu without a lot of changes?

If you stick to the architectural features that are part of the common
set then yes, your code should be portable. Recommend that you download
a few of the device manuals from the major vendors to see what is the
same and what is different among them.

-- 
Rich Webb   Norfolk, VA

Re: beginner and 8051 - mmm - 12:00 31-05-06

n...@yahoo.com wrote:
> Hi All,
> I'm a beginner and I'd like to start from 8051 . as I can see-the only
> cheap boards with jtag are from silabs, right? there are a few of them
> for about 70$ , which one should I buy?
> will I be able easily move my code to other 8051 mcu like ats89s?
> 
> thanks.
> 

an alternative is start with an at89s52 or similar atmel parts is 
available a almost-0 component programmer ( trough the PC parallel port 
) so you can start with a home built proptotype board.

there are lot of hardware/software project on 8051 available on the net.

with an at98s5x an old static ram an a 74hc373 o 74hc573 a 74hc00 and a 
max232 you can build a system that is able to receive code trough the 
serial port write in the ram and execute from there.

BTW the controller must be preprogrammed with one of the monitor 
available on the net

Re: beginner and 8051 - Chris Hills - 12:10 31-05-06

In article <A...@web-ster.com>, Tim Wescott
<t...@seemywebsite.com> writes
>n...@yahoo.com wrote:
>> Hi All,
>> I'm a beginner and I'd like to start from 8051 . as I can see-the only
>> cheap boards with jtag are from silabs, right? there are a few of them
>> for about 70$ , which one should I buy?
>> will I be able easily move my code to other 8051 mcu like ats89s?
>> 
>> thanks.
>> 
>Should you write your application in assembly language you will find 
>that you have to rewrite every line to port to another processor.
>
>Should you choose a higher level language like C 
yes.

>and are careful to 
>write portable code then 

No. Portable code is rarely needed.

>yes.  I highly recommend Harbison and Steel's 
>"C: A Reference Manual" for pointers on portable code.

Good book.

>  Unfortunately, 
>well-structured portable C code is a terrible fit for the 8051 
>instruction set. 

Yes to the portable bit. You can write very structured C that is 8051
specific.

> Your code will be bigger and slower than it would be 
>if you fit your C code to match the processor -- but if you fit your C 
>code to the 8051 then it'll be nasty stuff, 

It will be good 8051 C very fast and efficient. 

>and not terribly portable.

usually irrelevant.

>If you can afford the extra memory and slow operation that comes with 
>good C on an 8051 it's the way to go, however.

It will increase the unit cost of your product for no appreciable gain.
If I found someone writing portable code in that situation I would
probably fire them.




-- 
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
/\/\/ c...@phaedsys.org      www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




Re: beginner and 8051 - Chris Hills - 12:13 31-05-06

In article <1...@h76g2000cwa.googlegroups.com>,
n...@yahoo.com <n...@yahoo.com> writes
>Tim Wescott wrote:
>> Should you write your application in assembly language you will find
>> that you have to rewrite every line to port to another processor.
>
> I'm going to study assembler.

OK. 

>I thought that's what " having same 8051 core" is all about. 

not exactly. 

>so, do
>they all have different assembler instructions? 

No. Some have additional instructions for extended memory and some odd
peripherals but 95% are the same.

>and even if I create
>small app which uses only 1 I/O port and timer - I'll not be able to
>move it to another mcu without a lot of changes?

Most 8051 code is completely portable. The basic ports and peripherals
are the same on al of them as are the first 5 interrupts. 
-- 
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
/\/\/ c...@phaedsys.org      www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




Re: beginner and 8051 - noemail12000@yahoo.com - 12:25 31-05-06

actually, I was thinking about at89s. the only reason I asked about
silab is their development board with jtag for about 70$.
but, how usefull jtag is? can I get the same result with software
simulator?


mmm wrote:
> n...@yahoo.com wrote:
> > Hi All,
> > I'm a beginner and I'd like to start from 8051 . as I can see-the only
> > cheap boards with jtag are from silabs, right? there are a few of them
> > for about 70$ , which one should I buy?
> > will I be able easily move my code to other 8051 mcu like ats89s?
> >
> > thanks.
> >
>
> an alternative is start with an at89s52 or similar atmel parts is
> available a almost-0 component programmer ( trough the PC parallel port
> ) so you can start with a home built proptotype board.
>
> there are lot of hardware/software project on 8051 available on the net.
>
> with an at98s5x an old static ram an a 74hc373 o 74hc573 a 74hc00 and a
> max232 you can build a system that is able to receive code trough the
> serial port write in the ram and execute from there.
>
> BTW the controller must be preprogrammed with one of the monitor
> available on the net


Re: beginner and 8051 - noemail12000@yahoo.com - 12:34 31-05-06

Chris Hills wrote:
> In article <1...@h76g2000cwa.googlegroups.com>,
> n...@yahoo.com <n...@yahoo.com> writes
> >Tim Wescott wrote:
> >> Should you write your application in assembly language you will find
> >> that you have to rewrite every line to port to another processor.
> >
> > I'm going to study assembler.
>
> OK.
>
> >I thought that's what " having same 8051 core" is all about.
>
> not exactly.
>
> >so, do
> >they all have different assembler instructions?
>
> No. Some have additional instructions for extended memory and some odd
> peripherals but 95% are the same.
>
> >and even if I create
> >small app which uses only 1 I/O port and timer - I'll not be able to
> >move it to another mcu without a lot of changes?
>
> Most 8051 code is completely portable. The basic ports and peripherals
> are the same on al of them as are the first 5 interrupts.

OK. that's what I thought.


> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> \/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
> /\/\/ c...@phaedsys.org      www.phaedsys.org \/\/\
> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


Re: beginner and 8051 - Chris Hills - 13:07 31-05-06

In article <1...@y43g2000cwc.googlegroups.com>,
n...@yahoo.com <n...@yahoo.com> writes
>actually, I was thinking about at89s. the only reason I asked about
>silab is their development board with jtag for about 70$.
>but, how usefull jtag is? can I get the same result with software
>simulator?

There are various simple serial programers you can make for the Atmel
51's

>
>
>mmm wrote:
>> n...@yahoo.com wrote:
>> > Hi All,
>> > I'm a beginner and I'd like to start from 8051 . as I can see-the only
>> > cheap boards with jtag are from silabs, right? there are a few of them
>> > for about 70$ , which one should I buy?
>> > will I be able easily move my code to other 8051 mcu like ats89s?
>> >
>> > thanks.
>> >
>>
>> an alternative is start with an at89s52 or similar atmel parts is
>> available a almost-0 component programmer ( trough the PC parallel port
>> ) so you can start with a home built proptotype board.
>>
>> there are lot of hardware/software project on 8051 available on the net.
>>
>> with an at98s5x an old static ram an a 74hc373 o 74hc573 a 74hc00 and a
>> max232 you can build a system that is able to receive code trough the
>> serial port write in the ram and execute from there.
>>
>> BTW the controller must be preprogrammed with one of the monitor
>> available on the net
>

-- 
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
/\/\/ c...@phaedsys.org      www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




| 1 | 2 | 3 | next