文件名称:RTC
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-08-02
- 文件大小:
- 131kb
- 下载次数:
- 0次
- 提 供 者:
- 宋**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
7. RTC程序设计与电路仿真
运用LPC2138内部RTC的实时时钟显示年、月、日、星期和时间。
定义74HC595的片选端口、开关端口。运用PINSEL0、PINSEL1寄存器设置SPI引脚的EINT0连接,运用IO0DIR寄存器设置控制口输出,初始化SPI接口,设置主机时钟分频、接口模式。设置中断为边沿触发模式、下降沿触发模式。设置所有中断匹配为IRQ中断,IRQ使能服务地址,然后通过使能EINT3允许IRQ中断,分别显示年、月、日、星期、时、分、秒的数据信息。
-7. RTC program design and circuit simulation using LPC2138 internal RTC real time clock display year, month, day, week and time. Definition 74HC595 chip select port, the switch port. Use PINSEL0, PINSEL1 register settings SPI pins EINT0 connection, using IO0DIR control port output register is set to initialize the SPI interface, set the master clock frequency, interface mode. Set the interrupt is edge-triggered mode, the falling edge trigger mode. Set all matches for the IRQ interrupt interrupt, IRQ enable service address, and then by enabling EINT3 allow IRQ interrupts, respectively, show the year, month, day, week, hours, minutes, seconds of data information.
运用LPC2138内部RTC的实时时钟显示年、月、日、星期和时间。
定义74HC595的片选端口、开关端口。运用PINSEL0、PINSEL1寄存器设置SPI引脚的EINT0连接,运用IO0DIR寄存器设置控制口输出,初始化SPI接口,设置主机时钟分频、接口模式。设置中断为边沿触发模式、下降沿触发模式。设置所有中断匹配为IRQ中断,IRQ使能服务地址,然后通过使能EINT3允许IRQ中断,分别显示年、月、日、星期、时、分、秒的数据信息。
-7. RTC program design and circuit simulation using LPC2138 internal RTC real time clock display year, month, day, week and time. Definition 74HC595 chip select port, the switch port. Use PINSEL0, PINSEL1 register settings SPI pins EINT0 connection, using IO0DIR control port output register is set to initialize the SPI interface, set the master clock frequency, interface mode. Set the interrupt is edge-triggered mode, the falling edge trigger mode. Set all matches for the IRQ interrupt interrupt, IRQ enable service address, and then by enabling EINT3 allow IRQ interrupts, respectively, show the year, month, day, week, hours, minutes, seconds of data information.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
RTC
...\CONFIG.H
...\HEAP.S
...\IRQ.S
...\LPC2138.H
...\Last Loaded RTC.DBK
...\RTC.DSN
...\RTC.Opt
...\RTC.PWI
...\RTC.Uv2
...\RTC.axf
...\RTC.hex
...\RTC.htm
...\RTC.lnp
...\RTC.map
...\RTC.plg
...\RTC.sct
...\RTC.tra
...\RTC_Opt.Bak
...\RTC_Target 1.dep
...\RTC_Uv2.Bak
...\STACK.S
...\Startup.lst
...\Startup.o
...\Startup.s
...\TARGET.C
...\TARGET.H
...\main.c
...\main.crf
...\main.d
...\main.i
...\main.o
...\main.txt