From 8bd6197c02b3d0920519e5bcda0405281b682238 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 13 Mar 2024 14:54:53 +0100 Subject: [PATCH] spi timing --- displayDriver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/displayDriver.c b/displayDriver.c index 6012ac7..16607c5 100644 --- a/displayDriver.c +++ b/displayDriver.c @@ -33,7 +33,11 @@ void displayDriverInit() { UCB0CTL0 = UCMST; // SPI timing config 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; // BIT5: UCB0CLK