![]() |
Forum Index : Microcontroller and PC projects : OPTION RTC
Author | Message | ||||
thirsty Newbie ![]() Joined: 22/06/2016 Location: AustraliaPosts: 34 |
Hi All The above command is mentioned in the manual but it's not listed under the Commands section of the manual. I assume usage is OPTION RTC 23,32 or whatever pins are to be used for the clock. Is that correct? |
||||
Phil23 Guru ![]() Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
No Options are required for the RTC, it's all internal. It just connects to the I²C pins on the Micromite. 17 & 18 on the 28 Pin chip. See Pages 7 & 26. Cheers Phil. |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9590 |
Yes, just as Phil says, the MM takes care of all that for you. Just connect it up to the I2C port, and use the two RTC commands: RTC GETTIME and RTC SETTIME, and the MM will do all the work for you - can't get any easier then that! ![]() The MM will automatically use any compatible RTC chip including the DS1307, DS3231, DS3232, PCF8563 and M41T11 - plenty of choices. I recommend you use the DS3231 or DS3232, as they are very accurate. The 1307 is a bad choice these days with the 3231 or 3232 modules on eBay being so cheap - and you get an EEPROM on those modules too...... Smoke makes things work. When the smoke gets out, it stops! |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3282 |
OPTION RTC is only available on the Micromite Plus and is documented in the Micromite Plus Addendum page 47. Geoff (still overseas) Geoff Graham - http://geoffg.net |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9590 |
Hi Geoff. ![]() Having a nice time? Yes, that is a point - I was only thinking standard MM2, but if thirsty is using a MM+...... From the Advanced manual, page 47 as above: ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Hi Geoff, I hope you're enjoying yourself over here!!! Give me a ring if you get lost in the crowds. Paul Lepkowski in Wappingers Falls, NY |
||||
thirsty Newbie ![]() Joined: 22/06/2016 Location: AustraliaPosts: 34 |
Thanks guys, not sure how I missed that entry in the manual as I did a search but still missed it! I'm using a ds3231 module and the standard i2c interface currently and it just works! Very nice. |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3282 |
Having a fantastic time. I'm currently in Kalispell in Montana (Rocky Mountains country) and unfortunately will not be making it across to your side of the country. Next stop is Calgary in Canada. Geoff Geoff Graham - http://geoffg.net |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Geoff, Kalispell is pretty country. 3000' altitude, on the west side of the 7500' east range of the rockies, just east of the second 6500' range. US route 2 goes through there. US 2 is the northernmost east-west route but it is discontinuous. It runs from Houlton ME to Rouses Point NY, and then from Saint Ignace MI to Everett WA where the B747 aircraft is assembled. In the old US route system the even numbers run east-west, the odd numbers run north-south. Calgary Alberta is just about 200 miles due north of Kalispell, but it is on the east side of the east range of the rockies at about 3500' altitude so it is on the western edge of the prairie. The east range of the rockies are a little higher there at about 8500' altitude. Have a good time! If you get up above 6000' altitude don't exert yourself too much, the air can be a little thin up there for a lot of activity if you're used to sea level in Perth. On a normal flight the aircraft cabin won't get to more than 7000' and there you're just resting. Paul |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |