TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139268 times)
  2. FAT32 Library (71755 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47432 times)
  5. Network WiFi Library (43093 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28102 times)
  9. PID Library (26886 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Microchip MCP7940N RTC example

Rating:

0

Author: Larry Reisinger

Last Updated: 2012-06-28

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Timers (Real time clock)

Downloaded: 1967 times

Not followed.

License: MIT license  

This is too small to bother with a library, these are just some snippets of code that have been tested with a Microchip MCP7940N RTC.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Microchip MCP7940N RTC example" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Microchip MCP7940N RTC example" changes.

Do you want to report abuse regarding "Microchip MCP7940N RTC example".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

This is just a couple of example procedures that have been tested with the Microchip MCP7940N RTC chip. This is a very inexpensive I2C RTC with 64 bytes of NVRAM, and easy battery backup. 


*** Update *** 

Needless to say, the I2C module needs to be initialized before using these procedures, using I2Cx_init(). 

ALSO FROM THIS AUTHOR

Honeywell I2C pressure sensor

5

A simple function to read any Honeywell I2C pressure sensor. This function returns a 14-bit word, and the actual pressure depends on the range of the particular unit. The code can be fairly easily modified to also read device temperature and status bits if desired.

[Learn More]

Sitronix ST7565 LCD driver

5

Basic routines for Sitronix ST7565 series LCD driver with parallel interface This is used in many 128x64 COG units, and the DOGM modular system. This was developed and tested on PIC32, but should run directly on PIC24 and 18, and with slight modifications on AVR.

[Learn More]