ATMEL says the AT89C52 is not recommended for new
designs, and suggests the AT89S52 instead.
The AT89S52 doesn't look like it has both a SPI
port (I didn't see one at all) and a UART, so it doesn't
seem suitable.
Anyway what's wrong with the development kit I
mentioned before? It is all wired for you except for
adding in a few DAC chips.
There are plenty of microcontrollers out there that have
both SPI and UARTs (though you'd almost always need
to use a chip like the MAX232 to interface the UART pins
to a RS232 port).
Yes, using a microcontroller with both UART and SPI is
technically by far the cleanest most well performing and
most straightforward solution.
But, the problems with just using "any old Microcontroller"
are:
a) How are you going to program it? Does it need special
programming devices / cables / interfaces?
b) How are you going to write the software? Do they have
simple to use freely or inexpensively available software
for an assembler or C compiler or FORTH, BASIC, or
whatever?
c) How are you going to build it? If you're just wiring it
yourself with no printed circuit board, you'd need
something that's easy to use in a DIP package which
doesn't require too many connections to get it connected
for programming, interfacing, and general use. If you
use a surface mount package you'll need a PCB.
Where will you get the PCB? Will you design one? Can
you find a free template on the internet or in a book?
You'll also need relatively advanced soldering skills, unless
you get someone to assemble it for you.
d) How many of these units total are you definitely going
to build within the next few months? If you're only looking
for one or a few, it's probably not worth the time and
engineering effort to do something that will be really
time consuming and difficult unless you're really committed
to it as an educational process / hobby. Otherwise,
financially you'd be better off spending $75 or $200 or
whatever for a relatively off the shelf solution rather than
spending dozens of hours trying to build/program a
few of these.
e) How many DACs do you really need attached to ONE
PC? If you need somewhere between one and sixteen
you could easily just interface them all to a parallel port
without the complexity of using a microcontroller, though
the PC side of the software will be more complex, it's
probably worth it rather than trying to buy/build/program
microcontrollers that you're not familiar with.
This is assuming that you don't have any high performance
fast update / synchronization needs that'd make it hard,
though within reason one can get relatively simultaneous
updates pretty easily for several DACs.
f) Why are you doing this? Hobby? Business? School?
The 'right' answer to approach this probably depends on
why you're doing it as well as more detail about what you
need the thing for technically. You said 0-5V, but that
doesn't even get into things like output impedance,
output current capability, connectorization, initialization,
and other details that are sometimes relevant to choosing
an approach.
If you're looking for a uC with SPI *and* a UART, look
at some of the TI MSP430F2xxx series parts; there are
parts in (if I recall correctly) a 38 pin or larger surface
mount package that have multiple USART/SPI interfaces
so you can use one SPI and one UART mode simultaneously. The programming software is pretty much
free, and the programming hardware isn't that expensive,
but you'd really need a custom PC board.
If you just want to "get it done and over with", look at
something that's either an off the shelf RS232 or USB
DAC system, or a simple to use microcontroller board
with commercially available DAC modules like some of the
BASIC STAMP stuff or RABBIT's stuff or whatever.
If you want to do some programming and some hardware,
just get one of the uC development boards like the one
I mentioned that you can just solder your DACs onto
and program the thing.
Liad said:
Hey again!
thanks for all the comments...:)
and back to work...what about those three:
AT89C52
DAC0800
MAX232
can i manage to output my 0-5V with them?
and...how? how to connect them?
never-giving-up-Liad.