Search found 39 matches

by Clive44
Tue Oct 13, 2020 7:43 pm
Forum: Flowcode V8
Topic: Converting a byte to ASCII
Replies: 1
Views: 75

Converting a byte to ASCII

Hi I'm reading the internal part number number of a device over I2C. The part number is in the form HDL12345678 and it is transmitted character by character as ASCII ie H = 72, D = 68, L =76 etc I want to store this in a string variable 11 characters long. i.e. StringVar = StringVar + ASCII(byte) So...
by Clive44
Tue Sep 01, 2020 2:00 pm
Forum: Flowcode V8
Topic: Cannot add variable to the Simulation Debugger window
Replies: 3
Views: 141

Re: Cannot add variable to the Simulation Debugger window

Hi Steve

A Windows reboot and then re starting Flowcode has fixed it.
I should have thought of that myself.

Thanks for your help

Clive
by Clive44
Mon Aug 31, 2020 6:07 pm
Forum: Flowcode V8
Topic: Cannot add variable to the Simulation Debugger window
Replies: 3
Views: 141

Cannot add variable to the Simulation Debugger window

Hi
I've just downloaded Flowcode 8 on a 30 day trial.
Problem - I cannot see how to add variables to the simulation debugger window.
I do not have the 'Expression' and 'Value' tabs mentioned in the Flowcode help.
Please see attached screenshot

Any help gratefully received!

Clive
by Clive44
Fri Aug 28, 2020 6:39 pm
Forum: Flowcode V6
Topic: I2C eating memory
Replies: 2
Views: 337

I2C eating memory

Hi I'm using Flowcode 6 on a PIC16F1827 to read the temperture on an LM75 via I2C. Just writing a simple routine using the I2C Master has 'eaten 4355 words of memory, but the PIC16F1827 only has 4096. So it doesn't have enough memory to complile to hex. Has anyone else seen this? Am I missing someth...
by Clive44
Thu Jan 29, 2015 7:23 pm
Forum: Flowcode V5
Topic: Problem programming PIC18F8490 wirh Pickit2
Replies: 5
Views: 3103

Re: Problem programming PIC18F8490 wirh Pickit2

Hi Ben I'm certain there is a bug in the way Flowcode handles the PIC18F8490. I had tried two separate identical PCBs with the 8490. No joy. After a couple of days trying to get Port F to work as an input I unsoldered the the 8490 and replaced it with a PIC18F8722 on both PCBs Wham. Perfect - with n...
by Clive44
Tue Jan 27, 2015 11:25 am
Forum: Flowcode V5
Topic: Problem programming PIC18F8490 wirh Pickit2
Replies: 5
Views: 3103

Re: Problem programming PIC18F8490 wirh Pickit2

Whoops - a bit premature there when i said I'd cracked it! Compiler error has gone away but Port F still not functioning correctly. Set a loop to read port F and display result on LCD. 'walking' along pin F pins with a probe connected to +5V pins 0,1,2 and 7 read OK (1,2,4,128 respectively) Pins 3,4...
by Clive44
Mon Jan 26, 2015 7:25 pm
Forum: Flowcode V5
Topic: Problem programming PIC18F8490 wirh Pickit2
Replies: 5
Views: 3103

Re: Problem programming PIC18F8490 wirh Pickit2

OK, cracked it.
Address 300004 relates to 'external 8bit or 16 bit bus'
This is configurable in Flowcode/Build/Project options/Configure menu but there is no mention of this on the PIC18F8490 datasheet!
Setting bit 38 to 'external 16 bit bus' cured the problem.
by Clive44
Mon Jan 26, 2015 5:51 pm
Forum: Flowcode V5
Topic: Problem programming PIC18F8490 wirh Pickit2
Replies: 5
Views: 3103

Problem programming PIC18F8490 wirh Pickit2

Hi Flowcode V5.5.2.1, PICKIT 2 V2.61, PIC18F8490 Compiles OK but I get the following error message when trying to program the chip "PICkit 2 Program Report 26-Jan-2015, 16:41:24 Device Type: PIC18F8490 Configuration Memory Errors Address Good Bad 300004 008103 0081C3 Return code = 34 Flowcode was un...
by Clive44
Tue Oct 15, 2013 9:06 am
Forum: Flowcode V6
Topic: System Panel on V6
Replies: 3
Views: 2067

Re: System Panel on V6

Thanks Martin and Jonny - I will give V6 another go.

Clive
by Clive44
Mon Oct 14, 2013 6:09 pm
Forum: Flowcode V6
Topic: System Panel on V6
Replies: 3
Views: 2067

System Panel on V6

Hi I've just started trying to use V6 by loading an existing V5 program which needed a quick and simple mod. The V5 Panel components have been imported into the V6 System Panel but with no text. I know I can edit/amend this but they are tiny and I cannot find how to zoom into them. Only option seems...
by Clive44
Thu Jun 28, 2012 12:16 pm
Forum: Flowcode V5
Topic: PIC18F4520 and RC5
Replies: 9
Views: 3490

Re: PIC18F4520 and RC5

Hi Ben

Yes, that's fixed it! Great job - thank you.

Clive
by Clive44
Tue Jun 26, 2012 6:47 pm
Forum: Flowcode V5
Topic: PIC18F4520 and RC5
Replies: 9
Views: 3490

