摘 要: 文章介绍了家用小型电子相册的设计和制作。采用51单片机作为控制核心,SD卡作为图像存储设备, TFT彩屏作为显示。使用单片机SPI接口控制SD卡的读写,并通过分析卡中存储的.bin格式文件的数据构成来实现SD卡 中特定图片文件的解码处理,驱动LCD液晶屏的显示;同时还可以通过按键控制实现图片的前后翻和自动播放,体积 小、成本低,有传统纸质相册无法比拟的优点,使照片的浏览更加生动。 |
关键词: 51单片机;TFT彩屏;SD卡;电子相册 |
中图分类号: TP311.5
文献标识码: A
|
基金项目: 辽宁省大学生创新训练项目S201612026009 通讯作者,汪语哲,博士后,大连民族大学机电工程学院教师 |
|
Design and Implementation of Home Electronic Album Based on 51 MCU |
ZHANG Yan,XIE Pengfei,RAN Chunqiu,WANG Wanlei,WANG Yuzhe
|
( Dalian Nationalities University, Dalian 116600, China)
|
Abstract: This paper introduces the design and implementation of an electronic album,which applies the 51 MCU as the core control device,the SD card as the image storage device, and the TFT color screen as the display device.The SCM SPI interface is used to control the reading and writing on the SD card.By analyzing the data structure of .bin files stored in the SD card,the specific image files on the SD card is decoded and the display of the LCD is driven.Image display and the slideshow can be implemented through the keyboard control.In general,with its characteristics of small size and low cost,the home electronic album provides users with superior experience in viewing images to the traditional paper album. |
Keywords: MCS-51;TFT color screen;SD card;electronic album |