Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 months ago.
Switch Science mbed LPC824 のPWMについて
質問させていただきます。 Switch Science mbed LPC824 にてモーターを制御しようとPWMを出力したのですが、name.write(0.0); に指定してもPWMがゼロ(GNDレベル)にならず、1usだけHIになってしまいます(画像を参照願います) /media/uploads/makosky/ds0004.bmp なにか設定がおかしいでしょうか?よろしくお願いします。
使用ソース
ここから------------
- include "mbed.h"
PwmOut pwm1(dp7); PwmOut pwm2(dp10);
int main() { pwm1.period_us(50); pwm1.write(0.0); pwm2.period_us(50); pwm1.write(0.5);
while(1)
{
wait(1);
}
}
ここまで------------
1 Answer
Assigned to
8 years, 11 months ago.This means that the question has been accepted and is being worked on.