How to program 8051 using Arduino! | AT89S51, AT89S52, and P89V51RD2

  Рет қаралды 56,968

NematicsLab

NematicsLab

Күн бұрын

Check out JLCPCB,
$2 PCB Prototype (5pcs,10*10cm) with any color solder mask: jlcpcb.com
More project information(Code,Schematic,etc):- www.instructab...
Website,
NematicsLab.com
Patreon,
/ nematicslab
For Sponsorships or Endorsements ONLY!
Business@Nematicslab.com
For project-related questions use Facebook or Twitter @NematicsLab
Electronics Starter kit Tools:
Soldering Iron - www.banggood.i...
Solder wire - www.banggood.i...
Helping Hands - www.banggood.i...
Hot Glue - www.banggood.i...
Music : Intentions by Anno Domini Beats
--------- Affiliate ---------
Gearbest- bit.ly/2KD54KD
Banggod- bit.ly/36IMEiy
LCSC - bit.ly/2KD0hJ0
--------- Social Media ---------
Facebook - bit.ly/2FC5lJz
Instagram - bit.ly/2XddQpe
Twitter - bit.ly/2IUhqMm
---------------Littel information about Video------------------
This guide provides a complete solution to program the AT89S51 or AT89S52 (these are what I have tested) with an Arduino. Multiple setups are included in this guide; the easiest setup requires no additional software other than the Arduino IDE.
The Intel 8051 microcontroller is one of the most popular general-purpose microcontrollers in use today. The success of the Intel 8051 spawned a number of clones, which are collectively referred to as the MCS-51 family of microcontrollers, which includes chips from vendors such as Atmel, Philips, Infineon, Analog Devices and Texas Instruments.
Some of the features that have made the 8051 popular are:
4 KB on-chip program memory (ROM)
128 bytes on-chip data memory(RAM)
32 bytes devoted to register banks
16 bytes of bit-addressable memory
8-bit data bus
16-bit address bus
16-bit timers (usually 2, but may have more, or less).
3 internal and 2 external interrupts.
The AT89S52 provides the following standard features: 8K bytes of Flash, 256 bytes
of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16-bit timer/counters, a
six-vector two-level interrupt architecture, a full-duplex serial port, on-chip oscillator,
and clock circuitry. Also, the AT89S52 is designed with static logic for operation
down to zero frequency and supports two software selectable power saving modes.
The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and
interrupt system to continue functioning. The Power-down mode saves the RAM contents but freezes the oscillator, disabling all other chip functions until the next interrupt
or hardware reset

