diff --git a/examples/bare6.rs b/examples/bare6.rs index 8dfe0853f2d91270ebb7516a5a6b68fc09f99432..e826da51516b8676f1b7030a7a03f79508d9ea74 100644 --- a/examples/bare6.rs +++ b/examples/bare6.rs @@ -50,8 +50,8 @@ fn idle(stim: &mut Stim, rcc: RCC, gpioa: GPIOA) { // at 16 Mhz, 8_000_000 cycles = period 0.5s // at 64 Mhz, 4*8_000_000 cycles = period 0.5s - // let cycles = 8_000_000; - let cycles = 4 * 8_000_000; + let cycles = 8_000_000; + //let cycles = 4 * 8_000_000; loop { iprintln!(stim, "on {}", DWT::get_cycle_count()); @@ -128,7 +128,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // // What is the frequency of blinking? // -// ** About 0.5Hz ** +// ** 1Hz ** // // commit your answers (bare6_1) // @@ -137,15 +137,15 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // // What is the frequency of MCO2 read by the oscilloscope? // -// ** your answer here ** +// ** 4MHz ** // // Compute the value of SYSCLK based on the oscilloscope reading // -// ** your answer here ** +// ** 4 * 4 (MCOPRE) = 16MHz ** // // What is the peak to peak reading of the signal? // -// ** your answer here ** +// ** 8.4V ** // // Make a folder called "pictures" in your git project. // Make a screen dump or photo of the oscilloscope output. diff --git a/pictures/bare_6_16mhz_high_speed.jpg b/pictures/bare_6_16mhz_high_speed.jpg new file mode 100755 index 0000000000000000000000000000000000000000..fd3330317610b1ff6609ccf595ca6873f59a141d Binary files /dev/null and b/pictures/bare_6_16mhz_high_speed.jpg differ