Note: Check your email for the project code download Hardware notes SpecialĬare must be taken in placing the DS1307 and the crystal. Software notes Switchingīetween i/p & o/p to read analogue/drive display. (re-targettable to other PICs that have Analogue input AN0). DS1307 Specification Accuracy WatchĬompiler Mikroelectronika MikroC Compiler Free! Target 16F88 The other end goes to the SWQ/OUT pin of the DS1307. Or as in this circuit, an LED and 470R resistor are connected in series and to V+ at the SQW/OUT pin to see any output signal as it is an open drain output! In the same way as the I2C pins you need to add a pull-up to This is usually used to flash seconds so placing the LED To 1Hz and used to drive an LED that can be used as a back light for theĤx7-segment module (if you shine a light through the module you'll see the twoĬentral holes (like a colon character) that are between the left and right sets The last address 0x08 is the CONTROL address and it determines If the clock needs initialising and to store the upper year digit (for easier Note: Address 3f is used in this project as a check to see Read/write registers that store the following information: Address Register function 0 Seconds 0-59 1 Minutes 0-59 2 Hours 0-24,1-12 3 Day 1-7 4 Date 1-31 5 Month 1-12 6 Year 0-99 7 Control The DS1307 (RTC) Real Time Clock IC (an I2C RTC) is an 8 pinĭevice using an I2C interface (although theĭata sheet does not mention I2C to avoid royalty payments!). The RTC also makes the software easier as it takes care of allĬalendar functions accounting for leap years etc. This is because youĬan control the layout of the circuit more easily. Watch crystal a DS1307 is easier to use on a bread board. The project hasĪlso been updated to use the latest MikroC compiler.Īlthough the PIC16F88 has a built in oscillator for a 32kHz Is not used as it can only be an input - see detail below). This means it is easier toįigure out if the RA0-RA7 connections are correct when you wire it up (Note RA5 Pins and show the LEDs lit on the 7-segment display. Second is when pressing key 4 which will cycle through all the RA0-RA7 output (sometimes it is hard to figure that out by just looking at numbers!). Key 3 which will display an indication of what the current display is showing The first new mode is found when pressing There are also two additional modes one for information and one for the software loaded into the PIC (Note theĬompiler is free for <2k and currently the code uses about 1550 bytes). To find this page you probably mis-spelled the chip type.Īnyway you can find a DS1307 (RTC) Real Time Clock IC project and information on Note: If you typed DS1703 Real Time Clock This PIC project uses an I2C (or IIC) Real Time Clock IC (DS1307) and a fourĭigit seven segment display to create a standard desk clock. You get the benefit of a battery back up system that means it won't lose theĭata or time when you turn off main power. Length of each month or account for leap years. Use a helper chip such as a DS1307 because you do not need to keep track of the Making A Real Time Clock (RTC) is simple if you
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |