TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 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 (136957 times)
  2. FAT32 Library (70080 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46338 times)
  5. Network WiFi Library (41958 times)
  6. FT800 Library (41266 times)
  7. GSM click (29051 times)
  8. mikroSDK (26480 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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

Watchdog & RTC-example

Rating:

0

Author: Francis Verhelst

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Internal MCU modules

Downloaded: 1089 times

Followed by: 3 users

License: MIT license  

A small program, to demonstrate use of watchdog on a pic 32.
At program start RTC is started + necessary inits.
It then goes in an endless loop, where the watchdog keeps microcontroller in sleep mode, until a second has passed. The routine then starts all over.
Has to be loaded with microprog. Don't use or combine with Mikrobootloader.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Watchdog & RTC-example" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Watchdog & RTC-example" changes.

Do you want to report abuse regarding "Watchdog & RTC-example".

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

Example Blog

Hi, if this code helps you out, i'm always glad to know about it :)

RELATED CODES

Internal EEPROM

0

Write to, and retrieving from PIC micro-controller's internal EEPROM

[Learn More]

I2c non blocking

10

Replacement routines for I2c1_Rd and I2c1_Wr but here with timeout, so no blocking any more when a device one tries to access is not present. The mE I2c library is still needed for the remaining I2c routines. Implemented also the code for controllers with 2 I2c's (e.g. P18F27K40).

[Learn More]

I2C without blocking issue

5

the original I2C library from mikroe is working fine if all the devices are connected but if any device is missed from the i2c line or not respond or wrong address sent then the library freeze the code and hang the processor. to overcome this problem we can use this code which uses GPIO for I2C communication.

[Learn More]