我用MPLABX和MCC设置了PIC,并设置了如图所示的RTCC…RTCC运行,我可以显示在我的LCD下面的代码…可能会在那里,但愚蠢的
论坛不会让我添加它见附件。TXT文件显示了在RTCC ISR代码中递增的半个SyxCube变量,除了它从不从零移动。很多人似乎对RTCC中断有问题。我想知道的是,当RTCC在第二个点时,我可以让LCD闪烁一个被设置的数字。有什么想法吗?
以上来自于百度翻译
以下为原文
I set up the PIC using MPLABX and MCC and set the RTCC as shown in picture... The RTCC runs and I can display on my LCD with following code... would have been there BUT STUPID FORUM WON'T LET ME ADD IT SEE ATTACHED .TXT FILE
Note the half_Sec_count variable that's incremented in the RTCC ISR code except that it never moves from zero.
void __attribute__ ( ( interrupt, no_auto_psv ) ) _ISR _RTCCInterrupt( void )
{
/* TODO : Add interrupt handling code */
half_Sec_count++;
// TM I think this is only called when an al
ARM is triggered but
// I think I've set the alarm to trigger every half second
IFS3bits.RTCIF = false;
}
A lot of people seem to have issues with the RTCC interrupt. What I want to do is know when the RTCC is at the half-second point so I can make the LCD blink a number that is being set.
Any ideas?
Attached Image(s)
Attachment(s)
codesnip.txt (3.02 KB) - downloaded 45 times