RTCVAL = _time_chk.prt11; // set year RTCVAL = _time_chk.prt10; // set month:day RTCVAL = _time_chk.prt01; // set week:hour RTCVAL = _time_chk.prt00; // set min:sec
RTCCFGbits.RTCWREN =0 ; //lock the RTCC
} 可是出現 user\user.c:1049:Error [1105] symbol 'PTCVAL' has not been defined 而且//RTCCFGbits.RTCPTR =3 ;也不能用 一定要改成 RTCCFGbits.RTCPTR0=1; RTCCFGbits.RTCPTR1=1; 才可以complier,請問我是哪裡錯了 還是說有什麼要include 我是使用PIC18F46J50