摘要
将时钟芯片DS1302应用于温室CO2增施控制器中,提出一种利用其内部RAM存储数据的方法,在其内部RAM地址与时间之间建立一种映射关系,根据这种关系,存储数据时不需要保存相应的时间;在读取数据时,可以根据映射关系将数据与其相应的时间计算出来传递给用户。对CO2浓度数值进行编码压缩后再进行存储。这些措施提高了DS1302内部RAM的利用效率,可存储更多数据。这种方法可推广到其他按一定时间间隔保存小容量数据的场合。
DS1302 is applied in a greenhouse CO~ enrichment controller and its internal RAM is used to store data. A mapping relation between address of RAM and time is set up,according to the relation,time needn't to he preserved to store data. When data in RAM is read,hours and minutes when these data is saved could be figured out and passed to users. Data of CO2 concentration is coded and compressed before it is saved to RAM. All the above techniques improve the availability of RAM in DS1302, s6 more data can be stored in it. This method could be extended to similar application when few data need to be saved in fixed time interval.
出处
《现代电子技术》
2008年第24期140-142,共3页
Modern Electronics Technique
基金
徐州市科技发展基金资助项目(X20060096)
徐州工程学院科研基金重点资助项目(200502)