所需E币: 4
时间: 2020-1-9 16:00
大小: 147.92KB
PIC16F628SPI接口應用ApplicationNote2361InterfacinganSPI-InterfaceRTCwithaPICMicrocontrollerwww.maxim-ic.comPINCONFIGURATIONTOPVIEWVCC2VBATX1X2N.C.INT0INT1GND12344567816VCC1DallasSemiconductorDS130515PF1413VCCIFSDO12SDI11SCLK10CE9SERMODEDESCRIPTIONTheDS1305real-timeclock(RTC)canbeinterfacedwithamicrocontroller(mC)usinga3-wireoranSPIinterface.ThisapplicationnoteshowshowtoconnectaDS1305toaPIC16F628mC.TheDS1306couldalsobeusedinthisapplication.Thecircuitusesaserialinterfaceforcommunications.AterminalprogramwithusercontroloftheRS232DTRcontrollineisrequired.DTRisusedtoresetthemCandstartcodeexecution.ADS232isusedtoperformTTL/RS232leveltranslation.Aschematicofthecircuitissho……