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

  Рет қаралды 54,597

NematicsLab

NematicsLab

4 жыл бұрын

Check out JLCPCB,
$2 PCB Prototype (5pcs,10*10cm) with any color solder mask: jlcpcb.com
More project information(Code,Schematic,etc):- www.instructables.com/id/How-...
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.in/custlink/DKGK...
Solder wire - www.banggood.in/custlink/mv3v...
Helping Hands - www.banggood.in/custlink/vmvm...
Hot Glue - www.banggood.in/custlink/D3GD...
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

Пікірлер: 131
@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
@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.
@prashantshinde6066
@prashantshinde6066 Жыл бұрын
the text file is 26mb, and after opening it , it showing some context, not showing command even after tried to find file
@antoniovivaldi8274
@antoniovivaldi8274 3 жыл бұрын
Bellissimo! Such a clearly and understandably video ever i was seen at yt.
@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?
@kieranj67
@kieranj67 10 ай бұрын
Thank you so much. Your solution worked perfectly
@princyalladi4542
@princyalladi4542 3 жыл бұрын
Excellent demo by using arduino
@vishalwaghmare2654
@vishalwaghmare2654 10 ай бұрын
Best explanation I ever seen
@vijaypawar5075
@vijaypawar5075 4 жыл бұрын
I have done it with the atmega32a which is similar to 8051. 4 ports, 8 pins in each
@sergl9272
@sergl9272 3 жыл бұрын
Thank you very much for this tutorial 👍
@Bianchi77
@Bianchi77 6 ай бұрын
Nice video, well done, thanks for sharing it with us :)
@Lordvinc
@Lordvinc 4 жыл бұрын
Worked, thx!
@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.
@abuomardontadd2865
@abuomardontadd2865 9 ай бұрын
how did u create the hex file and which ide u create the skech
@vshots20
@vshots20 2 жыл бұрын
Can I use this method to program microcontroller as many times I want?
@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
@mikhaw
@mikhaw 2 жыл бұрын
Nice Tutorial....
@zaheerahmad5632
@zaheerahmad5632 3 жыл бұрын
Nice video bro kia me is me arduino Jess kam le sakta hon
@RanaRao_Chandrachur
@RanaRao_Chandrachur Жыл бұрын
Hats off, u saved my time🤣
@antoniosanmartin5462
@antoniosanmartin5462 3 ай бұрын
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
@hirenshah1212
@hirenshah1212 4 жыл бұрын
Nice and easy
@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?
@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
@ramkrushnashinde6689
@ramkrushnashinde6689 3 жыл бұрын
Can we do same with nodemcu
@dibashsarkar8373
@dibashsarkar8373 Жыл бұрын
How to program AT89C52....please help me.. & how to program AT89C52 ic via arduino uno plz can you help me
@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
@anithasshenoy6662
@anithasshenoy6662 5 ай бұрын
Can we use UNO R3 CH340G ATMega328P ?
@planker
@planker Жыл бұрын
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.
@user-xj1rt5nd1n
@user-xj1rt5nd1n 10 ай бұрын
After uploading the hex file, its showing verification mismatch error, 0x00 != 0x02. How to eliminate this error?
@kobitadurgesh6123
@kobitadurgesh6123 3 жыл бұрын
Please bro tell me i 'am use ardiuno nano . Please bro answer my question. Iam watting of your answer.
@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
@akashas4690
@akashas4690 3 жыл бұрын
Can I remove my connection after booting my 8051
@antoniosanmartin5462
@antoniosanmartin5462 3 ай бұрын
How to record the Atmel At89C51. A micro from the 8051 family Thank you very much
@easward
@easward 4 жыл бұрын
Do we need capacitors and oscillator if we just want to upload the code?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Yes
@TECHinTECHout
@TECHinTECHout Жыл бұрын
will this work with at89c51
@humzzaxx
@humzzaxx 4 жыл бұрын
when i open the text file i get gibberish what should i do?
@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
@Kurukchhetra
@Kurukchhetra Жыл бұрын
Will it work with 89c52
@harakumarghadai7828
@harakumarghadai7828 3 жыл бұрын
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 3 жыл бұрын
I haven't tested it but it should work
@harakumarghadai7828
@harakumarghadai7828 3 жыл бұрын
@@Nematics_Lab OK THANKS I WILL TRY
@electroGoal
@electroGoal 4 жыл бұрын
Brother ! make a video on serial communication of 89s52 using Arduino spi protocol.
@Hypoengg
@Hypoengg 8 ай бұрын
Will it program P80C51BHP
@24sahiljunghare84
@24sahiljunghare84 Жыл бұрын
In command prompt it showing error: THE SYSTEM CANNOT FIND THE PATH SPECIFIED
@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
@shanijagatiya9675
@shanijagatiya9675 4 жыл бұрын
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 4 жыл бұрын
Mine is almost same so no point of making a video on that
@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 👍
@papazola2247
@papazola2247 3 жыл бұрын
Great!
@fernandobarroso2366
@fernandobarroso2366 3 жыл бұрын
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.
@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
@jasbirsingh6717
@jasbirsingh6717 5 ай бұрын
Bhai yahi same process 89s51 ke sath ki too error aaraha read from file failed
@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
@amirphilip2234
@amirphilip2234 4 ай бұрын
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 3 ай бұрын
Arduino IDE should be installed
@amirphilip2234
@amirphilip2234 3 ай бұрын
@@Nematics_Lab I have Arduino IDE installed but it kept on failing
@letsplaytogether7611
@letsplaytogether7611 2 жыл бұрын
p89V51RD2 NOT detected. error 0xfffff. IT NOT IN THE AVR8051.CONF FILE
@electroGoal
@electroGoal 4 жыл бұрын
Can it work on 22pf capacitor.
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Yes
@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
@somakantamajumder5408
@somakantamajumder5408 3 жыл бұрын
If I made 200 led chaser then what is code and circuit diagram
@zoro.73
@zoro.73 8 ай бұрын
Use a mux, and set the select pins to i/o pins of 8051 With that you reduce the pin configuration and code complexity
@divyeshcvora
@divyeshcvora 3 жыл бұрын
How to burn program in At89c51 ?
@Nematics_Lab
@Nematics_Lab 3 жыл бұрын
You need a parallel programmer for that which are expensive
@electronic7979
@electronic7979 4 жыл бұрын
👍
@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 🙂
@MrSelvanambi
@MrSelvanambi 3 жыл бұрын
How to use 8051 microprocessor
@masaratech
@masaratech 4 жыл бұрын
Can you program AT89C52 using arduino?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Nope only S series
@nguyenthinh6188
@nguyenthinh6188 3 жыл бұрын
C variant doesnt support isp flash
@zoro.73
@zoro.73 8 ай бұрын
​@@nguyenthinh6188yes, so you need parallel programmer
@daniloscataloni1613
@daniloscataloni1613 4 жыл бұрын
Can I use a 12 MHz crystal?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Yea
@daniloscataloni1613
@daniloscataloni1613 4 жыл бұрын
@@Nematics_Lab Thanks, friend.
@vijiljoy5125
@vijiljoy5125 Жыл бұрын
bro can i use arduino mega
@Nematics_Lab
@Nematics_Lab Жыл бұрын
Try
@sathindranidhiyarasu1066
@sathindranidhiyarasu1066 4 жыл бұрын
Dude can i have link for the avr 8051 file ?
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Check description
@sathindranidhiyarasu1066
@sathindranidhiyarasu1066 4 жыл бұрын
Got it. Thanks dude. Nice job.
@vijaypawar5075
@vijaypawar5075 4 жыл бұрын
First like first comment. Big fan bro
@jaydeepvlogtech8223
@jaydeepvlogtech8223 4 жыл бұрын
WHERE IS LINK TO DOWNLOAD
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Check description of video
@franciscogomezmartin3999
@franciscogomezmartin3999 3 жыл бұрын
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.
@ranakarmakar7937
@ranakarmakar7937 3 жыл бұрын
device signature = 0x000000 not upload code
@prakashdutt1520
@prakashdutt1520 6 ай бұрын
Yes, 3:32 we want to learn
@ramkrushnashinde6689
@ramkrushnashinde6689 3 жыл бұрын
Why not uploading videos now a days
@varunmanchanda3972
@varunmanchanda3972 3 жыл бұрын
Bro, at least tell which pins are to be connected to the LED of AT89S52!
@ahmedheaba3180
@ahmedheaba3180 2 жыл бұрын
+1
@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 :)
@praveenkumars4243
@praveenkumars4243 4 жыл бұрын
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 3 ай бұрын
Yes, it works and i do that everyone day at the company i work for​@@susmithdas4312
@ha13151
@ha13151 29 күн бұрын
+1
@electroGoal
@electroGoal 4 жыл бұрын
It shows invalid device signature
@electroGoal
@electroGoal 4 жыл бұрын
Please reply
@Nematics_Lab
@Nematics_Lab 4 жыл бұрын
Can you post the error code?
@electroGoal
@electroGoal 4 жыл бұрын
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 4 жыл бұрын
You haven't done connection properly check them!
@electroGoal
@electroGoal 4 жыл бұрын
Ok thank-you for help.Finally it works fine.
@TAPECASSETE
@TAPECASSETE 3 жыл бұрын
Hindi me bhi to bataiye
What is a microcontroller and how microcontroller works
10:55
ShortcutElectronics
Рет қаралды 522 М.
how to program 8051 using arduino
6:24
Hassan Raza
Рет қаралды 38 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 36 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 10 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 34 МЛН
Make Your Own 8051 Minimal System | DIY Development Board
4:24
NematicsLab
Рет қаралды 15 М.
8051 Programming with USBASP - Barebones method
12:46
Saravanan AL
Рет қаралды 35 М.
how to upload program in 8051 microcontroller
4:36
svsembedded
Рет қаралды 46 М.
Are PIC Microcontrollers Any Good? - Beyond Arduino #4
21:07
Sine Lab
Рет қаралды 39 М.
Using Shift Registers to Get UNLIMITED GPIOs for our project !!
12:40
Why build an entire computer on breadboards?
28:43
Ben Eater
Рет қаралды 3,1 МЛН
Programming AT89S52 Microcontroller via C
9:13
Anas Kuzechie
Рет қаралды 29 М.
Custom Keyboard From Scratch Part 2
17:13
Casual Coders
Рет қаралды 39 М.
What's the difference? Arduino vs Raspberry Pi
6:21
Tinkernut
Рет қаралды 1,8 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 8 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,1 МЛН
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 414 М.
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 337 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН