Search found 69 matches

by gtc
Mon Sep 14, 2015 12:31 pm
Forum: Bug reports
Topic: PIC12F609 -- trivial program fails to compile to hex
Replies: 5
Views: 4869

Re: PIC12F609 -- trivial program fails to compile to hex

@Ben @Martin,

Many thanks for the explanation and fixes.
by gtc
Mon Sep 14, 2015 2:46 am
Forum: Bug reports
Topic: PIC12F609 -- trivial program fails to compile to hex
Replies: 5
Views: 4869

Re: PIC12F609 -- trivial program fails to compile to hex

Hi Martin,

I don't recognize the file type fcdx. My Flowcode project files are type fcfx.
by gtc
Sat Sep 12, 2015 2:16 pm
Forum: Flowcode V6
Topic: PIC12F617 External interrupt via GP2 -- how?
Replies: 12
Views: 8140

Re: PIC12F617 External interrupt via GP2 -- how?

Okay, thanks again. I'll report back how it goes.
by gtc
Sat Sep 12, 2015 12:51 pm
Forum: Flowcode V6
Topic: PIC12F617 External interrupt via GP2 -- how?
Replies: 12
Views: 8140

Re: PIC12F617 External interrupt via GP2 -- how?

Hi Martin, Many thanks for that confirmation. With microcontrollers, I rely on Flowcode simulation testing as much as possible before committing to hardware. As your bug report confirms that the INT0 interrupt does work with the hardware as documented, I'll plow ahead with a prototype on that basis....
by gtc
Sat Sep 12, 2015 4:49 am
Forum: Bug reports
Topic: PIC12F609 -- trivial program fails to compile to hex
Replies: 5
Views: 4869

PIC12F609 -- trivial program fails to compile to hex

Flowcode v 6.1.2.0 The attached trivial program using target PIC12F609 fails to compile. It returns the infamous error code 1. Note: Exactly the same Flowcode environment used for many other successful compilations using other PIC chips. Launching the compiler... C:\Program Files\Flowcode 6\compiler...
by gtc
Sat Sep 12, 2015 2:59 am
Forum: Flowcode V6
Topic: PIC12F617 External interrupt via GP2 -- how?
Replies: 12
Views: 8140

Re: PIC12F617 External interrupt via GP2 -- how?

So far I have found that internal interrupts, such as those based on timers, don't work in simulation, however with the 16F88 chip I had no problem in simulation with a simple external interrupt such as INT0 on RB0, so I expected to have a similar experience with the 12F617 chip simulation using INT...
by gtc
Sat Sep 12, 2015 2:23 am
Forum: Flowcode V6
Topic: PIC12F617 External interrupt via GP2 -- how?
Replies: 12
Views: 8140

Re: PIC12F617 External interrupt via GP2 -- how?

At this stage, I am referring to Flowcode's simulation. I can get the GPIO change interrupt option (IOC GPIO) to work in simulation, but GPIO change is not what I want. I only want an external interrupt via GP2. It's INT0 in simulation for this chip that I can't get to work. (Had no problem with INT...
by gtc
Fri Sep 11, 2015 1:27 pm
Forum: Flowcode V6
Topic: PIC12F617 External interrupt via GP2 -- how?
Replies: 12
Views: 8140

Re: PIC12F617 External interrupt via GP2 -- how?

Hi,

I should have mentioned that I did try INT0, but it was not recognized. That is, the interrupt routine was not called.

I have a momentary push-button (active high) attached to GP2. I see the GP2 pin go red on the chip emulator, but for some reason the INT0 routine is not being triggered.
by gtc
Fri Sep 11, 2015 6:10 am
Forum: Flowcode V6
Topic: PIC12F617 External interrupt via GP2 -- how?
Replies: 12
Views: 8140

PIC12F617 External interrupt via GP2 -- how?

Using Flowcode version: 6.1.2.0 According to Microchip's datasheet for the 12F617, the OPTION register is a readable and writable register, which contains various control bits to configure: • Timer0/WDT prescaler • External GP2/INT interrupt • Timer0 • Weak pull-ups on GPIO So, apart from the WDT, t...
by gtc
Sun Sep 06, 2015 1:07 pm
Forum: General Programming
Topic: Can a Flowcode DELAY be terminated via a hardware interrupt?
Replies: 2
Views: 3821

Can a Flowcode DELAY be terminated via a hardware interrupt?

Can a Flowcode DELAY be terminated via a hardware interrupt? I want to be able to bail out of a long delay via a hardware interrupt (using the INT0 pin on a PIC16F88). The application is a fairly trivial timer, so the simple DELAY function is quite suitable rather than having to use a timer macro ba...
by gtc
Tue Aug 18, 2015 11:52 am
Forum: Bug reports
Topic: Flowcode 6.1.2.0 says pins not connected (but they are!)
Replies: 4
Views: 4136

Re: Flowcode 6.1.2.0 says pins not connected (but they are!)

Sorry, just noticed your reply.

No it's the same with all components. I think it may be related related to my screen size setting, which is 1280 x 1024 on a 17 inch monitor.

