Skip to content
Snippets Groups Projects
Commit 7f2f60fd authored by Ridge's avatar Ridge
Browse files

bare7_2

parent 0ee1312d
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,9 @@ fn main() -> ! { ...@@ -33,7 +33,9 @@ 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()).hclk(84.mhz()).pclk1(42.mhz()).pclk2(64.mhz()).freeze();
let gpioa = p.GPIOA.split(); let gpioa = p.GPIOA.split();
...@@ -49,6 +51,9 @@ fn main() -> ! { ...@@ -49,6 +51,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 +150,15 @@ fn main() -> ! { ...@@ -145,15 +150,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 ** // 85 MHz
// //
// Compute the value of SYSCLK based on the oscilloscope reading. // Compute the value of SYSCLK based on the oscilloscope reading.
// //
// ** your answer here ** // Sysclk was set to 84 MHz
// //
// What is the peak to peak reading of the signal. // What is the peak to peak reading of the signal.
// //
// ** your answer here ** // 7.8 V
// //
// 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