Skip to content

Serial.read() conflicts with FrequencyTimer2? #2

@i-make-robots

Description

@i-make-robots

I have a timer interrupt running at 1000us while the main loop is calling serial.read() and serial.print() to echo back what it receives. print() appears to work fine. Random characters are being dropped from the read(). If FQ2 is on timer2 and serial is on timer1, what's going on? How do I fix it? I'm considering adding a checksum to my serial.read() to see if that'll help.

I'm running on a Mega 2560, haven't tried it with uno or the other boards yet.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions