Does flow code support the use of standard C programming like the following in the decision?
great than or less than <>
Not equal to !=
Search found 11 matches
- Thu Jul 23, 2009 6:00 pm
- Forum: General Programming
- Topic: Flow Code decissions
- Replies: 1
- Views: 2534
- Thu Jul 23, 2009 4:02 pm
- Forum: General Programming
- Topic: Can I shift bit 4 over to bit 3 without shifting bits 0-2
- Replies: 1
- Views: 2528
Can I shift bit 4 over to bit 3 without shifting bits 0-2
I have to read a 4 bit binary value from ra0,ra1,ra2, ra4. If I read on only those bits, can I shift bit 4 over to bit 3 without effecting bits 0 to 2? The only other way I could think of is to read bits into a variable and bit 4 into another variable, then shifting one var and then using OR to comb...
- Thu Jul 23, 2009 3:58 pm
- Forum: General Programming
- Topic: How to enable Internal pullup Resistors in flocode
- Replies: 2
- Views: 4023
Re: How to enable Internal pullup Resistors in flocode
perfect! thanks!
- Thu Jul 23, 2009 3:12 pm
- Forum: General Programming
- Topic: How to enable Internal pullup Resistors in flocode
- Replies: 2
- Views: 4023
How to enable Internal pullup Resistors in flocode
I need the internal pullup resistors enabled on some pins. How do I enable them from flowcode?
..or do I need to do that in C? If so what is the C code that enables them (16f616 chip)
..or do I need to do that in C? If so what is the C code that enables them (16f616 chip)
- Thu Jul 23, 2009 2:24 pm
- Forum: Flowcode V4
- Topic: Are variables available in interrupts
- Replies: 1
- Views: 2222
Are variables available in interrupts
Im trying to use flowcode 4 and the simulation does not seem to output anything to the pins.. Its a simple interrupt that outputs seconds to port a.
Are variables available inside interrupts to read and write and do you have to return values?
Are variables available inside interrupts to read and write and do you have to return values?
- Thu Jul 23, 2009 1:16 pm
- Forum: General Programming
- Topic: 1 second interupt and prescaler question
- Replies: 7
- Views: 5069
Re: 1 second interupt and prescaler question
I knew I was missing something! Thank you I "got" it now.
- Wed Jul 22, 2009 9:32 pm
- Forum: General Programming
- Topic: 1 second interupt and prescaler question
- Replies: 7
- Views: 5069
Re: 1 second interupt and prescaler question
I was looking at the sample code for a 1 second timer. In the example the clock is 19660800 Hz , the scaler is 256 and in the interrupt counts to 75 then adds to the second counter. 19660800 / 4 / 256 = 19200 hz that the interrupt is called. It runs 75 times before the second is advanced. How exactl...
- Wed Jul 22, 2009 12:36 pm
- Forum: General Programming
- Topic: 1 second interupt and prescaler question
- Replies: 7
- Views: 5069
Re: 1 second interupt and prescaler question
Ok, thanks.
So now for the prescaler question. At 4 Mhz, the counters run at 1 Mhz correct?
So now for the prescaler question. At 4 Mhz, the counters run at 1 Mhz correct?
- Tue Jul 21, 2009 7:54 pm
- Forum: General Programming
- Topic: 1 second interupt and prescaler question
- Replies: 7
- Views: 5069
1 second interupt and prescaler question
I am using a 16hv616 chip and I want to have a counter that increments every second. I plan to use the internal oscillator, but flow code 4 does not have internal as an option in chip configure options... Is this a problem?
- Tue Jul 21, 2009 6:45 pm
- Forum: C and ASM Programming
- Topic: How to read timer 1 into a varable for flowcode4
- Replies: 2
- Views: 5343
- Tue Jul 21, 2009 11:59 am
- Forum: C and ASM Programming
- Topic: How to read timer 1 into a varable for flowcode4
- Replies: 2
- Views: 5343
How to read timer 1 into a varable for flowcode4
I am programming a pic 16HV616 device to sample analog voltage and then adjust output signal timing(in seconds). I need to read the timers 0, 1, and 2. I am using flowcode 4 and don't know how to set an manually read(get the timer value into a variable) the timers. I do not plan on using interrupts....