Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIC18F2680 firmware - timestamp correctness issue? #1

Open
rox4d opened this issue Apr 16, 2022 · 0 comments
Open

PIC18F2680 firmware - timestamp correctness issue? #1

rox4d opened this issue Apr 16, 2022 · 0 comments

Comments

@rox4d
Copy link

rox4d commented Apr 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant