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

Tue Nov 20 2018, 03:01 PM
Chana
online casino online casino casino games casino online play casino games online
Mon Nov 12 2018, 05:58 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, 02:36 PM
kindly any one give solution for my problem
ExperimenterUK
Mon Nov 05 2018, 09:48 PM
Pins high is the normal state. You need a program to set them low
mayengbam
Sun Nov 04 2018, 05:41 PM
hello, i am niranjoy, alll the port of my 8051 is always high, even i erase all the program. why is it so happen and what is the problem. any one please help me!
Sun Nov 04 2018, 02:16 PM
BASAVARAJ g kudamble
hi I am interfacing GSM 300 to 8051 microcontroller to receive message from mobile
ExperimenterUK
Sat Sep 29 2018, 06:28 PM
Please post questions in the forum.
Sat Sep 29 2018, 11:26 AM
Ashfaq Ch
hi i have some AT89C51RC microcontrollers already programed. some one help us to how to download from AT89C51RC and after study and edit all corractions reload to AT89C51RC controller
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?

Downloads

Comments

atalnet
Fri Nov 16 2018, 07:44 AM
genius784
Wed Nov 14 2018, 09:25 AM
katherineamt
Mon Nov 12 2018, 03:14 PM
wimac
Sun Nov 11 2018, 03:36 PM
suryanspn
Sat Nov 10 2018, 02:52 AM
RubenMarques
Tue Nov 06 2018, 06:35 PM
mayengbam
Sun Nov 04 2018, 05:36 PM
bgk3678
Sun Nov 04 2018, 02:27 PM

Online

Guests: 52, Members: 0 ...

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

Members: 38021
Newest member: atalnet
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 19 2018, 01:11 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Nov 15 2018, 06:48 PM
Unfortunately I have no experience of LabView,but ...
katherineamt Avatar
Posted By katherineamt
Mon Nov 12 2018, 03:22 PM
I have never used LabView and I have to implement ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 12 2018, 01:21 AM
wimac Avatar
Posted By wimac
Sun Nov 11 2018, 04:03 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 11 2018, 07:25 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 06 2018, 06:10 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:52 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:48 PM
Xuenan Avatar
Posted By Xuenan
Sat Nov 03 2018, 01:08 PM
Make the 8051 frequency exactly 11.0592 MHz in pro...