From 93f628a4c35f100ebc14b896b99f225dc07a6681 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 24 Feb 2019 14:32:30 +0100 Subject: PA11: Increase drive strength to 8mA It has been observed that the 20 MHz clock signal doesn't even remotely resemble a square shape unless DRVSTR=1 is set using this patch. Change-Id: I1366e13442eda829756aa4121be81eb15135c73e --- sysmoOCTSIM/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c index 09d766e..50e82c6 100644 --- a/sysmoOCTSIM/main.c +++ b/sysmoOCTSIM/main.c @@ -18,6 +18,7 @@ #include #include +#include #include "atmel_start.h" #include "atmel_start_pins.h" @@ -54,6 +55,10 @@ static void board_init() cache_init(); cache_enable(CMCC); + + /* increase drive strength of 20Mhz SIM clock output to 8mA + * (there are 8 inputs + traces to drive!) */ + hri_port_set_PINCFG_DRVSTR_bit(PORT, 0, 11); } int main(void) -- cgit v1.2.3