9 years, 10 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

Does it compile? Give an error message when you run it? How isn't it working?

posted by Erik - 05 Jul 2014

Yes 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 2014

Sure 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 2014

Confirmed, PwmOut works of the K64F Thank you,

Gerrit

posted by Gerrit Pathuis 06 Jul 2014

1 Answer

9 years, 10 months ago.

Hi there,

See PwmOut_K64F_Basic, this is a very basic PwmOut program

/media/uploads/GerritPathuis/main.cpp

and

/media/uploads/GerritPathuis/pwmout.jpg

The selected PwmOut pin is giving a 100 Hz, 50% duty cycle signal.

Thanks,

Gerrit


Assigned to Gerrit Pathuis 9 years, 10 months ago.

This means that the question has been accepted and is being worked on.