??? 01/13/06 15:29 Read: times |
#107301 - example 500hz and 10 khz square wave Responding to: ???'s previous message |
i send two examples...
but i dont relate various frequency and this program... TO GENERATE SQUARE WAVE OF 500 Hz USING TIMER 1 MODE 1 mov tmod,#10h ;timer 1, mode 1 start: mov th1,#0fch ;load the count to t1 mov tl1,#68h cpl p1.0 ;compliment output setb tr1 ;start timer back: jnb tf1,back ;check timer 1 overflow flag clr tf1 sjmp start TO GENERATE SQUARE WAVE OF 10K Hz USING TIMER 1 MODE 2 mov tmod,#20h ;timer 1,mode 2 mov th1,#210 ;load the count setb tr1 ;start timer back: jnb tf1,back ;check timer 1 overflow flag cpl p1.0 ;compliment output clr tf1 sjmp back |
Topic | Author | Date |
square wave osscillator various frequenc | 01/01/70 00:00 | |
How do you do this? | 01/01/70 00:00 | |
example 500hz and 10 khz square wave | 01/01/70 00:00 | |
Timer2 | 01/01/70 00:00 | |
to the best of my knowledge | 01/01/70 00:00 | |
The original 52 did not. | 01/01/70 00:00 | |
you are right, so | 01/01/70 00:00 | |
but my teacher say you could it with8052 | 01/01/70 00:00 | |
GIGO | 01/01/70 00:00 | |
how i do square wave osscillator | 01/01/70 00:00 | |
read up on T2 for your derivative | 01/01/70 00:00 | |
I guess i wasn`t so clear | 01/01/70 00:00 | |
give me code | 01/01/70 00:00 | |
it is emergency Mahmood Elnasser | 01/01/70 00:00 | |
It sure sounds that way. | 01/01/70 00:00 | |
Questions and answers | 01/01/70 00:00 | |
selamlar abi | 01/01/70 00:00 | |
you may say what am i do 8 frequencies![]() | 01/01/70 00:00 |