jreimers / tiva-can-bus

Talking between two Tiva C Series microcontrollers via CAN bus
MIT License
13 stars 12 forks source link

Clock Settings #1

Closed CCommander closed 9 years ago

CCommander commented 9 years ago

The code sets the clock rate to 50 MHz. Comment says, that the clock should be set to 80 MHz.

80 MHz would be: SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN);

jreimers commented 9 years ago

Good catch, thanks for pointing it out. I have updated the code. Everything still seems to work as expected.

CCommander commented 9 years ago

But there is one problem rising up now: The last Tivaware has a bug in SysCtlClockGet(). If you set the clock to 80 MHz SysCtlClockGet returns 66666666 or something like that.

jreimers commented 9 years ago

That would probably explain why I had it at 50MHz originally. http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/343830

I will revert back to 50MHz until TI releases a new version of TivaWare, it's been almost a year since the last release.