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

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
#2
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
#3
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
#4
The code did not attach.
Try zipping it first.
Sat Apr 28 2018, 06:30 AM
#5
Please find the attached zip code.
Attachment
Sat Apr 28 2018, 06:32 AM
#6
Attached code main.c only..
Attachment
Sat Apr 28 2018, 08:22 PM
#7
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
#8
Yes sir checking the frequency by setting the prescaler value for 0.01hz,
will try setting the value correctly again.

Thank you

Get Social

Information

Powered by e107 Forum System

Conversation

ExperimenterUK
Mon Jan 07 2019, 09:01 AM
@REVOCATUS please post in the AVR forum
Mon Dec 24 2018, 02:55 PM
REVOCATUS MATEMU
sorry I mean referee boards for player substitution
Mon Dec 24 2018, 02:54 PM
REVOCATUS MATEMU
hi am.looking how to build referee by using Atmega 328 and its codes
Sat Dec 15 2018, 07:15 PM
Arslan ayoub
Hii ,, can I get the simulation of numeric keypad lock on proteus
ExperimenterUK
Mon Dec 03 2018, 10:47 PM
Please post questions in the forum. The chat box is for chat
Mon Dec 03 2018, 12:13 PM
help!me!
help! I don't understand busy flag!
Mon Dec 03 2018, 01:31 AM
ile
hello
Mon Nov 12 2018, 11:28 AM
Pavan_user
i have seen your replica of I2C programming using AT89C51 but i am unable to understand the "ack_bit" variable usage ...looks like it is always 1...can you elaborate how acknowledgment is working....
bgk3678
Tue Nov 06 2018, 08:06 PM
kindly any one give solution for my problem
ExperimenterUK
Tue Nov 06 2018, 03:18 AM
Pins high is the normal state. You need a program to set them low

Downloads

Comments

garfield0929
Sun Jan 20 2019, 12:48 AM
servprov
Thu Jan 17 2019, 06:44 AM
marcomilazzo
Wed Jan 16 2019, 04:21 PM
sandhyashree
Wed Jan 16 2019, 04:04 PM
SONACHAI1234
Sun Jan 06 2019, 08:14 AM
manan.gulyaani
Tue Jan 01 2019, 07:58 AM
etech
Sun Dec 30 2018, 07:44 PM
NeilC
Sun Dec 23 2018, 07:39 PM

Online

Guests: 34, Members: 0 ...

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

Members: 38039
Newest member: garfield0929
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Jan 06 2019, 10:37 PM
Which 8051 chip are you using ?
SONACHAI1234 Avatar
Posted By SONACHAI1234
Sun Jan 06 2019, 08:21 AM
Hi,By mistakenly i burn rx program in my 8051 micr...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Dec 19 2018, 06:27 PM
Nobody knows?sifirsekizThe problem is that you are...
sifirsekiz Avatar
Posted By sifirsekiz
Wed Dec 19 2018, 12:15 PM
sifirsekiz Avatar
Posted By sifirsekiz
Sun Dec 16 2018, 11:13 PM
Guys pleaseeeee :((
sifirsekiz Avatar
Posted By sifirsekiz
Sat Dec 15 2018, 07:09 PM
HiThe pulse-sensor-amped has an analogue output.Th...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Dec 15 2018, 07:01 PM
HiThe pulse-sensor-amped has an analogue output.Th...
sifirsekiz Avatar
Posted By sifirsekiz
Sat Dec 15 2018, 09:02 AM
and ı have pulse sensor one out but anolog use 805...
sifirsekiz Avatar
Posted By sifirsekiz
Sat Dec 15 2018, 08:56 AM
HiMembers can supply code and diagrams if they wan...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Dec 14 2018, 11:54 PM
HiMembers can supply code and diagrams if they wan...