Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

generation of pwm with varying dutycyle at different time using rtc12877 and 8051

Status
Not open for further replies.

smartkirankumar

Newbie level 5
Joined
Jan 5, 2011
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
can anybody help me out in writing a code for generating pwm of different dutycycle at different times using rtc ds12877 and 8051?
 

I have that code in verilog. I haven't worked with rtc12877 and 8051.
 

Start with searching for threads on 8051 and ds12887 ..
Here is just one example:
https://www.edaboard.com/threads/105426/

In other posts you may find examples of codes on how to set up the RTC and how to read the current time ..
Once you have the time you may add code that generates PWM ..

IanP
:wink:
\oint
 

i am not getting how to read the time and generate pwm according to that time..
can u gimme an example for that plz....
 

hi,
anybody gimme a code for generating a pulse with different widths at different times....................
plz, i need this very urgently.i have connected a zero crossing detector to int1 pin.
i wil be waiting for ur reply...
 

hi data sheet is thier reffer it
here they are mentioned which memory to read
Xttp://datasheets.maxim-ic.com/en/ds/DS12885-DS12C887A.pdf
 

hi,
thanks for ur concern for replying me.....
can u plz give me an example of that type of code.....
 

include header and define P1 as output,

void main()
{
int a=0;b=1000;
while{
for(i=0;i<1000;i++)
{
if(i<500)
{a=a+5;b=b-5;}
if(i<500)
{a=a-5;b=b+5;}
output=0x01;
delay(a);
output=0x00;
delay(b);
}}

what the program basically does is;it increases the 'on time' from zero to 100% and then decreases it from 100% to 0;to check the working,connect an led to the output pin and you can see it become dull and bright again and it loops infinitely.
 

thanks a lot.....
but i require time as reference....
that is it must be 100% dutycycle at 6o clock,90 % at 7o clock.....ans so on....
kind gimme a code for this
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top