Also I'm still on XP-Pro (yes, I know ...)
by gtc
Thu Jul 30, 2015 7:02 pm
Forum: Bug reports
Topic: Flowcode 6.1.2.0 says pins not connected (but they are!)
Replies: 4
Views: 4136

Re: Flowcode 6.1.2.0 says pins not connected (but they are!)

Many thanks indeed for solving the case of the incredible shrinking LED. I wasn't aware of that trick with Panel Properties. As for the shrunken LED, I think that may have been caused by anther issue that I've been meaning to raise: sometimes Flowcode will not allow me to grab the resize points of a...
by gtc
Thu Jul 30, 2015 3:30 pm
Forum: Bug reports
Topic: Flowcode 6.1.2.0 says pins not connected (but they are!)
Replies: 4
Views: 4136

Flowcode 6.1.2.0 says pins not connected (but they are!)

Occasionally, Flowcode decides that "one or more pins" of a component are not connected, when in fact that is NOT the case. I have attached a trivial program which flashes an LED. Flowcode insists that the LED is unconnected, yet it is connected to port B5, and it does run correctly in simulation. I...
by gtc
Mon Jul 27, 2015 4:18 pm
Forum: General Programming
Topic: PIC Timer 0 as timer -- which clock speed is best?
Replies: 3
Views: 3868

Re: PIC Timer 0 as timer -- which clock speed is best?

Benj wrote:Or you could go for the 1:256 and alternate between counting up to 30 and counting to 31 to give 0.018 error.
Great idea. Thanks.
by gtc
Mon Jul 27, 2015 1:12 pm
Forum: Bug reports
Topic: Flowcode v6.1.2.0 application runtime corrupted?
Replies: 5
Views: 5001

Re: Flowcode v6.1.2.0 application runtime corrupted?

Repair process seems to have done the trick. :D
by gtc
Mon Jul 27, 2015 12:26 pm
Forum: Bug reports
Topic: Flowcode v6.1.2.0 application runtime corrupted?
Replies: 5
Views: 5001

Re: Flowcode v6.1.2.0 application runtime corrupted?

Okay, thanks. I see you were referring to Windows Control Panel.

I have set the repair process going, but it's taking a very long time to run ... so far.
by gtc
Mon Jul 27, 2015 10:39 am
Forum: Bug reports
Topic: Flowcode v6.1.2.0 application runtime corrupted?
Replies: 5
Views: 5001

Re: Flowcode v6.1.2.0 application runtime corrupted?

Benj wrote:You could try repairing the product via the programs control panel
Thanks for the reply. I'll try the repair process first, but cannot see it mentioned. Where is it exactly?
by gtc
Sun Jul 26, 2015 5:49 am
Forum: Bug reports
Topic: Flowcode v6.1.2.0 application runtime corrupted?
Replies: 5
Views: 5001

Flowcode v6.1.2.0 application runtime corrupted?

Flowcode v6.1.2.0 reported a runtime error and told me to save my project. I clicked SAVE but Flowcode went into a loop thrashing the hard drive. Eventually I had to terminate Flowcode via the Task Manager. Now when I load any project, I get basically a blank screen with a blank Dashboard Panel and ...
by gtc
Fri Jul 24, 2015 3:13 pm
Forum: General Programming
Topic: PIC Timer 0 as timer -- which clock speed is best?
Replies: 3
Views: 3868

PIC Timer 0 as timer -- which clock speed is best?

When using Timer 0 as a timer to count elapsed seconds as a 'background' process, I guess it's sensible to run the clock at a rate that minimizes the interrupts per second and thereby minimizes interference with the 'foreground' process, but which clock speed is best? Given that the target chip (PIC...
by gtc
Fri Jul 24, 2015 4:16 am
Forum: General Programming
Topic: "Write config on download" -- meaning/use
Replies: 4
Views: 4788

Re: "Write config on download" -- meaning/use

Hello, The option specifies if the config settings are added to the output hex file or not. If they are not added then the current config settings will be retained when reprogramming your device. Thank you. So for a PIC device (e.g. 16F88), if I don't tick that box, then no config settings will be ...
by gtc
Thu Jul 23, 2015 4:15 pm
Forum: General Programming
Topic: "Write config on download" -- meaning/use
Replies: 4
Views: 4788

"Write config on download" -- meaning/use

Version 6.1.2.0

In Project Options --> Configure there's a tick box for "Write config on download", which appears to be unticked by default.

What does that do, and when should I use it?

(No mention of this feature in the associated Wiki page text, only a screenshot showing it ticked.)
by gtc
Thu Jul 23, 2015 9:58 am
Forum: Bug reports
Topic: Breakpoints in simulation mode
Replies: 3
Views: 4943

Breakpoints in simulation mode

Version 6.1.2.0

I can only get breakpoints to be recognized when simulation speed is set to Normal. At any simulation speed less than Normal, the breakpoints are ignored.

There is no specific mention of simulation speed regarding Breakpoints in the Wiki, so is this a bug?
by gtc
Wed Jul 22, 2015 6:02 pm
Forum: General Programming
Topic: OSC configure options for 16F88 internal clock?
Replies: 4
Views: 4781

Re: OSC configure options for 16F88 internal clock?

Thank you for explanation.