mcba_firmware icon indicating copy to clipboard operation
mcba_firmware copied to clipboard

PIC18F2680 firmware - timestamp correctness issue?

Open rox4d opened this issue 2 years ago • 0 comments

Hi, i have no experience with pic mcus, but after quick look at the PIC18F2680 firmware and datasheets, there are impression that "precise" part of timestamp are incorrect, as the same timer used for latching CAN message receive time and software interval counter. If i understand it correctly CPR1H and CCPR1H latch state of TMR1H and TMR1L at receiving CAN message, but TMR1 are used for software count 1ms interval in TimeStampLongISR, and content of TMR1H and TMR1L are modified by software every isr - it looks wrong.

rox4d avatar Apr 16 '22 06:04 rox4d