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

shshistiem
Wed Sep 12 2018, 10:58 PM
hii!! some1 please let me know how i ll get rfid code to 8051 by WEIGAND mode
DrNossberg
Tue Sep 11 2018, 08:09 PM
is there anyone here?
Mon Aug 27 2018, 07:30 AM
bun
Hello everyone´╝ü
Sat Jul 21 2018, 06:21 AM
Dibakar Bhanja Chowdhury
By using a 555 timer how can I expand the range of the mobile phone jammer? Please reply me asap
Sun May 20 2018, 10:01 AM
justinb
how to write and execute a program that read the keypad button and display the number on 7 segment on intel8051 at89s52 in assembly language?
Thu May 17 2018, 06:36 AM
HAMZA TAJ
sir iwant to ask about controller of three phase supply by using back to back thyristor instead of triac....will u give me some guideline?
Sat Apr 28 2018, 12:54 PM
ashutosh jain
IR Remote Switch using TV remote (RC5 Protocol) is not working properly. opp1 & opp2 is in problem.plz help
ExperimenterUK
Fri Apr 27 2018, 08:09 PM
@kaiserslautern Post in forum
Wed Apr 25 2018, 07:09 AM
kaiserslautern
Hello everyone, using software uart is a very good idea for a second serial port. Thank you so much. I would kindly like to know how to connect this port to the PC?
ExperimenterUK
Sat Apr 21 2018, 07:50 PM
This is a community site. Feel free to help anyone needing advice

Downloads

Comments

PCBindex
Fri Sep 14 2018, 02:45 AM
sirkit
Thu Sep 13 2018, 04:46 AM
shshistiem
Wed Sep 12 2018, 10:36 PM
DrNossberg
Tue Sep 11 2018, 03:25 PM
ranjanvh
Thu Sep 06 2018, 02:28 PM
rbbhamre
Tue Sep 04 2018, 06:15 PM
Tressie
Sun Sep 02 2018, 02:20 PM
Sudhansudeep
Fri Aug 31 2018, 08:26 AM

Online

Guests: 49, Members: 0 ...

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

Members: 38006
Newest member: PCBindex
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 13 2018, 08:39 PM
First of all, by reading your reply, I abandoned m...
DrNossberg Avatar
Posted By DrNossberg
Thu Sep 13 2018, 03:49 PM
Hi, thanks you for your reply ^^ First of all, by ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Sep 12 2018, 12:12 AM
HiThere are several issues here.The original 8051 ...
DrNossberg Avatar
Posted By DrNossberg
Tue Sep 11 2018, 08:08 PM
Hello everybody!First of all let me explain some s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Sep 07 2018, 05:08 AM
The compiler thinks the micro doesn't have enough...
Sudhansudeep Avatar
Posted By Sudhansudeep
Fri Sep 07 2018, 02:59 AM
this is the build output message
Sudhansudeep Avatar
Posted By Sudhansudeep
Fri Sep 07 2018, 01:38 AM
Change the mobile number as [number removed] in t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 06 2018, 08:56 PM
I don't know what the problem is, I get no errors....
Sudhansudeep Avatar
Posted By Sudhansudeep
Thu Sep 06 2018, 01:12 PM
the code is Attachment ...
Sudhansudeep Avatar
Posted By Sudhansudeep
Thu Sep 06 2018, 12:48 PM
the code is same as u sent me for 16 chars