I need to count how many pulses there are on my C0 input in 1 minute .. but the timer is totally not right.. i think its the clock speed settings, what value do i need to set (using a PIC16f690) in flowcode?
internal clock
Moderator: Benj
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: internal clock
Hello,
If you are posting about a Flowcode program please post your question in the relevant section, I will move this question into the relevant section, if it is Flowcode V4 you will need to get your forum account upgraded to be part of the V4 forum group.
Instructions on doing this are available here: http://www.matrixmultimedia.com/support ... f=29&t=602
If you are posting about a Flowcode program please post your question in the relevant section, I will move this question into the relevant section, if it is Flowcode V4 you will need to get your forum account upgraded to be part of the V4 forum group.
Instructions on doing this are available here: http://www.matrixmultimedia.com/support ... f=29&t=602
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: internal clock
Hello,
The internal clock speed will not be 100% accurate but you should be able to get fairly close.
For a 16F690 device the internal clock speed is defaulted to 4MHz so you would put 4000000 in the Flowcode project options for the clock speed.
If you want to you can change the oscillator speed to 8MHz by using this line of C code at the start of your program.
osccon = 0x71;
The internal clock speed will not be 100% accurate but you should be able to get fairly close.
For a 16F690 device the internal clock speed is defaulted to 4MHz so you would put 4000000 in the Flowcode project options for the clock speed.
If you want to you can change the oscillator speed to 8MHz by using this line of C code at the start of your program.
osccon = 0x71;
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel