How to produce 500 KHZ square wave signals?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
nnnnff
Posts: 87
Joined: Tue Oct 04, 2011 8:55 am
Contact:

How to produce 500 KHZ square wave signals?

Post 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

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Contact:

Re: How to produce 500 KHZ square wave signals?

Post by STibor »

Hello

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

jgu1
Posts: 1189
Joined: Tue Oct 06, 2009 9:39 am
Contact:

Re: How to produce 500 KHZ square wave signals?

Post 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

Post Reply