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.
10 years, 5 months ago.
PwmOut implemented on the K64F ?
Hi,
Is PwmOut implemented on the K64F ??
See
/media/uploads/GerritPathuis/main.cpp
Used a wire to connect PwmOut(PTA0) and PwmIn(PTD1) and the mbed PwmIn Library to read the pulsewidth Cannot get it to work.
Thanks, Gerrit
1 Answer
10 years, 5 months ago.
Hi there,
See PwmOut_K64F_Basic, this is a very basic PwmOut program
/media/uploads/GerritPathuis/main.cpp
and
The selected PwmOut pin is giving a 100 Hz, 50% duty cycle signal.
Thanks,
Gerrit
Assigned to
10 years, 5 months ago.This means that the question has been accepted and is being worked on.
Does it compile? Give an error message when you run it? How isn't it working?
posted by Erik - 05 Jul 2014Yes it compiles and runs. It gives via Tera Term: period= 0.000000, pulsewidth= 0.000000, duty cycle= nan. My thoughts are that PwmOut is not working.
Thanks
posted by Gerrit Pathuis 05 Jul 2014Sure you got the correct pins? And you can simply make some pulses by connecting the wire to ground/VDD to verify PwmIn is working.
posted by Erik - 05 Jul 2014Confirmed, PwmOut works of the K64F Thank you,
Gerrit
posted by Gerrit Pathuis 06 Jul 2014