使用DS1307的PIC单片机-Using a DS1307

abstract: this application note is intended to demonstrate an application using the ds1307 real-time clock with a microchip pic microcontroller. the software example includes basic operating routines, and a schematic of the application circuit is included.
discussionthis application note demonstrates how to use the ds1307 real-time clock (rtc) with a microchip pic16f628 microcontroller.
the example code, written in assembly code, includes a routine for reading the time and date from the rtc and a routine to write time and date data to the rtc from user entries.
operationthe program uses two general-purpose port pins on the microcontroller to communicate with the ds1307 using the i²c serial interface. the microcontroller's internal uart drives two port pins, which are connected to a ds232 line driver/receiver. user inputs and data outputs from the program are passed through the rs-232 interface from a terminal emulator program on a pc to the microcontroller. the rs-232 dtr input line controls the microcontroller's reset input.
the microcontroller in this example is a pic16f628. for information on the microcontroller used in this application note, including available programming tools, visit the microchip web site.
the software is shown in figure 1. a schematic of the circuit is shown in figure 2.
download (txt, 10kb)
figure 1. program listing
more detailed image (pdf, 126kb)
figure 2. schematic drawing of the ds1307 circuit used with a pic microcontroller.

瑞芯微RK3588开发套件:6大亮点内外兼修,超高性价比
北斗二号发射成功 2020年服务范围覆盖全球
苹果13是曲面屏吗
使用Lumerical STACK求解器优化OLED
苹果7以旧换新活动打败丈母娘,苹果6s以旧换iphone7
使用DS1307的PIC单片机-Using a DS1307
瑞萨电子向富士电机转让下属津轻工厂(附转让概要)
金菱通达导热结构胶已经超越全球同行,国内外6项发明专利
PCB材料迎涨价 众多厂商创高
微软如何实现蒂花之秀 在人工智能领域
浅谈IC测试座及探针作用
荣电集团与华为消费者BG在物联网生态和智能家居领域达成共识
TWS市场迈入持续增长期 本土芯片厂商开拓PMIC新赛道
基于GAN先验的退化感知特征插值人脸修复网络
三星GALAXYA7评测 里里外外都是有着精准定位的设计理念
刷脸支付带给我们什么
二氧化碳培养箱BPN-40CRH产品特点的介绍
谷歌地图调整默认推荐选项 将优先展示离用户最近的外卖商家
618开门红国货受宠 慧策持续助力国货品牌智能化升级
AT&T为自家5G网络准备了较低的850MHz频段?