DS12C887 mempunyai 14 buah register yang terdiri dari 4 Register Kontrol dan 10 Register Data. Register Data sendiri terpisah menjadi register waktu dan Register Alarm sebagaimana ditunjukkan pada gambar 1. Setelah Register-register Kontrol diinisialisasi, maka data waktu ataupun alarm dapat dibaca atau ditulisi dengan cara mengakses register-register data yang bersangkutan.


Gambar 1. Pemetaan alamat pada RTC DS12C887

Register-register Kontrol

DS12C887 memiliki empat register kontrol yang bisa diakses sepanjang waktu, meskipun selama siklus pembaharuan (update cycle).

  • UIP : Bit ini digunakan untuk memantau Flag Update In Progress (UIP). Jika bit ini bernilai 1, maka Update Transfer akan segera muncul, namun bila bit ini bernilai 0, maka Update transfer hanya akan muncul setelah 244 uDetik kemudian.
  • DV0, DV1, DV2 : Ketiga bit ini berfungsi untuk mengatur osilator ON atau OFF, dan me-RESET hitung mundur. Kofigurasi 010 digunakan untuk mengatur osilator ON, konfigurasi 11x digunakan untuk mengatur agar perhitungan mundur ditahan.
  • RS0, RS1, RS2 dan RS3 : Bit-bit ini digunakan untuk memilih 15 tingkat pembagi frekwensi yang dapat digunakan untuk membangkitkan sinyal luaran pada pin SQW atau Interupsi periodik. Tabel berikut menunjukkan berbagai macam kemungkinan frekuensi luaran SQW dan laju Interupsi Peiodik berdasar nilai-nilai RS0, RS1, RS2, dan RS3.

  • SET : Apabila bit ini bernilai 0, maka register data dapat diupdate setiap detiknya, namun apabila bit ini bernilai 1, maka register data tidak dapat diupdate. Bit ini tidak akan berpengaruh terhadap kondisi RESET.
  • PIE : Periodic Interrupt Enable, merupakan sebuah bit baca/tulis yang membolehkan bit PF atau Periodic Interrupt Flag pada Register C meng-nol-kan pin luaran IRQ. Jika PIE = 1, maka interupsi periodik akan dihasilkan dengan meng-nol-kan pin luaran IRQ dengan laju yang ditentukan oleh RS0 s/d RS2 (lihat penjelasan sebelumnya).
  • AIE : Alarm Interrupt Enable, bit yang membuat bit Alarm Flag dapat membangkitkan kondisi LOW pada pin IRQ. Kondisi RESET akan mengubah bit ini menjadi clear atau bernilai 0.
  • UIE : Update Ended Interrupt Enable, bit yang membuat bit Update End Flag (UF) dapat membangkitkan kondisi LOW pada pin IRQ. Kondisi RESET atau logika 1 pada bit SET akan membuat bit ini berubah menjadi clear (bernilai 0).
  • SQWE : Apabila bit ini bernilai 1, maka gelombang kotak dengan frekwensi yang ditentukan oleh pembagi frekwensi pada RS0 s/d RS3 akan dihasilakn melalui pin SQW.
  • DM : DM = 1 untuk mode binary dan DM = 0 untuk data BCD pada Register Data.
  • 24/12: Apabila bit ini bernilai 1, maka waktu berjalan berdasarkan 24 jam dan sebaliknya bila bit ini bernilai 0, maka waktu berjalan berdasarkan 12 jam.
  • DSE : Daylight Saving Enable, apabila bit ini bernilai 1, maka akan terjadi proses update pada saat 1:59:59 AM menjadi 3:00:00 AM pada Hari Minggu pertama bulan April dan saat 1:59:59 AM menjadi 1:00:00 AM pada Hari Minggu terakhir Bulan Oktober.

  • IRQF : Interrupt Request Flag, bit ini akan bernilai 1 apabila salah satu dari bit PF, AF dan UF juga bernilai 1.
  • PF : Periodic Interrupt Flag, bit ini akan bernilai 1 secara periodik (tergantung bit RS0 s/d RS3). Apabila bit PIE aktif, maka kondisi SET pada bit PF akan membangkitkan kondisi LOW pada pin IRQ. Bit ini akan bernilai 0 saat pembacaan pada Register C atau kondisi RESET.
  • AF : Alarm Interrupt Flag, bit ini akan bernilai 1 saat waktu sekarang cocok dengan waktu yang diatur pada alarm. Apabila bit AIE aktif, maka kondisi SET pada bit AF akan membangkitkan kondisi LOW pada pin IRQ. Bit ini akan bernilai 0 saat pembacaan pada Register C atau kondisi RESET.
  • UF: Update Ended Interrupt Flag, bit ini siklus update. Apabila bit UIE aktif maka kondisi SET pada bit ini akan membangkitkan kondisi LOW pada pin IRQ. Bit ini akan bernilai 0 (Clear) saat pembacaan pada Register C atau kondisi RESET

  • VRT: Bit The Valid RAM and Time ini merupakan indikator kondisi baterai yang terhubungkan ke pin Vbat. Bit ini tidak bisa ditulisi, dan seharusnya bernilai 1 terus saat dibaca. Jika terjadi nilai 0, artinya terjadi pelemahan arus/tegangan pada baterai, dan simpanan data RTC dan RAM menjadi dipertanyakan. Bit ini tidak dipengaruhi RESET.

Links:

  • RTC DS12C887: Pendahuluan (klik)
  • RTC DS12C887: Register Data dan Kontrol (klik)
  • RTC DS12C887: Contoh Aplikasi (klik)

Tags: , ,