Пікірлер: 134
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Learn How to make 8051 Minimal System! - kzbin.info/www/bejne/p6ibhISiZdSorrc
@susmithdas4312
@susmithdas4312 3 жыл бұрын
when i checked internet Arduino Uno and Nano have same current rating for gpio pins. So why u said we cannot use nano for this purpose.If i use external 5v for 89s52 and using Nano only for spi programming .Will it work.
@PoluBalaji
@PoluBalaji 3 жыл бұрын
Hii dudee.. Dude how can I contact u ???? Plzz broo can u please say how to contact you..?
@nirajdeshmukh8982
@nirajdeshmukh8982 3 жыл бұрын
Where to get the development board?
@Sekhar_Home
@Sekhar_Home 2 жыл бұрын
please tell on which port you have connected the led that blink?? reply please
@educationanalysis-ashushar1977
@educationanalysis-ashushar1977 2 жыл бұрын
led ko connect karne ki pin kon si hai
@prashantshinde6066
@prashantshinde6066 Жыл бұрын
the text file is 26mb, and after opening it , it showing some context, not showing command even after tried to find file
@bullygram
@bullygram 4 жыл бұрын
You saved my day, I was on stc89 due to burner unavailability for avr in linux. Now I have windows but chinese usbasp for uc51 had driver issues. So thank you so much!!!! It's a piece of cake now!!!
@mryashtourister9580
@mryashtourister9580 Жыл бұрын
Was u having problem like chip enable program error?
@antoniovivaldi8274
@antoniovivaldi8274 3 жыл бұрын
Bellissimo! Such a clearly and understandably video ever i was seen at yt.
@vijaypawar5075
@vijaypawar5075 5 жыл бұрын
I have done it with the atmega32a which is similar to 8051. 4 ports, 8 pins in each
@SunilKumarGvBLC
@SunilKumarGvBLC 3 жыл бұрын
Hats off! Great Job brother. After telling every stuff, solving the most common errors were very useful! Keep up the Good Work.
@dibashsarkar8373
@dibashsarkar8373 2 жыл бұрын
How to program AT89C52....please help me.. & how to program AT89C52 ic via arduino uno plz can you help me
@mensfashiondesigner9795
@mensfashiondesigner9795 2 жыл бұрын
Hi My AT89S52 development board don't have enable pin only have ALE and PSEN pin how to connect then also getting error on command prompt avrdude.exe:AVR part not found pls help
@vladimirfrolov1440
@vladimirfrolov1440 4 жыл бұрын
Hello. Thank you very much for this tutorial. I assembled kit based on AT89S52 in past and I made a mistake in schematics. I boot new controller and I successfully flash it with BIN file. Thank you very much.
@princyalladi4542
@princyalladi4542 3 жыл бұрын
Excellent demo by using arduino
@abuomardontadd2865
@abuomardontadd2865 Жыл бұрын
how did u create the hex file and which ide u create the skech
@kieranj67
@kieranj67 Жыл бұрын
Thank you so much. Your solution worked perfectly
@antoniosanmartin5462
@antoniosanmartin5462 6 ай бұрын
Could you help me find a recorder for a microcontroller of the 8051 family, the AT80C5115 from Atmel. Thank you so much. All the best
@planker
@planker 2 жыл бұрын
HEY, I'm interesred in progeaming this chip. I found this; Time Chip AT89C2051 FR-4, in a clock kit. I have plenty of Arduino stuff. This sounds fun. please let me know if you will help.
@vishalwaghmare2654
@vishalwaghmare2654 Жыл бұрын
Best explanation I ever seen
@vshots20
@vshots20 2 жыл бұрын
Can I use this method to program microcontroller as many times I want?
@antoniosanmartin5462
@antoniosanmartin5462 7 ай бұрын
How to record the Atmel At89C51. A micro from the 8051 family Thank you very much
@arquimedespaschoal4842
@arquimedespaschoal4842 2 жыл бұрын
The AT89S52 I´m using was locked by a friend of mine. I tried erase it but it fail. Someone told me that I will need a parallel programmer. I do not have one. Is there an easy way to solve this problem?
@JOSEPH-us6nn
@JOSEPH-us6nn Жыл бұрын
Tell me how to program AT89C52 with Arduino? As I heard high power needs 12v, AT89-S needs lower power 5V
@chetanjain4685
@chetanjain4685 3 жыл бұрын
Hey. I bought this Smartflex AT89S52 Development board. Is it compulsory to by arduino to program in it. I mean it is a development board, shouldn't it come with it's own software to program hex file in 8051. I mean then what is the use of 2 micro-usb ports then ?
@Nematics_Lab
@Nematics_Lab 3 жыл бұрын
Check user manual it might using USBASP
@harakumarghadai7828
@harakumarghadai7828 4 жыл бұрын
one doubt! can we use Silicon TechnoLabs ATMEL 8051 AVR USB ISP Programmer using ic (ATMEGA8A-PU) in place of arduino UNO board, will it work? as i have no spare UNO board
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
I haven't tested it but it should work
@harakumarghadai7828
@harakumarghadai7828 4 жыл бұрын
@@Nematics_Lab OK THANKS I WILL TRY
@fernandobarroso2366
@fernandobarroso2366 4 жыл бұрын
Hello, congratulations on your projects. I work with the 8051. With different microcontrollers. I work in assembler. I lived in Cuba. It is difficult to find information here. I ask you for two havores. With what program or platform, I could write software in 51 assembler. I use the X51 that works in MS-DOS. We have no other. Could you send us any documentation or functions to be able to work with the OLED screens that you use in your video? Thanks a lot.
@Nematics_Lab
@Nematics_Lab 3 жыл бұрын
I use Keil but its windows based. I dont have any experience with MS_DOS
@fernandobarroso2366
@fernandobarroso2366 3 жыл бұрын
@@Nematics_Lab Thank you very much for answering.
@anithasshenoy6662
@anithasshenoy6662 8 ай бұрын
Can we use UNO R3 CH340G ATMega328P ?
@sergl9272
@sergl9272 3 жыл бұрын
Thank you very much for this tutorial 👍
@RixtronixLAB
@RixtronixLAB 9 ай бұрын
Nice video, well done, thanks for sharing it with us :)
@ShubhamSrivastava-k2o
@ShubhamSrivastava-k2o Жыл бұрын
After uploading the hex file, its showing verification mismatch error, 0x00 != 0x02. How to eliminate this error?
@Kurukchhetra
@Kurukchhetra Жыл бұрын
Will it work with 89c52
@zaheerahmad5632
@zaheerahmad5632 3 жыл бұрын
Nice video bro kia me is me arduino Jess kam le sakta hon
@24sahiljunghare84
@24sahiljunghare84 Жыл бұрын
In command prompt it showing error: THE SYSTEM CANNOT FIND THE PATH SPECIFIED
@Lordvinc
@Lordvinc 4 жыл бұрын
Worked, thx!
@Hypoengg
@Hypoengg 11 ай бұрын
Will it program P80C51BHP
@letsplaytogether7611
@letsplaytogether7611 2 жыл бұрын
p89V51RD2 NOT detected. error 0xfffff. IT NOT IN THE AVR8051.CONF FILE
@ramkrushnashinde6689
@ramkrushnashinde6689 3 жыл бұрын
Can we do same with nodemcu
@akashas4690
@akashas4690 3 жыл бұрын
Can I remove my connection after booting my 8051
@amirphilip2234
@amirphilip2234 7 ай бұрын
I got this error "C:\Program Files (x86)\arduino\hardware\tools\avr\bin.exe"' is not recognized as an internal or external command, operable program or batch file. I configured it in the environment variable but still
@Nematics_Lab
@Nematics_Lab 7 ай бұрын
Arduino IDE should be installed
@amirphilip2234
@amirphilip2234 7 ай бұрын
@@Nematics_Lab I have Arduino IDE installed but it kept on failing
@electroGoal
@electroGoal 5 жыл бұрын
Brother ! make a video on serial communication of 89s52 using Arduino spi protocol.
@shanijagatiya9675
@shanijagatiya9675 5 жыл бұрын
Bro I heard about 8051 Aryabhatta Development Board which has made in India symbol on back of it and can you please make a short video on this development board
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Mine is almost same so no point of making a video on that
@hannabeprakash
@hannabeprakash 4 жыл бұрын
can we do the same with a Fedora linux in the terminal? I am using fedora scientific KDE Plasma.
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
I'm not sure, first try installing Arduino IDE in Linux after which do as told in video but directory will change as per your os. Try it and let me know if it works
@TECHinTECHout
@TECHinTECHout Жыл бұрын
will this work with at89c51
@tamurtaj2722
@tamurtaj2722 4 жыл бұрын
Hi there, I tried this with my 89s51 and Arduino UNO, the code get burned on my 89s51, but I don't know why all the pins of the 8051 are high, while I tried programming it using a proper burner but still the same problem is still there, I tried changing my ic to 89c51 but still the same thing is happening. Could you please help me by identifying what the problem is? I'll be really grateful.
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
During programing all pins are high
@AmitSharma-bm2qj
@AmitSharma-bm2qj 3 жыл бұрын
#NematicsLab i connect 89s52 with arduino uno as you mentioned in the video but some error show: device signature : 0x000000 (retrying) i don't know why device not detected
@Nematics_Lab
@Nematics_Lab 3 жыл бұрын
I have mentioned how to rectify that error at the end of the video
@AmitSharma-bm2qj
@AmitSharma-bm2qj 3 жыл бұрын
@@Nematics_Lab ok I will try again 👍
@msraza9503
@msraza9503 4 жыл бұрын
Hi ... I wana knew is 89C51 is same as 89S51.. Or they are different...
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Simple explanation, S series can be programmed via AVR programmer like USBASP or Arduino as ISP as well as a parallel programmer. While C series can only be programmed via a parallel programmer.
@msraza9503
@msraza9503 4 жыл бұрын
@@Nematics_Lab Thanks. Can u plz share me a tutorial or video link for that.....
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Have a look at this one for detailed information kzbin.info/www/bejne/p6ibhISiZdSorrc
@mikhaw
@mikhaw 2 жыл бұрын
Nice Tutorial....
@kobitadurgesh6123
@kobitadurgesh6123 3 жыл бұрын
Please bro tell me i 'am use ardiuno nano . Please bro answer my question. Iam watting of your answer.
@yajsselgudino6219
@yajsselgudino6219 4 жыл бұрын
hi, I succusfully uploaded my hex file to the microcontroller however when I test if the program works it does nothing, and I already tested the same code uploaded with a regular burner and it works, but with this method the microcontroller doesn't run the program. Please help!
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Try resetting after uploading
@yajsselgudino6219
@yajsselgudino6219 4 жыл бұрын
@@Nematics_Lab hi, thank you very much for your reply, I discovered that the problem was that I was only adding the name of the file without the ".hex" extension, so it was recognizing the file as binary not hex, once I added the extension it worked perfectly.
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Happy coding
@masaratech
@masaratech 5 жыл бұрын
Can you program AT89C52 using arduino?
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Nope only S series
@nguyenthinh6188
@nguyenthinh6188 4 жыл бұрын
C variant doesnt support isp flash
@zoro.73
@zoro.73 Жыл бұрын
​@@nguyenthinh6188yes, so you need parallel programmer
@xunshuozhang3896
@xunshuozhang3896 4 жыл бұрын
What is the name of product ID of the 8051 board that is used in the video?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Its DIY Here is video - kzbin.info/www/bejne/p6ibhISiZdSorrc
@easward
@easward 5 жыл бұрын
Do we need capacitors and oscillator if we just want to upload the code?
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Yes
@prakashdutt1520
@prakashdutt1520 9 ай бұрын
Yes, 3:32 we want to learn
@ramkrushnashinde6689
@ramkrushnashinde6689 3 жыл бұрын
Why not uploading videos now a days
@jasbirsingh6717
@jasbirsingh6717 8 ай бұрын
Bhai yahi same process 89s51 ke sath ki too error aaraha read from file failed
@humzzaxx
@humzzaxx 4 жыл бұрын
when i open the text file i get gibberish what should i do?
@RanaRao_Chandrachur
@RanaRao_Chandrachur 2 жыл бұрын
Hats off, u saved my time🤣
@somakantamajumder5408
@somakantamajumder5408 3 жыл бұрын
If I made 200 led chaser then what is code and circuit diagram
@zoro.73
@zoro.73 Жыл бұрын
Use a mux, and set the select pins to i/o pins of 8051 With that you reduce the pin configuration and code complexity
@hirenshah1212
@hirenshah1212 5 жыл бұрын
Nice and easy
@divyeshcvora
@divyeshcvora 3 жыл бұрын
How to burn program in At89c51 ?
@Nematics_Lab
@Nematics_Lab 3 жыл бұрын
You need a parallel programmer for that which are expensive
@electroGoal
@electroGoal 5 жыл бұрын
Can it work on 22pf capacitor.
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Yes
@adithyavecham3621
@adithyavecham3621 4 жыл бұрын
How to do this procedure in linux operating system (ubuntu)
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
I'm not sure about that, but as far as I know about it, You just have to install the Arduino IDE for Linux and update the lines of command according the the installation directory
@jatinkumar-de8vh
@jatinkumar-de8vh 2 ай бұрын
all connection check 4-5 time but still there in error 0x000000
@shantilkhadatkar1195
@shantilkhadatkar1195 2 ай бұрын
Bro check the programmer video by Creative Inventory. Worked for my AT89S52 chip
@electronic7979
@electronic7979 5 жыл бұрын
👍
@tanmoykarmakar8259
@tanmoykarmakar8259 4 жыл бұрын
How do I write program for 8051? How do we use arduino ide for that?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
You need to use Keil IDE to write code for 8051
@tanmoykarmakar8259
@tanmoykarmakar8259 4 жыл бұрын
@@Nematics_Lab Isn't there any arduino library that can get it done? And btw can't we burn arduino bootloader within the chip? I was trying the same, but got a device signature error.
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Arduino and 8051 are two different chips so it won't work.
@tanmoykarmakar8259
@tanmoykarmakar8259 4 жыл бұрын
@@Nematics_Lab ok.. thanks a lot! Keep helping like this 🙂
@papazola2247
@papazola2247 3 жыл бұрын
Great!
@MrSelvanambi
@MrSelvanambi 4 жыл бұрын
How to use 8051 microprocessor
@vijiljoy5125
@vijiljoy5125 Жыл бұрын
bro can i use arduino mega
@Nematics_Lab
@Nematics_Lab Жыл бұрын
Try
@daniloscataloni1613
@daniloscataloni1613 4 жыл бұрын
Can I use a 12 MHz crystal?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Yea
@daniloscataloni1613
@daniloscataloni1613 4 жыл бұрын
@@Nematics_Lab Thanks, friend.
@vinodganger4038
@vinodganger4038 Ай бұрын
8051 how to code
@kryptocat4240
@kryptocat4240 4 жыл бұрын
Why so complicated method to proggram the chip . You can burn bootloader to 8051 , download 8051 board in ARDUINO IDE and you are good to go now
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
There is no way to program 8051 directly using Arduino IDE. Try it if it works let me know :)
@ranakarmakar7937
@ranakarmakar7937 4 жыл бұрын
device signature = 0x000000 not upload code
@sathindranidhiyarasu1066
@sathindranidhiyarasu1066 5 жыл бұрын
Dude can i have link for the avr 8051 file ?
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Check description
@sathindranidhiyarasu1066
@sathindranidhiyarasu1066 5 жыл бұрын
Got it. Thanks dude. Nice job.
@jaydeepvlogtech8223
@jaydeepvlogtech8223 5 жыл бұрын
WHERE IS LINK TO DOWNLOAD
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Check description of video
@varunmanchanda3972
@varunmanchanda3972 3 жыл бұрын
Bro, at least tell which pins are to be connected to the LED of AT89S52!
@ahmedheaba3180
@ahmedheaba3180 2 жыл бұрын
+1
@franciscogomezmartin3999
@franciscogomezmartin3999 4 жыл бұрын
Hello, thank you very much for your channel. Is very good. How can I record an AT89C5115 from Arduino? It's possible? I have several applications but I always need a recorder because I don't know how to record the application with the microcontroller connected to a board. What pins do I need to use? Please, this information is very important to me. If you consider that it is too long to explain here on KZbin, I can send you my email address. Thank you so much . A cordial greeting.
@praveenkumars4243
@praveenkumars4243 5 жыл бұрын
Nano doesn't work because of not enough current. Now I know why I was never successful in my attempt
@susmithdas4312
@susmithdas4312 3 жыл бұрын
what about using external power supply for 89s52 other than one derived from Nano 5v pin. Will it work?
@eliasram1822
@eliasram1822 7 ай бұрын
Yes, it works and i do that everyone day at the company i work for​@@susmithdas4312
@ha13151
@ha13151 4 ай бұрын
+1
@SG_इलेक्ट्रॉनिक्स
@SG_इलेक्ट्रॉनिक्स 3 жыл бұрын
Hindi me bhi to bataiye
@electroGoal
@electroGoal 5 жыл бұрын
It shows invalid device signature
@electroGoal
@electroGoal 5 жыл бұрын
Please reply
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
Can you post the error code?
@electroGoal
@electroGoal 5 жыл бұрын
C:\Users\Ayush>"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C C:/AVR8051.conf -c stk500v1 -P COM3 -p 89s52 -b 19200 -U flash:w:"C:\Users\Ayush\Documents\LEDMCP1.hex":a avrdude.exe: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.09s avrdude.exe: Device signature = 0x000000 (retrying) Reading | ################################################## | 100% 0.09s avrdude.exe: Device signature = 0x000000 (retrying) Reading | ################################################## | 100% 0.09s avrdude.exe: Device signature = 0x000000 avrdude.exe: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check. avrdude.exe done. Thank you.
@Nematics_Lab
@Nematics_Lab 5 жыл бұрын
You haven't done connection properly check them!
@electroGoal
@electroGoal 5 жыл бұрын
Ok thank-you for help.Finally it works fine.
@vijaypawar5075
@vijaypawar5075 5 жыл бұрын
First like first comment. Big fan bro
Programming AT89S52 Microcontroller via C
9:13
Anas Kuzechie
Рет қаралды 31 М.
8051 Programming with USBASP - Barebones method
12:46
Saravanan AL
Рет қаралды 36 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 23 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 24 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 593 М.
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 209 М.
What's the difference? Arduino vs Raspberry Pi
6:21
Tinkernut
Рет қаралды 1,8 МЛН
Framework Cyberdeck - DIY Portable PC
17:31
Ben Makes Everything
Рет қаралды 1,2 МЛН
10 steps to start AVR microcontrollers
28:53
Electronic Wizard
Рет қаралды 13 М.
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
1:25:31
Programming Electronics Academy
Рет қаралды 2,6 МЛН
#18 Programming the AT89S52 Using Arduino Uno.
30:51
Vooi Yap - Embedded Systems Education
Рет қаралды 15 М.