500khz circuit

eblc1388

Joined Nov 28, 2008
1,542
It is not difficult to get 500KHz output with the right sort of 8051 variance. You just turn on a port pin and later turn it off. Repeat the process and you'll get 500KHz.

However, it is most impossible for the second part of your problem as people usually do that type of activity via fancy imagination or photos from adult magazine.

Never heard of any guy doing that thinking of "assembly language".
 

R!f@@

Joined Apr 2, 2009
9,918
It is not difficult to get 500KHz output with the right sort of 8051 variance. You just turn on a port pin and later turn it off. Repeat the process and you'll get 500KHz.

However, it is most impossible for the second part of your problem as people usually do that type of activity via fancy imagination or photos from adult magazine.

Never heard of any guy doing that thinking of "assembly language".
Oh jeeeeze... never knew you have that in u ....I like it .....:D
 

R!f@@

Joined Apr 2, 2009
9,918
to tell u the truth, it is better not to tell, I tend to have a short fuse towards some .....well u know what I mean....
 

t06afre

Joined May 11, 2009
5,934
Some people swear to use only assembler language, and despite all kind of high level languages. But a true assembler fetishist, that is something new to me.
By the way I guess it is meant that you use the internal timers in this assignment. Have you tried some googling/use of internet for the programming part of your question.
 

retched

Joined Dec 5, 2009
5,207
However, it is most impossible for the second part of your problem as people usually do that type of activity via fancy imagination or photos from adult magazine.
.... I have always been one to take on the impossible, and am now studying assembler. ;)...

I dont know how the girlfriend will explain this to her friends..."He dumped me for assembler!!, boo-hoo-hoo"

If you want an 500KHz signal, it may be easier to start with a 4MHz xtal and use counters to divide by 4 then 2. That will give you a 1MHz signal after the divide by 4, then a 500KHz signal after the divide by 2.

If this IS a homework problem, you are going to have to basically do the same thing, using code, depending on your clock signal.
 

atferrari

Joined Jan 6, 2004
4,770
...and come with assembly language?
Otherwise,use other way to create.
Thank You!
If the OP wrote it like this, he is not aware of the meaning, so most probably could not even uderstand the jokes. Until he starts searching some dictionaries of popular English or whatever.
 
Last edited:

eblc1388

Joined Nov 28, 2008
1,542
Some people swear to use only assembler language, and despite all kind of high level languages.
That's just show narrow mindedness.

Each type of programming language exists for a good reason, which other languages cannot fill or replace. For assembly it is small code size, speed and precise timing.

How else can one produce a 50.02Hz signal, using high level language?

On some occasions one particular language is a better choice than the other. With the modern compilers, it is easy to use assembly language within the complex language structure of C to get the best of both worlds.
 

eblc1388

Joined Nov 28, 2008
1,542
No, t06afre. The post is a general comment not directed to you at all.

At the opposite of the spectrum, I know of many people who swear to learn and use only high level languages and despise people using assembly language.
 

retched

Joined Dec 5, 2009
5,207
Use them all. There is a reason you can compile them together.. you can call ASM functions from C, basic, etc.. There are better ways to do different things in each language. If you want to do complex math, ASM isn't the way to go.
 
Top