PIC18F4520 and RC5

Hi After some problems trying to implement an RC5 infra red remote controller on a PIC16F887 which were attributed to possible stack overflow in the PIC I thought I'd try a PIC18F4520 which is pin compatible but has 31 levels of stack as opposed to 8 in PIC16F887. However even the most simple flowch...
by Clive44
Sat Jun 23, 2012 1:21 pm
Forum: Flowcode V5 Issues
Topic: Printing flowcharts
Replies: 2
Views: 3354

Printing flowcharts

Hi

If I print a flow chart in colour to an inkjet printer I get a pale yellow background. Although this does look nice it uses a lot of ink - is there an option anywhere to print with a white background?

Regards

Clive
by Clive44
Mon May 28, 2012 12:42 pm
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

Here's a puzzle for you!
If I set the osc as internal and the frequency as 999.464KHz into Flowcode (which is actually a quarter of what it should be) then the RC5 works, but the LCD doesn't seem to like it. Bit of a clash.

Regards

Clive
by Clive44
Mon May 28, 2012 12:35 pm
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

A bit more detective work - Putting a frequency counter on pin 14. As expected I read with a few Hz of 4.096MHz with the crystal oscillator. Switching to the internal RC oscillator I read 999.464KHz (Fosc divide by 4). If I then put the oscillator frequency into Flowcode as 4 times this ie 3997.856M...
by Clive44
Mon May 28, 2012 12:22 pm
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

Hi Ben I've taken your original RC5 test file and modded it a little. Port B is the EB005 LCD board and Port A.3 is the RC5 RX input from an EB060 board. PIC is 16F887 in an EB006 although I'm using a PICKit 2 to program it. If configured to 19.6008MHz and using the EB006 crystal it works fine Also ...
by Clive44
Mon May 28, 2012 11:29 am
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

Thanks again for your help Ben

I can get it to consistently work with an HS oscillator and a 19.6608 crystal, but no joy at all on an internal 4MHz osc. Must be finger troubles - I'll check further!!!

Clive
by Clive44
Mon May 28, 2012 10:56 am
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

Thanks Martin. I'll have a look at the points you've raised. The program is pretty huge now with about 20 macros so I don't want to burden you with looking through that lot!!

Do the RC5 macros need a 19.6608 MHz clock or should they run at lower frequencies?

Best regards

Clive
by Clive44
Sun May 27, 2012 9:08 pm
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

Problem seems to be related to TMR0 which I was using as a seconds counter interrupt. Using TMR2 solves some of the problems and I'm getting closer to a working solution, although RC5 reception seems a little intermittent. One point - the RC5 macros only seem to run with an oscillator of 19.660800MH...
by Clive44
Sat May 26, 2012 2:55 pm
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

Re: RC5 and Stack problem

Hi Ben Thanks for your reply and sorry I've taken so long to reply - been away in the sun for a few days!! I've done what you said but I've still got problems. I have a large working program. It works fine if I just use the push buttons on an EB007, but I need to have an IR remote control as well. I...
by Clive44
Wed May 16, 2012 6:37 pm
Forum: General Programming
Topic: RC5 and Stack problem
Replies: 16
Views: 6892

RC5 and Stack problem

Hi I have quite a large program which complies on Flowcode V5 and runs fine on the target device. However if I add the RC5_RX_Enable() macro I get compile errors as follows - Building CASM file Serious Warning: Call stack usage exceeds:8! Call Stack Usage Report ======================= main and Task...
by Clive44
Fri May 11, 2012 5:24 pm
Forum: General Programming
Topic: PPP and RC5
Replies: 9
Views: 3014

Re: PPP and RC5

Hi Ben

Changing the two macros LCDDisplay(0)Command(in) to LCDDisplay(0)PrintNumber(in) makes it work.
Have a good weekend and thanks for your help.

Clive
by Clive44
Fri May 11, 2012 4:57 pm
Forum: General Programming
Topic: PPP and RC5
Replies: 9
Views: 3014

Re: PPP and RC5

Hi Ben

Yes, LCD now Port B and IR board now Port C. Jumpers set so IRin can be seen with oscilloscope producing nice RC5 waveform on C.2 directly on PIC16F877A IC pin. LCD still blank.
What should I expect to see on the LCD?

regards

Clive
by Clive44
Fri May 11, 2012 4:40 pm
Forum: General Programming
Topic: PPP and RC5
Replies: 9
Views: 3014

Re: PPP and RC5

Hi Benj That one compliles OK, but doesn't do anything. I've got the EB-005 LCD board in Port C and the EB060 IR Board in Port D. I've connected D6 on the IR board by flying lead to C.2 on the PIC16F877A. Squirting the RC5 remote control at the IR receiver doesn't do anything - LCD stays blank. Clive
by Clive44
Fri May 11, 2012 3:31 pm
Forum: General Programming
Topic: PPP and RC5
Replies: 9
Views: 3014

Re: PPP and RC5

Hi Martin If I load the hex file RC5_TX_RX_1.hex then all works fine. I can read codes from a Philips RC5 remote control. However if I try and compile the RC5_TX_RX_1.fcf in Flowcode 5 it comes back with errors - RC5_TX_RX_1.c(704:2): error: unknown identifier 'FCL_PULSEWIDTH' RC5_TX_RX_1.c(704:2): ...