Discussion in "Project Addition or Changes" started by    Praneeth1299    Apr 10, 2018.
Tue Apr 10 2018, 09:16 AM

I'm generating constant frequency of 1hz and variable frequency from 1hz to 10hz frequencies, using lpc214x MCU, but not able to get the pwm output of 0.01hz frequency, and is it possible to measure the same frequency in oscilloscope?
Please suggest.

Thank you
Tue Apr 10 2018, 06:12 PM
The lpc214x has a 32-bit prescaler , so I would expect 0.01hz
to be possible, but very coarse.
What is it for ?

How close can you get, can you post your code ?

0.01hz gives a period of 100 seconds, a stopwatch would be more use than
an oscilloscope.

Fri Apr 27 2018, 11:38 AM
Sorry for the delayed response sir, Below is the code which generates 1hz constant frequency, please find the attached code of 1hz pwm generation.

That generates 1hz frequency using prescaler value, actually I need to generate 9.62hz
frequency, i'm getting 9.6hz now, but to generate 9.62hz I need resolution of 0.02, so I asked for 0.01hz pwm generation..

Thank you
Fri Apr 27 2018, 07:12 PM
The code did not attach.
Try zipping it first.
Sat Apr 28 2018, 06:30 AM
Please find the attached zip code.
Sat Apr 28 2018, 06:32 AM
Attached code main.c only..
Sat Apr 28 2018, 08:22 PM
Nice to see lots of comments.
It makes it much easier to understand the code.
Why are you setting the pre-scaler to 1mS ?
Choose a pre-scaler value that gives you the 0.01 Hz precision you want .
You could just leave it a 60MHz.

[ Edited Sat Apr 28 2018, 08:44 PM ]
Mon Apr 30 2018, 03:38 PM
Yes sir checking the frequency by setting the prescaler value for 0.01hz,
will try setting the value correctly again.

Thank you

Get Social


Powered by e107 Forum System


Wed May 12 2021, 03:37 AM
This article is actually a nice one it assists new the web people, who are wishing in favor of blogging. credit report https://creditreportsww.com



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 86, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123