Update freq for m328p

This commit is contained in:
matiasus 2022-12-11 14:23:32 +01:00
parent 2b2abd2c48
commit 17d0037fe1

View File

@ -39,10 +39,10 @@ void TWI_Init (void)
// TWBR = {(fcpu/fclk) - 16 } / (2*4^Prescaler) // TWBR = {(fcpu/fclk) - 16 } / (2*4^Prescaler)
// +++++++++++++++++++++++++++++++++++++++++++++ // +++++++++++++++++++++++++++++++++++++++++++++
// @param1 value of TWBR (m16) // @param1 value of TWBR (m16)
// fclk = 400kHz (m16); TWBR = 3 // fclk = 400kHz; TWBR = 3
// fclk = 100kHz (m16); TWBR = 20 // fclk = 100kHz; TWBR = 20
// @param1 value of TWBR (m328p) // @param1 value of TWBR (m328p)
// fclk = 400kHz (m16); TWBR = 2 // fclk = 400kHz; TWBR = 2
// @param2 value of Prescaler = 1 // @param2 value of Prescaler = 1
TWI_FREQ (2, 1); TWI_FREQ (2, 1);
} }