52 Responses to “RTC DS12C887: Register Data & Register Kontrol”

  1. thank u for sharing

  2. sangat bermanfaat

  3. thank you for sharing it’s so helpful

  4. There is definately a great deal to know about this subject. I like all the points you made.

  5. This ad spot just written to pick up understanding before I withdraw (sorry no tweet) into my shell hacked adobe assembled caravansary burrow ing excitedly for incredible expectation! chow…bye…adieu

  6. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.

  7. This article is very interested, Thank you for sharing it is very useful.

  8. I read your article, it’s one of the best post, interesting and very useful. Thank you For sharing this post, I really appreciate your work.

  9. Vastu Shastra In Hindi

    Vastu Shastra in Hindi, Vastu and astrology, Feng Shui and Vastu, Astro Hindi, Hindi guides Astro, Astro Hindi tips, young, special, Astrology, Horoscope, Hindi …

  10. Game Killer v6.01 is best game hacking app with or no root access required to run, download gamekiller app from this official website.

  11. its good thing to share, thank you.

  12. Get free holiday tickets to Bali 3 days 2 nights by attending the event from my official website game poker

  13. This was a great post. what you said is really helpful to me and it was really interesting as well. Keep up with your good work.

  14. office.com/setup - Learn how to download, install, activate, and uninstall Microsoft Office Setup on Mac and Windows. Activate your 25 character alphanumeric product key for Office 365, 2019, 2016, 2013, 2010, or Office 2007 at http://www.Office.com/setup.

  15. all kind information visit here

  16. Download latest version of GTA San Andreas APK for Android for free, including GTA San Andreas MOD APK with unlimited money in a highly …

  17. I am grateful to the owner of this site which really shares this wonderful work of this site.That is actually great and useful information.I’m satisfied with just sharing this useful information with us. Please keep it up to date like this.Thank you for sharing..

  18. I think this is one of the best blog for me because this is really helpful for me. Thanks for sharing this valuable information for free

  19. Nice information. Thanks for sharing this informative blog with us. I really need this type of blog and I’m so lucky to found this.

  20. hey! guess what? i just finally watch this movie. and, it was so damn good… i heard george clooney and his colony were playin at this movie also.
    check it out https://carapasangtogelterpercaya.blogspot.com/p/blog-page.html

  21. It is very informative there is no doubt about it. I found this one pretty fascinating and it should go into my Collection. Very good work!

  22. thanks for info join my web..domino bet

  23. this website is really amazing, what a great job!

  24. let me share this to my friends so they can check this out too

  25. never seen a great website like this before

  26. For safe, secure and fast packing and moving experience, visit Goyal Packers and Movers in Chandigarh. We deal with various packing and moving services in the areas of Chandigarh at very reasonable rates. We have expert team of professionals who have great experience in relocation process.

  27. We are happy for all those people who think that it’s not easy to do love marriage; don’t worry! Our love problem solution baba ji in Delhi is here to help you out.

  28. Are you ready to be the best packers and movers in Noida? Let us host your business on the best platform for profitable journey ahead. Just click on click track india

  29. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.
    norton.com/setup

  30. ini website yang sangat berkualitas dan memberikan informasi terbaik

  31. hi yuk bergabung bersama kami…. mobapoker

  32. thanks for info join my web.. domino bet

  33. I want permission, I want to be big and promote my website, don’t forget to join us.. iramapoker

  34. How do i get more information about this? do you have newsletter feed to follow up by email?

  35. Web Ocean Design is the best IT services provider for complete mobile and web application development. The young development company based in Bihar, India, owned and managed by Vicky who have a good amount of experience in Information Technology, Management and other related fields. We provide technical and creative services ranging from Internet Marketing to Communication maneuver. We are also skilled in website development which includes brand promotion, web designing and software development.

  36. Geek Squad Scheduling allows the customers to schedule the repairs of gadgets and equipment. We give arrangements for the scheduled repairs on time. Call on our toll-free number to Schedule Geek Squad Appointment

  37. Bathmate Hydromax claims to be a more organic and safer way associated with increasing penis size because it is compared to other items and methods out there today. Bathmates have the potential to be an effective supplementary male tube that uses water to help increase penis dimensions.

  38. hello sir,
    thanks for giving that type of information. Really enjoyed this blog post. Really looking forward to reading more. Much obliged.

  39. Web Ocean Design Provide multiple services. We build great Softwares. We do Customized Software Development, Web Designing, Mobile Applications, Social Media Marketing, Internet/Intranet Applications, Search Engine Optimization (SEO), e-Commerce Applications, Graphic Designing.
    http://www.weboceandesign.com

  40. Thank you for sharing valuable information. Nice post. I enjoyed reading this post…

  41. I want to say that this post is awesome, nice written.

  42. great blog.thank you for such information which usefull to me lot. webdesign

  43. Though Webroot Setup process is easy, technical difficulties always arise and that happens without any notice. And this is the problem generating that quickly any problems occurs and now where to gain the answer. Visit http://www.webroot.com/safe

  44. You can get support from webroot.com/safe, if your product is under warranty but if your product is not under warranty then you can get support from any third party support provider just like us.

  45. terriffic content!!

  46. great site!!

  47. wow!! wonderfull

Trackbacks/Pingbacks

  1. RTC DS12C887: Pendahuluan
  2. RTC DS12C887: Contoh Aplikasi
  3. Tutorial AT89: RTC DS1307 (64 x 8 Serial Real-Time Clock)
  4. ORGANISASI DAN ARSITEKTUR KOMPLEKS Pertemuan ke 2 | muhammadfreeza
  5. Memulai Belajar Mikrokontroler - Quick, Easy and Harmless! | DSP & Embedded Electronics

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>