您的当前位置:首页正文

实验10 DS1302编程实验

2022-03-18 来源:意榕旅游网
实验10 DS1302编程实验

一. 实验要求

1.基本要求

(1)掌握DS1302的应用和工作原理。

(2)能够用C语言编写DS1302时钟程序。

2.扩展要求

(2)在DS1302的基础上增加定时闹钟的功能,用蜂鸣器做发声器件。

二.实验电路原理图

A6dpbcVCaCA5dpbcVCaCA4dpbcVCaCA3dpbcVCaCA2dpbcVCaCA1dpcbD1gggggdddddfffffdgfaedpbgfaedpbgfaedpbgfaedpbgfaedpbgfaedpbfg88888VCaC8D2cdecdecdecdecde671906719067190671906719067190124512451245124512451245cdeD3131211101312111013121110131211101312111013121110654365436543654365436543IC574LS164IC674LS164IC774LS164IC874LS164IC974LS164IC1074LS164D4QHQGQFQEQDQCQBQAQHQGQFQEQDQCQBQAQHQGQFQEQDQCQBQAQHQGQFQEQDQCQBQAQHQGQFQEQDQCQBQAGNDGNDGNDGNDGNDGNDVCCCLRCLKVCCCLRCLKVCCCLRCLKVCCCLRCLKVCCCLRCLKVCCCLRCLKBABABABABABAQHQGQFQEQDQCQBQA+5V141414141414987219872198721987219872198721RXDTXD+5V+5V510×12J221CON2Y1+5VIC3+5V8765P3.5P3.6P3.71234C26pFC710uFVcc1Vcc2X1SCLKX2I/OGNDRSTDS1302DS1302P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7RESET123456789+5VRESETp1.0p1.1p1.2p1.3p1.4p1.5p1.6p1.7RESETAT89S52C132.768KHz6pFR2R35.1k5.1K10KR11INT1INT113P0.0P0.1P0.2P0.3P0.4P0.5P0.6P0.7P2.7P2.6P2.5P2.439P0.0R1251038P0.1510R1337P0.2R1451036P0.3R1551035P0.4R1651034P0.5R1751033P0.6R1851032P0.751028R19P2.727R20P2.6510R2151026P2.5R2251025P2.4R23510P0.0P0.1P0.2P0.3P0.4P0.5P0.6P0.7P2.7P2.6P2.5P2.4东红北绿北黄北红西绿西黄西红南绿南黄南红东绿东黄INT012P3.5P3.4Y322PC9INT1 (P3.3)INT0 (P3.2)T1 (P3.5)T0 (P3.4)X1X2EA/VPRXD (P3.0)TXD (P3.1)R45.1K+5V22PC81514191831RXD10TXD11+5VP2.3P2.2P2.1P2.0ALE/PPSEN(P3.7) RD(P3.6) WR2423222130291716P2.3P2.3上(加)P2.2P2.2右(移)P2.1P2.1左(移)P2.0P2.0下(减)P3.7P3.6

三. 实验原理简介

本实验是通过实时时钟控制芯片做一时钟,其中上下左右按键用于调试,中

断按键用于实现选择处于调试状态还是正常状态。处于调试状态时有一位处于闪烁状态。通过左右按键可调节闪烁位置,上下按键可调节其显示值。

因篇幅问题不能全部显示,请点此查看更多更全内容