Page 1 of 1

How to produce 500 KHZ square wave signals?

Posted: Wed Oct 23, 2013 3:25 pm
by nnnnff
Hi,
I use the chip is 16 f877a, crystals is 19.6608 Mhz.
I want to use interrupts produce 500 KHZ square wave signals, but interrupt the maximum frequency of 19200 hz (1:1). How should I do? Help me, thank you

Re: How to produce 500 KHZ square wave signals?

Posted: Wed Oct 23, 2013 5:13 pm
by STibor
Hello

Use a 20MHz crystal.
PWM is used.
9 = the value of the Period register, duty cycle = 4 or 5

Re: How to produce 500 KHZ square wave signals?

Posted: Wed Oct 23, 2013 7:04 pm
by jgu1
H Stibor!

Waov, what an experience just to be able to come up with this idea :lol: :lol: .

The links you have attached, is this some of your projects?? If, great work :D

I still have loooong way :lol:

Best regard

Jorgen