Junio Avelinor
Newbie level 1
- Joined
- Mar 15, 2015
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 10
1)Hi. Good Morning, I'm having many doubts to generate a SQUARE wave with DUTY-CYCLE of N% on 8051.
1.1)I don't know but, to generate 50% is easy, but 66% or 78% is not.
2)The problems are in CALCULUS and The CODE in ASSEMBLY.
3)Some codes uses Interrupt, others not.
4) I also like to create a control like below, BUT I do not understand the principles.
duty cycle = Ton / Ton + Toff
duty cycle = 1s / 1s + 3s = 1s / 4s = 0.25
5) Are These informations enough to program the code ?
//ASSUME DUTY CYCLE 70%
//Crystal 12MHZ CLOCK.
//USE TIMERS
//CHECK OUT PUT IN P3.2
6) PLEASE COMMENT THE CODE
7) THANKS FOR YOUR HELP, GOD BLESS YOU
1.1)I don't know but, to generate 50% is easy, but 66% or 78% is not.
2)The problems are in CALCULUS and The CODE in ASSEMBLY.
3)Some codes uses Interrupt, others not.
4) I also like to create a control like below, BUT I do not understand the principles.
duty cycle = Ton / Ton + Toff
duty cycle = 1s / 1s + 3s = 1s / 4s = 0.25
5) Are These informations enough to program the code ?
//ASSUME DUTY CYCLE 70%
//Crystal 12MHZ CLOCK.
//USE TIMERS
//CHECK OUT PUT IN P3.2
6) PLEASE COMMENT THE CODE
7) THANKS FOR YOUR HELP, GOD BLESS YOU