store MPM address for later use

This commit is contained in:
Olaf Rempel 2012-02-11 12:31:50 +01:00
parent 3f11ccdc06
commit 3aaa8f0925

3
main.c
View File

@ -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");