27 #include <p24FJ128GB106.h>
36 #include "outcompare.h"
48 unsigned char string[20] =
" ";
55 unsigned char testmsg1[] = {
" test mode 1.0 "};
56 unsigned char testmsg2[] = {
"Waiting for COMMands"};
60 _CONFIG1(JTAGEN_OFF & FWDTEN_OFF & ICS_PGx2)
61 _CONFIG2(FNOSC_PRIPLL & POSCMOD_HS& PLL_96MHZ_ON & PLLDIV_DIV2 & FCKSM_CSECMD)
82 CLKDIVbits.CPDIV0 = 1;
83 CLKDIVbits.CPDIV1 = 0;
118 iPPSInput(IN_FN_PPS_U2RX,IN_PIN_PPS_RP8);
119 iPPSOutput(OUT_PIN_PPS_RP9,OUT_FN_PPS_U2TX);
124 PPSOutput(PPS_RP21, PPS_OC1);
125 PPSOutput(PPS_RP22, PPS_OC2);
128 ConfigIntOC1(OC_INT_OFF);
129 ConfigIntOC2(OC_INT_OFF);
157 static unsigned int t1subsec = 0;
203 mRtcc_Clear_Intr_Status_Bit;