RTC – Real Time Counter #include <hidef.h> /* for EnableInterrupts macro */ #include derivative.h /* include peripheral declarations */
{"Image DocumentName": "RTC \u2013 Real Time Counter#include <hidef.h> /  for EnableInterrupts macro  / #include derivative.h /  include peripheral declarations  /", "Image ImageDescription": "// macros e defini\u00e7\u00f5es. #define Desabilita_COP() SOPT1 &= 0x3F // desabilita COP. void main(void) { Desabilita_COP(); PTED = 0xFF; // desliga leds. PTEDD = 0xFF; // configura para saidas. // configura a Interru\u00e7\u00e3o de timer RTC. RTCSC = 0x1F; // 1 seg Interrup\u00e7\u00e3o habilitada. EnableInterrupts; /  enable interrupts  / for(;;) { } /  loop forever  / /  please make sure that you never leave main  / }", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}