Skip to content
Programming Without Borders
All posts Search English News Korea About

Calculators

The sums the posts explain, worked out for your own numbers, with the lines of C to copy.

  • System clock and PLL fuses

    The five configuration fuses that set SYSCLK: an input clock, a divider, the PLL multiplier and an output divider.

  • UART baud rate

    The value for UxBRG from the peripheral bus clock and the baud rate you want, and how far off the real rate is.

  • SPI clock

    The value for SPIxBRG from the peripheral bus clock and the clock speed you want.

  • I2C bus speed

    The value for I2CxBRG from the peripheral bus clock and the bus speed, with the 104 ns delay the datasheet adds.

  • Timer period

    The period register and prescaler that make a timer fire a given number of times a second.

© 2018–2026 Aidan Mocke

Atom feed GitHub Calculators Registers Tags Built with Sculpin