Cov txheej txheem:

PROGRAMMING AT89S52 Siv ARDUINO: 4 Kauj Ruam
PROGRAMMING AT89S52 Siv ARDUINO: 4 Kauj Ruam

Video: PROGRAMMING AT89S52 Siv ARDUINO: 4 Kauj Ruam

Video: PROGRAMMING AT89S52 Siv ARDUINO: 4 Kauj Ruam
Video: Program Any IC, Micro-Controller | AT89S52, AT89S51, AT89C51,AT89C52 | Universal ISP Programmer | 2024, Kaum ib hlis
Anonim
PROGRAMMING AT89S52 Siv ARDUINO
PROGRAMMING AT89S52 Siv ARDUINO
PROGRAMMING AT89S52 Siv ARDUINO
PROGRAMMING AT89S52 Siv ARDUINO

In-System Programming (ISP) aka In-Circuit Serial Programming (ICSP) yog lub peev xwm ntawm qee cov cuab yeej siv cov cuab yeej siv tau, microcontrollers, thiab lwm yam khoom siv sib txuas kom tau programmed thaum teeb tsa hauv qhov system tiav, tsis yog xav tau cov chip los ua haujlwm ua ntej rau nruab nws rau hauv qhov system.

Hauv qhov kev qhia no AT89S52 microcontroller tau teeb tsa los ntawm kev siv Arduino ua In-Circuit Serial Programmer.

Khoom siv

1x AT89S522x 33pF Disc Capacitors 1x 11.0592MHz Crystal Oscillator 1x 0.1uF Capacitor1x 10kOhm Resistor 1x Push Button 1x Bread BoardJumper Wires - raws li Xav Tau

Kauj Ruam 1: CIRCUIT CONNECTIONS

CIRCUIT CONNECTIONS
CIRCUIT CONNECTIONS
CIRCUIT CONNECTIONS
CIRCUIT CONNECTIONS
CIRCUIT CONNECTIONS
CIRCUIT CONNECTIONS

Txuas cov khoom siv hauv lub khob cij raws li qhia hauv daim duab.*Nco tseg: tus pin 31 yuav tsum rub mus rau +5v txij li thaum peb tab tom siv lub cim xeeb sab hauv.

Kauj ruam 2: Hloov pauv ARDUINO rau hauv ISP

1. Txuas Arduino rau PC.2. Xaiv lub rooj tsav xwm tsim nyog thiab chaw nres nkoj. 3. Rub cov cai los ntawm cov ntawv txuas hauv qab no. Nco tseg* Tsis txhob tshem lub USB cable los ntawm PC mus rau Arduino tom qab xa cov cai no arduino.

Kauj Ruam 3: Tsim HEX FILE

Tsim HEX FILE
Tsim HEX FILE
Tsim HEX FILE
Tsim HEX FILE
Tsim HEX FILE
Tsim HEX FILE
Tsim HEX FILE
Tsim HEX FILE

1. Qhib Keil uVision software. 2. Ntaus qhov program thiab khaws nws ua.c file.3. Nyem ob npaug rau 'Pawg Pab Pawg' thiab nyem rau ntawm.c cov ntaub ntawv koj tsim. 4. Txoj nyem rau ntawm 'Hom Phiaj 1'.5. Teeb Crystal zaus li 11.0592MHz.6. Txheeb xyuas 'Siv On-chip ROM'7. Nyem rau ntawm 'Output' tab tom qab ntawv khij 'Tsim HEX file' thiab nyem OK

Kauj Ruam 4: PROGRAMMING AT89S52

TSHOOJ AT89S52
TSHOOJ AT89S52

1. Qhib 89S52 programmer software hauv koj lub PC.

2. Xaiv qhov chaw nres nkoj COM uas Arduino txuas nrog.

3. Nyem Qhia paub. Qhov no yuav ua rau cov lus hais tias 'atmel AT89S52 kuaj pom'.

4. Nyem Qhib hex file thiab xaiv cov ntawv hex.

5. Nyem upload. Nws yuav sau cov ntawv hex rau hauv lub microcontroller.

6. Nws tiav lawm. Tam sim no koj tuaj yeem xa ib qho chaws rau 89S52 los ntawm kev siv Arduino los ntawm kev ua raws cov lus qhia no.

Pom zoo: