Cov txheej txheem:

Tiag TIme Clock Siv AT89s52: 3 Cov Kauj Ruam
Tiag TIme Clock Siv AT89s52: 3 Cov Kauj Ruam

Video: Tiag TIme Clock Siv AT89s52: 3 Cov Kauj Ruam

Video: Tiag TIme Clock Siv AT89s52: 3 Cov Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Hlis ntuj nqeg
Anonim
Tiag TIme Clock Siv AT89s52
Tiag TIme Clock Siv AT89s52
Tiag TIme Clock Siv AT89s52
Tiag TIme Clock Siv AT89s52

Txais tos rov qab, Qhov no yog shubham Trivedi thiab hnub no kuv yuav tsim lub Sijhawm Tiag tiag siv At89s52 Microcontroller. AT89S52 Microcontroller yog lub plawv ntawm txoj haujlwm no. DS1307 IC siv ua RTC. Qhov DS1307 IC no xav tau I2C interface, tab sis 89s52 tsis muaj I2C chaw nres nkoj ntawm lub nkoj. Qhov ntawd ua rau nws raug rau tsim. Yog li kuv tsim lub tsheb npav I2C hauv qhov haujlwm thiab siv nws los ua kom tau raws li qhov xav tau.

Cov Cheeb Tsam Yuav Tsum Tau:

  1. SWB 1307
  2. AT89S52 Pawg Thawj Coj
  3. 16x2 LCD Zaub
  4. Txuas xov hlau
  5. Cov qhob cij

Kauj Ruam 1: Kev tsim kho

Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho

Lub Circuit Court yog tsim los ntawm ob ntu sib cais. Daim duab 1 Qhia txog RTC DS 1307 IC txuas. Qhov kev sib txuas no ua tiav los ntawm kev siv xoom PCB. Kev sib txuas yog tib yam li qhia hauv daim duab 2.

Kuv siv AT89s52 Pawg Thawj Saib Xyuas Kev Txhim Kho uas kuv tau tsim ob peb lub hlis dhau los siv Screen print txheej txheem rau pcb tsim. SCL tus pin ntawm RTC txuas nrog tus pin P1.1 thiab SDA tus pin txuas nrog tus pin P1.0 ntawm 89s52 microcontroller. LCD 16x2 yog cuam tshuam hauv qab no.

Tus lej PIN ntawm LCD PIN NTAWM AT89S52

  • D7 - P3.7
  • D6 - P3.6
  • D5 - P3.5
  • D4 - P3.4
  • TSI - P1. 6
  • RW - P1. 5
  • E - P1.4

Kauj ruam 2: Ua Haujlwm Yees Duab

Kauj ruam 3: Code

Code

Qhov program tau tsim hauv Keil uvision 5 software. Cov tsev qiv ntawv cais cov ntaub ntawv tau siv rau txhua lub interface. thov mus hla cov ntawv readme ua ntej mus txuas ntxiv. Cov lus piav qhia ntawm txhua txoj haujlwm tseem muaj nyob hauv qhov txuas no

Nyem qhov no mus rub daim ntawv txuas

tsis raug txais tos ntawm [email protected]

nyem qhov no kom nyiam hauv facebook

Pom zoo: