Search found 24 matches
- Thu Sep 29, 2016 5:00 pm
- Forum: Bug reports
- Topic: GPS component issues
- Replies: 3
- Views: 7520
Re: GPS component issues - accuracy issue
i use the GPS component in Flowcode 6, in a PIC18F14K50. Works fine, but I notice that the Longitude has much lesser accuracy compared to the Latitude. How come. The NMEA record is: $GPGGA,152903.935,5241.5168,N,00449.4017,E,1,04,5.1,-8.0,M,46.9,M,,0000*72 So for Google Maps this is equivalent to: L...
- Thu Sep 03, 2015 9:12 am
- Forum: General Programming
- Topic: ARM chip family update?
- Replies: 6
- Views: 6745
Re: ARM chip family update?
As enthousiastic FC user timely support for ARM Cortex M4 is very important, too my opinion. The Cortex M-family is becoming the standard in embedded products. One of the important reasons is that it is not a single source product. We think that the market for FC licenses could be much larger when t...
- Mon Apr 20, 2015 10:21 am
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Re: Sleep instead of Delay
I found my error: the peripherals were not switched off before the sleep() started.
Now I indeed measure some 30 microAmp current consumption during sleep(). And with the while loop I can make effectively very long sleep periodes.
Sorry for bothering you all with my stupidity.
Now I indeed measure some 30 microAmp current consumption during sleep(). And with the while loop I can make effectively very long sleep periodes.
Sorry for bothering you all with my stupidity.
- Mon Apr 20, 2015 10:20 am
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
I found my error: the peripherals were not switched of before the sleep() started.
Now I measure indeed some 30 microAmp current consumption during sleep(). And with the while loop I can make effectively very long sleep periodes.
Sorry for bothering you all with my stupidity.
Now I measure indeed some 30 microAmp current consumption during sleep(). And with the while loop I can make effectively very long sleep periodes.
Sorry for bothering you all with my stupidity.
- Thu Apr 16, 2015 9:37 am
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
I forgot to mention in my last post with the diagram that in the start of the program is added:
option_reg = option_reg | 0b00001111; //Configure watchdog to 1:128 Postscaler
wdtcon = 0b00000111; //Configure watchdog 1:256 (from Benj)
osccon = 0x45;
There is no further C-code in the program.
option_reg = option_reg | 0b00001111; //Configure watchdog to 1:128 Postscaler
wdtcon = 0b00000111; //Configure watchdog 1:256 (from Benj)
osccon = 0x45;
There is no further C-code in the program.
- Thu Apr 16, 2015 9:37 am
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Re: Sleep instead of Delay
I forgot to mention in my last post with the diagram that in the start of the program is added:
option_reg = option_reg | 0b00001111; //Configure watchdog to 1:128 Postscaler
wdtcon = 0b00000111; //Configure watchdog 1:256 (from Benj)
osccon = 0x45;
There is no further C-code in the program.
option_reg = option_reg | 0b00001111; //Configure watchdog to 1:128 Postscaler
wdtcon = 0b00000111; //Configure watchdog 1:256 (from Benj)
osccon = 0x45;
There is no further C-code in the program.
- Thu Apr 16, 2015 9:35 am
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Re: Sleep instead of Delay
To support my posts just before, I herewidth add a portion of the Flowcode-6 diagram showing how the sleep() C-code is inside the while loop.
- Thu Apr 16, 2015 9:33 am
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
To better explain my posts before, I herewith add a small diagram how the C-code sleep() is positioned inside a flowcode-6 while loop (using PIC12F683),
- Thu Apr 16, 2015 9:22 am
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Re: Sleep instead of Delay
In other words: My concern is that if I add in the flowcode-6 program diagram inside a while loop the C-code sleep(); , I have to do some other settings first before actually the power consumption goes down during each sleep(). Perhaps the datasheet gives (hidden?) some clues about this issue. I kee...
- Thu Apr 16, 2015 9:21 am
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
I am aware of the age of the 12F683, but that's what is installed at the moment. My concern is that if I add in the flowcode-6 program diagram inside a while loop the C-code sleep(); , I have to do some other settings first before actually the power consumption goes down during each sleep(). Perhaps...
- Wed Apr 15, 2015 10:56 am
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
(Ben, thanks for your remarks). In the small program for the PIC12F683 (1 MHz) I developed and discussed, there are long periodes of repetetive (in a while loop) delays of 1 minute (to get a delay of e.g. 6 hours). I want to replace this delay by a simple while loop of about 50x a C-command 'sleep()...
- Mon Apr 13, 2015 9:05 pm
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Re: Sleep instead of Delay
In the circuit the current consumption during sleep interval remains unmodified and the same as when outside the sleep interval.
Can someone tell me what I may be doing wrong?
Can someone tell me what I may be doing wrong?
- Mon Apr 13, 2015 6:06 pm
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Re: Sleep instead of Delay
I figured out that sleep() lasts 1.21 sec (clock speed 1 MHz). So when I put this in a while loop (49x times round), then I have 59 seconds sleeping effectively, as I measured. Adding after the while loop a small correction delay of almost 1 sec., yields this altogether the 1 minute as wanted. I thi...
- Mon Apr 13, 2015 3:00 pm
- Forum: Flowcode V6
- Topic: Sleep instead of Delay
- Replies: 7
- Views: 5126
Sleep instead of Delay
As a Flowcode 6 user I developed a program for the PIC12F683, that must wait a few hours (variable) before continuing. So far I used the delay(60) seconds for 1 minute delay in an while loop of 240 (for 240 minutes or 4 hours). THis works fine. However, the full current consumption continuous (1 MHz...
- Tue Mar 31, 2015 1:40 pm
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
Lowering the watchdog timer interval to 1 second (from the 18 msec) does hardly solve the question. I use now the following trick: lowering the cpu clock setting the project building general options for building the hex file. I my application the clock was set a 1 MHz with the osscon variable. When ...
- Tue Mar 31, 2015 1:31 pm
- Forum: Flowcode V6
- Topic: Watchdoc timer connecting and setting prescaler
- Replies: 16
- Views: 14236
Re: Watchdoc timer connecting and setting prescaler
The watchdog timer is now effectively 1 second. Thanks for your help.
I learned however that this does not affect overall processing time compared to the default approx. 18 msec watchdog timer.
I learned however that this does not affect overall processing time compared to the default approx. 18 msec watchdog timer.
- Thu Mar 19, 2015 7:26 pm
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
Re: 32kHz simulation vs on chip
For testing I made a simple program, with a loop having (almost) only a delay of 600 seconds, during which interrupt may come in (on the edge of an input signal pin). There is no number crunching. After completion of the delay another delay becomes in of also 600 seconds during which no interrupts a...
- Thu Mar 19, 2015 11:57 am
- Forum: Flowcode V6
- Topic: 32kHz simulation vs on chip
- Replies: 11
- Views: 7022
32kHz simulation vs on chip
A strange differency I found between simulation and reality. I want to run the chip (PIC12F683) on its internal 31 kHz oscillator. In Flowcode therefore I set the clock speeld in ProjectOptions --> GeneralOptions to 31000 Hz. And at the top of the program I added the C-code line: osccon = 0x00; In P...
- Wed Mar 18, 2015 5:08 pm
- Forum: Flowcode V6
- Topic: Watchdoc timer connecting and setting prescaler
- Replies: 16
- Views: 14236
Re: Watchdoc timer connecting and setting prescaler
Thanks for your help. I think I understand it. I want to attach an external standard 32kHz crystal oscillator signal to pin 2 (pin 3 not used). What must I add more to the program to get the 12F683 using this external clock signal? With project build option I can already specify the 32768 frequency.
- Wed Mar 11, 2015 4:37 pm
- Forum: Flowcode V6
- Topic: Watchdoc timer connecting and setting prescaler
- Replies: 16
- Views: 14236
Re: Watchdoc timer connecting and setting prescaler
I am using a PIC12F683.
I want to use it at 32 kHz with external crystal oscillator.
I want to use it at 32 kHz with external crystal oscillator.
- Mon Mar 09, 2015 5:29 pm
- Forum: Flowcode V6
- Topic: Watchdoc timer connecting and setting prescaler
- Replies: 16
- Views: 14236
Re: Watchdoc timer connecting and setting prescaler
I mentioned the word 'prescaler', but now I think it should be 'postscaler'. Could be simpler?
- Mon Mar 09, 2015 4:20 pm
- Forum: Flowcode V6
- Topic: Watchdoc timer connecting and setting prescaler
- Replies: 16
- Views: 14236
Watchdoc timer connecting and setting prescaler
I have read as much as possible the topics on watchdog timer. But I do not find explanation on how to make longer watchdog time's (e.g. approx. 1 second instead of 18 msec). What I am looking for is: - which c-code to add in the start of a Flowcode program to 'connect' the prescaler to the watchdog ...
- Wed Feb 25, 2015 9:36 am
- Forum: Flowcode V6
- Topic: Simulation using com ports
- Replies: 3
- Views: 2612
Re: Simulation using com ports
Herewith I send you the program GPS_test2.fcfx
It is from the http://www.matrixtsl.com Wiki page called "Component: Injector (GPS NMEA) (Simulation)".
It is from the http://www.matrixtsl.com Wiki page called "Component: Injector (GPS NMEA) (Simulation)".
- Tue Feb 24, 2015 1:05 am
- Forum: Flowcode V6
- Topic: Simulation using com ports
- Replies: 3
- Views: 2612
Simulation using com ports
I want to run Flowcode-6 simulations on my pc using two com-ports (usb). One to connect a GPS receiver sending NMEA messages into the simulation program, and the other one connected to a (GSM/GPRS, using AT commands) modem to send simulation output data to another system. I started with loading "GPS...