单片机与嵌入式系统应用
單片機與嵌入式繫統應用
단편궤여감입식계통응용
MICROCONTROLLER & EMBEDDED SYSTEM
2014年
11期
15-17,20
,共4页
徐健%陈永冰%刘勇%贾玉柱
徐健%陳永冰%劉勇%賈玉柱
서건%진영빙%류용%가옥주
实时时钟%DS3231%SD 卡%文件系统%I2C总线
實時時鐘%DS3231%SD 卡%文件繫統%I2C總線
실시시종%DS3231%SD 잡%문건계통%I2C총선
real-time clock%DS323 1%SD card%file system%I2 C bus
为满足嵌入式环境中文件系统精准的提供时间功能,使存储在外部介质 SD 卡中的文件包含创建、修改、访问等详细时间信息,提出采用高精度实时时钟芯片 DS3231为文件系统提供连续精准的时间信息的解决方案。介绍了 SD 卡存储结构,详细探讨了 FAT32文件系统在嵌入式环境中的移植方法,设计了 DS3231与 C8051F500单片机进行通信时的硬件接口连接,通过 I2 C 总线实现对 DS3231时间信息的读写。系统测试表明,DS3231能够连续不断地给嵌入式文件系统提供精准时间信息。
為滿足嵌入式環境中文件繫統精準的提供時間功能,使存儲在外部介質 SD 卡中的文件包含創建、脩改、訪問等詳細時間信息,提齣採用高精度實時時鐘芯片 DS3231為文件繫統提供連續精準的時間信息的解決方案。介紹瞭 SD 卡存儲結構,詳細探討瞭 FAT32文件繫統在嵌入式環境中的移植方法,設計瞭 DS3231與 C8051F500單片機進行通信時的硬件接口連接,通過 I2 C 總線實現對 DS3231時間信息的讀寫。繫統測試錶明,DS3231能夠連續不斷地給嵌入式文件繫統提供精準時間信息。
위만족감입식배경중문건계통정준적제공시간공능,사존저재외부개질 SD 잡중적문건포함창건、수개、방문등상세시간신식,제출채용고정도실시시종심편 DS3231위문건계통제공련속정준적시간신식적해결방안。개소료 SD 잡존저결구,상세탐토료 FAT32문건계통재감입식배경중적이식방법,설계료 DS3231여 C8051F500단편궤진행통신시적경건접구련접,통과 I2 C 총선실현대 DS3231시간신식적독사。계통측시표명,DS3231능구련속불단지급감입식문건계통제공정준시간신식。
In order to provide the accurate time information of file system in embedded environment and make files stored in the external SD card contain detailed time information about creation,modification and access.The paper proposes a solution that high-precision real-time clock chip DS323 1 provides continuous accurate time information to the file system.The paper introduces the storage structure of SD card,discusses the transplant method of FAT32 file system in embedded environment,designs hardware connection interface between DS323 1 and microcontroller C805 1F500,and realizes the read/write operation of time information of DS323 1 by I2 C bus.System test shows that DS323 1 can continuously provide accurate time information to the embedded file system.