23 #include <p24FJ128GB106.h>
40 __builtin_write_RTCWEN(1);
41 asm volatile(
"bset _RCFGCAL, #13");
42 __builtin_write_RTCWEN(0);
71 RCFGCALbits.RTCPTR = 3;
87 RCFGCALbits.RTCEN = 1;
113 ALCFGRPTbits.ALRMPTR = 0;
114 ALCFGRPTbits.CHIME = 1;
130 ALCFGRPTbits.AMASK = 1;
131 ALCFGRPTbits.ARPT = 0xFF;
136 ALCFGRPTbits.ALRMEN = 1;
157 __builtin_write_OSCCONL(0x02);