From 7a039b58dcdf6256c9a12e0d89961f6d9bb5cbcd Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 10 Nov 2025 18:28:59 -0500 Subject: increase spi clock rate to 3MHz --- fw/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fw/spi.c b/fw/spi.c index 69bdec6..33f0b63 100644 --- a/fw/spi.c +++ b/fw/spi.c @@ -16,7 +16,7 @@ spiInit(void) { TRISB6 = OUT; // SCK SSPSTAT = 0x40; // CKE=1 - SSPCON1 = 0x22; // FOSC/64 => 750kHz SPI clock + SSPCON1 = 0x21; // FOSC/16 => 3MHz SPI clock junk = SSPBUF; // dummy read to clear BF (void)junk; } -- cgit v1.2.3