store MPM address for later use
This commit is contained in:
parent
3f11ccdc06
commit
3aaa8f0925
3
main.c
3
main.c
@ -478,6 +478,9 @@ int main(void)
|
|||||||
UBRRH = (UART_CALC_BAUDRATE(BAUDRATE)>>8) & 0xFF;
|
UBRRH = (UART_CALC_BAUDRATE(BAUDRATE)>>8) & 0xFF;
|
||||||
UBRRL = (UART_CALC_BAUDRATE(BAUDRATE) & 0xFF);
|
UBRRL = (UART_CALC_BAUDRATE(BAUDRATE) & 0xFF);
|
||||||
|
|
||||||
|
/* store MPM address in TWI register for application */
|
||||||
|
TWAR = MPM_ADDRESS;
|
||||||
|
|
||||||
/* 11.354ms for 109 bits @9600 */
|
/* 11.354ms for 109 bits @9600 */
|
||||||
/* 946.18us for 109 bits @115200 */
|
/* 946.18us for 109 bits @115200 */
|
||||||
// uart_send("1234567890");
|
// uart_send("1234567890");
|
||||||
|
Loading…
Reference in New Issue
Block a user