Pages: [1]   Go Down
Author Topic: ATMEL AT89C51 - How to use?  (Read 826 times)
0 Members and 1 Guest are viewing this topic.
Mairkina City, Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Why don't you learn something today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have this $2 (or less, converted from PHP 100) analog TV box that I opened (because I love opening things and hate putting it back) which happened to have an ATMEL AT89C51 microcontroller. Beside the microcontroller there's this Serial EEPROM (atmel712 24c028). Annddd... can I use it?

Not necessarily use the arduino bootloader. How will I reprogram it? What extra tools will I need (hardware or software)? It also has a tuner that the microcontroller controls and that tuner can transmit and receive. And I guess I have something in mind to do with these. Where will I start?
Logged

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1089
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That MCU is an 8051, not an AVR.

I can tell you from experience, you can use this compiler:

http://en.wikipedia.org/wiki/MCU_8051_IDE

You will need a ROM programmer to upload the result binary to it.  It doesn't use an a debugger/emulator like AVRISP or AVR JTAGICE.

Have fun being an 8051 hobbiest.

A board I made out of a similar Atmel 8051 chip using the compiler above, programmed using a ChipMax programmer:




* AT89C2051-24PUBoard.jpg (263.51 KB, 1200x723 - viewed 770 times.)
« Last Edit: June 19, 2013, 02:16:32 am by JoeN » Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Mairkina City, Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Why don't you learn something today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

8051? Like AVR and PIC?

What's the difference between all those three? Can you give me a bird's eye view of the microcontroller (or processor) family? Don't worry I will google some. I just want to know which questions to ask though.

I hope I will have fun and not frustration. xD
Logged

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1089
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

8051? Like AVR and PIC?

What's the difference between all those three? Can you give me a bird's eye view of the microcontroller (or processor) family? Don't worry I will google some. I just want to know which questions to ask though.

I hope I will have fun and not frustration. xD

AVR (8 bit) - Made by Atmel.  Uses AVR instruction set.
PIC (8 bit) - Made by Microchip.  Uses PIC instruction set.
8051 (only 8 bit) - Made by everyone and their uncle.  Uses 8051 instruction set, originally by Intel who gave up selling these 15 years ago when they decided anything that didn't net them $50 wasn't worth their time.

So we are talking about three different and totally incompatible 8-bit architectures.  Like 6052, Z-80, and 6800.  But it doesn't matter so much if you have a C compiler to do the dirty work for you.
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1089
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some more information here:

http://forum.arduino.cc/index.php?topic=163313.0
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Mairkina City, Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Why don't you learn something today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

But they can talk to each other right? Like send these data bytes or/and tell the other (totally different) microprocessor to do this and that?
Logged

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1089
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But they can talk to each other right? Like send these data bytes or/and tell the other (totally different) microprocessor to do this and that?

There is always a way to interface digital ICs, even if they are running at different voltage levels.  But if they are all running at the same voltage, say +5V/0V, it's pretty simple.  Logic pin to logic pin connections are just a wire or a trace - no resistors or anything else needed unless you are trying to communicate in multi-megahertz speeds.  (you may need a pullup resistor if the output is open-drain, but this is not likely).  The only trouble you might have is making your software synchronize things well - that is to make sure the receiving MCU is ready when the transmitting one is transmitting.  This can be done with either interrupts or polling.  Interrupts are better, but the software gets a little bit more complex.
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Mairkina City, Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Why don't you learn something today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That's good to hear. As long as these different microprocessors can do the same job more or less. Thank you!
Logged

Pages: [1]   Go Up
Jump to: