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

Prescaler support #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

astrand
Copy link

@astrand astrand commented May 29, 2020

Atlantis-Specialist-Technologies/CAN485#7 can be used to select a lower frequency in the IDE. Application code example:

void setup() {
    if(F_CPU == 8000000) clock_prescale_set(clock_div_2);
    canInit(500000);           
    Serial.begin(115200);
}

Also added TQ value, which documents the alternative used.
According to table "Examples of CAN Baud Rate Settings for Commonly
Frequencies" from data sheet.
We now have proper support for multiple frequencies.
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

Successfully merging this pull request may close these issues.

None yet

1 participant