Skip to content
Snippets Groups Projects
Commit a2694b92 authored by anttib-5's avatar anttib-5
Browse files

bare7_2

parent 5ce25296
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,8 @@ fn main() -> ! { ...@@ -33,7 +33,8 @@ fn main() -> ! {
let rcc = p.RCC.constrain(); let rcc = p.RCC.constrain();
// 16 MHz (default, all clocks) // 16 MHz (default, all clocks)
let clocks = rcc.cfgr.freeze(); //let clocks = rcc.cfgr.freeze();
let clocks = rcc.cfgr.sysclk(84.mhz()).pclk1(42.mhz()).pclk2(64.mhz()).freeze();
let gpioa = p.GPIOA.split(); let gpioa = p.GPIOA.split();
...@@ -49,6 +50,9 @@ fn main() -> ! { ...@@ -49,6 +50,9 @@ fn main() -> ! {
) )
.unwrap(); .unwrap();
let gpioc = p.GPIOC.split();
gpioc.pc9.into_alternate_af0().set_speed(hal::gpio::Speed::VeryHigh);
// Separate out the sender and receiver of the serial port // Separate out the sender and receiver of the serial port
let (mut tx, mut rx) = serial.split(); let (mut tx, mut rx) = serial.split();
...@@ -145,15 +149,15 @@ fn main() -> ! { ...@@ -145,15 +149,15 @@ fn main() -> ! {
// //
// What is the frequency of MCO2 read by the oscilloscope. // What is the frequency of MCO2 read by the oscilloscope.
// //
// ** your answer here ** // 84Mhz
// //
// Compute the value of SYSCLK based on the oscilloscope reading. // Compute the value of SYSCLK based on the oscilloscope reading.
// //
// ** your answer here ** // 84Mhz
// //
// What is the peak to peak reading of the signal. // What is the peak to peak reading of the signal.
// //
// ** your answer here ** // 7.8V
// //
// Make a screen dump or photo of the oscilloscope output. // Make a screen dump or photo of the oscilloscope output.
// Save the the picture as "bare_6_84mhz_high_speed" // Save the the picture as "bare_6_84mhz_high_speed"
......
pictures/bare_7_84mhz_high_speed.png

26.2 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment