Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Nucleo_pwm by
Diff: main.cpp
- Revision:
- 2:004873c585fe
- Parent:
- 1:b11267086278
--- a/main.cpp Thu Mar 09 06:59:28 2017 +0000
+++ b/main.cpp Thu Mar 09 07:42:10 2017 +0000
@@ -13,10 +13,16 @@
Ipwm.period(0.0001); //10KHz
Ipwm.pulsewidth(0.000001); //Duty rate: 1%, Duty rate는 1% 이하로 설정이 안됨.
- printf("pwm set to %.2f %%\n", mypwm.read() * 100);
-
+ printf("CPU SystemCoreClock is %d Hz\r\n", SystemCoreClock);
+ printf("Ipwm set to %.2f %%\r\n", Ipwm.read() * 100);
+ printf("mypwm set to %.2f %%\r\n", mypwm.read() * 100);
while(1) {
myled = !myled;
wait(1);
}
}
+
+
+//Nucleo의 경우 U2에서 외부 클럭을 감지하여 L053에 외부 클럭입력을 설정함.
+//실 사용에서는 직접 클럭 설정을 하여야 함.
+//cubeMx의 도움을 받아야 할 듯.
\ No newline at end of file
