spi timing

This commit is contained in:
Wolfgang Hottgenroth 2024-03-13 14:54:53 +01:00
parent 19be1a6e48
commit 8bd6197c02

View File

@ -33,7 +33,11 @@ void displayDriverInit() {
UCB0CTL0 = UCMST; UCB0CTL0 = UCMST;
// SPI timing config // SPI timing config
UCB0CTL1 = UCSSEL_3; UCB0CTL1 = UCSSEL_3;
UCB0BR0 = 4; // 2 would be too fast and ends up with errors // Faster than 8 ends up in strange communication errors
// between the both MCUs.
// With 8 the transfer of a complete 110 pixel canvas takes
// about 720us.
UCB0BR0 = 8;
UCB0BR1 = 0; UCB0BR1 = 0;
// BIT5: UCB0CLK // BIT5: UCB0CLK