Search found 12 matches
- Sun Jul 29, 2012 8:36 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
Please find attached a program that demonstrates how to use the Timer1 16 bit timer in Flowcode to time the interval between input pulses. The program is commented so look at the detailed descriptions on each block for more information. The program uses one input and three outputs. One the rising ed...
- Sat Jul 28, 2012 11:00 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
The program compiles without error. When I run in emulator the timer value being displayed stays at 0. I preset the variable "D" to 7 to track if the display changes, which it does go to 0. I also added an LED to see if the subroutine paths are being executed, which they are. I assume that...
- Sat Jul 28, 2012 9:07 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
Please find attached the modified program.
Don
Don
- Sat Jul 28, 2012 8:05 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
Hi, I made the correction plus I had to initialize TEMP_TMR1H as I was getting an "Un-initialized" error for this variable. So in the initialization cal block I have: TEMP = 0 D = 7 TEMP_TMR1H = 0 TEMP_TMR1L = 0 In the "MY_INT" routine it appears that there should be a macro &quo...
- Sat Jul 28, 2012 3:39 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
I am looking at 2 to 100 Hz range (500 to 10 mS). Timer 1, the 16 bit timer is the timer that would be needed to get the resolution I am looking for.
Thank you,
Don
Thank you,
Don
- Fri Jul 27, 2012 11:49 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
Thank you for the reply. I have looked at the interrupt using the timer but what I am trying to do is measure the time between input pulses. I was looking at using the interrupt on the input pin to jump to a routine that would start a timer. When the input pin interrupted again on the next pulse I w...
- Fri Jul 27, 2012 10:59 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Re: Timer functions implemented in FLowcode
Some of the PIC's like the PIC16F690 support timer modules (see PDF "PIC16F631/677/685/687/689/690 Data Sheet" - Page 86 (Section 6.0 - TIMER1 MODULE WITH GATE CONTROL). These appear to be Timer\Counters that can be used for timing events or counting external input pulses. I do not see in ...
- Fri Jul 27, 2012 9:29 pm
- Forum: Flowcode V5 Free Edition
- Topic: Timer functions implemented in FLowcode
- Replies: 20
- Views: 15342
Timer functions implemented in FLowcode
Are the Timer0, 1 , and 2 functions going to be implemented in Flowcode in the future?
Thank you,
Don
Thank you,
Don
- Mon Jul 23, 2012 9:13 pm
- Forum: Flowcode V5 Free Edition
- Topic: Clock config and simple code examples not working
- Replies: 12
- Views: 9264
Re: Clock config and simple code examples not working
The "PNP_Out = !Pulse_In" works correctly (Logical NOT). Thank you. The ~ and NOT (bitwise NOT) do not function.
Does the Ver. 5.2 Flowcode have this same bug? This seems like such a basic function to not have been found before.
Thank you,
Don
Does the Ver. 5.2 Flowcode have this same bug? This seems like such a basic function to not have been found before.
Thank you,
Don
- Mon Jul 23, 2012 6:03 pm
- Forum: Flowcode V5 Free Edition
- Topic: Clock config and simple code examples not working
- Replies: 12
- Views: 9264
Re: Clock config and simple code examples not working
The simulated program works as expected, but the hardware does not. Whatever output is calculated with the "NOT" statement stays ON in hardware.
I hope this clarifies.
Thank you,
Don
I hope this clarifies.
Thank you,
Don
- Mon Jul 23, 2012 5:47 pm
- Forum: Flowcode V5 Free Edition
- Topic: Clock config and simple code examples not working
- Replies: 12
- Views: 9264
Re: Clock config and simple code examples not working
Thank you for the replies. I missed PB_7. Changed to BOOL and now the emulator works correctly. However B5 is still the only output changing on the chip. I assume the "NOT Pulse_In" is correct. If I change the calculation block to: NPN_Out = Pulse_In PB_7 = Pulse_In PNP_Out = NOT Pulse_In ...
- Mon Jul 23, 2012 4:19 pm
- Forum: Flowcode V5 Free Edition
- Topic: Clock config and simple code examples not working
- Replies: 12
- Views: 9264
Clock config and simple code examples not working
I am new to using the PIC family of chips and Flow code. My current configuration is: FCVersion: 5 OS: Win XP SP3 bit: 32 Variant: PIC I am using PPP v3.12.16.31 with FlowCode 5.1.0.0 (Free)and the Pickit3 with the PICDEM Lab. Test chip: PIC16F690 I have attached my test code. Several questions. 1. ...