Search found 104 matches

by Dave Squibb
Tue Jan 19, 2021 6:27 pm
Forum: Flowcode V8
Topic: "Device is not selected"
Replies: 4
Views: 2393

Re: "Device is not selected"

That's done the trick Steve, Thanks for your help.
by Dave Squibb
Tue Jan 19, 2021 4:38 pm
Forum: Flowcode V8
Topic: "Device is not selected"
Replies: 4
Views: 2393

Re: "Device is not selected"

Hi Steve,
Found this in default

$(compilerpic)batch\pic_xc8_comp.bat - Now it says toolchain not installed??

I think this happened when I opened a file from an older project from FC6 or even FC4
by Dave Squibb
Tue Jan 19, 2021 12:41 pm
Forum: Flowcode V8
Topic: "Device is not selected"
Replies: 4
Views: 2393

"Device is not selected"

Good morning, I can no longer compile to HEX. Was previously working. I've opened a test project, selected a PIC and set CONFIG only. I get the following compiler message: Launching the compiler... C:\Program Files (x86)\Microchip\MPLABX\v5.40\mplab_platform\mplab_ipe\ipecmd.exe 16F1938 "C:\Users\HP...
by Dave Squibb
Tue Jan 19, 2021 10:55 am
Forum: Flowcode V8
Topic: Zoom level
Replies: 3
Views: 1870

Re: Zoom level

Ok thanks, it's driving me nuts!
by Dave Squibb
Mon Jan 18, 2021 6:20 pm
Forum: Flowcode V8
Topic: Zoom level
Replies: 3
Views: 1870

Zoom level

Hi, Can I set the zoom level for a project to 100%? It seems to be set at 75%. Every Macro opened has to be set individually to 100%.
Thanks, Dave
by Dave Squibb
Thu Jul 09, 2020 10:55 am
Forum: Flowcode V8
Topic: ADC Problem
Replies: 2
Views: 1311

Re: ADC Problem

Hi Stefan,
Thanks for replying. It was the 256 that made me think it might be a bug. The input is a current measuring circuit using an op amp.
I removed the op amp and fed 0 to 5 V directly to the AD input and all works perfectly!
Fault is on the hardware somewhere.
Thanks again, Dave.
by Dave Squibb
Wed Jul 08, 2020 5:52 pm
Forum: Flowcode V8
Topic: ADC Problem
Replies: 2
Views: 1311

ADC Problem

Hello,
This code works in simulation and the pot reads in 0 - 1023. On the hardware (PIC18F45K22) the LCD only reads up to 256 max. Is it me or is it a bug? Thanks, Dave.
ADC_Test.fcfx
(9.14 KiB) Downloaded 165 times
by Dave Squibb
Sat Sep 14, 2019 11:18 am
Forum: Flowcode V8
Topic: Capture Custom Interrupt Code
Replies: 5
Views: 2808

Re: Capture Custom Interrupt Code

Hi Benj,
The Timer component works well in this instance because the code is doing nothing else at this point so I can poll the 2 inputs for a change of state. The CCP code has the advantage of edge triggered interrupts. (INT pins are tied up with other things)
Dave.
by Dave Squibb
Wed Sep 11, 2019 12:32 pm
Forum: Flowcode V8
Topic: Analogue input always reading 255
Replies: 2
Views: 1926

Re: Analogue input always reading 255

Hi Benj, I've spent hours on this, adding bits in like the ADCON and ANSEL bits, trying to get it to work. It was definately pointing to AN3 originally. I removed the ADCON and ANSEL bits, pointed it back to AN3 and it all works! I'll add it back to the original program very carefully. Thanks for yo...
by Dave Squibb
Wed Sep 11, 2019 11:39 am
Forum: Flowcode V8
Topic: Analogue input always reading 255
Replies: 2
Views: 1926

Analogue input always reading 255

Hi all, I am trying to read an analogue input on AN3 on a PIC18F45K22 . Whatever voltage I put on the input, 0 to 5 V, always reads 255. (Macro "initialise" is part of a larger project but this bit won't work at all without it) I've tried a new PIC. Can someone have a look please? Thanks, Dave. ADC....
by Dave Squibb
Wed Sep 11, 2019 11:12 am
Forum: Flowcode V8
Topic: Capture Custom Interrupt Code
Replies: 5
Views: 2808

Re: Capture Custom Interrupt Code

Have you had a chance to look at this yet Benj?
Thanks,
Dave.
by Dave Squibb
Tue Sep 10, 2019 1:37 pm
Forum: Flowcode V8
Topic: Capture Custom Interrupt Code
Replies: 5
Views: 2808

Re: Capture Custom Interrupt Code

Thanks Benj, that would be good.
Dave.
by Dave Squibb
Mon Sep 09, 2019 3:44 pm
Forum: Flowcode V8
Topic: Capture Custom Interrupt Code
Replies: 5
Views: 2808

Capture Custom Interrupt Code

Hello all, I am trying to use the two Capture modules CCP1 and CCP2 on a PIC18F2550 to measure the time difference between two pulses. The rising edge of the first on CCP1 clears Timer 1 and the rising edge on CCP2 saves Timer 1 value to variables HIGH and LOW. This value is sent out over UART1. In ...
by Dave Squibb
Fri Jun 14, 2019 3:51 pm
Forum: Flowcode V8
Topic: LCD Display components vanished
Replies: 6
Views: 3989

Re: LCD Display components vanished

All updated and everything back where it should be. Magic!

Thanks again for your help.

Dave.
by Dave Squibb
Fri Jun 14, 2019 3:45 pm
Forum: Flowcode V8
Topic: LCD Display components vanished
Replies: 6
Views: 3989

Re: LCD Display components vanished

Just done a component search and it's now under "Misc" (was under "Displays" yesterday). I don't have a "tab" for Misc but at least I can find it now. What happened was this. I went to change the 4 x 16 LCD component in my flowchart for the 2 x 16 one. A box popped up saying updates were available f...
by Dave Squibb
Fri Jun 14, 2019 2:59 pm
Forum: Flowcode V8
Topic: LCD Display components vanished
Replies: 6
Views: 3989

Re: LCD Display components vanished

Hi Leigh,
Under Displays just LCD I2C (LCM1602) and loads of GLCD + 7 seg stuff.
No Hardware heading
by Dave Squibb
Fri Jun 14, 2019 2:08 pm
Forum: Flowcode V8
Topic: LCD Display components vanished
Replies: 6
Views: 3989

LCD Display components vanished

Hi, just updated Flowcode 8 and the LCD Display components have gone (except for the I2C one).
Whats going on?
by Dave Squibb
Wed Apr 03, 2019 9:15 am
Forum: Flowcode V8
Topic: PIC10F202 OSCCAL
Replies: 2
Views: 2151

Re: PIC10F202 OSCCAL

OK, This seems to compile: #asm movlw OSCCAL #endasm The XC8 compiler manual says "Note that this function is automatically called by the runtime start-up code (unless you have explicitly disabled this option,( see Section 3.7.1.14 “osccal”) and you do not need to call it to calibrate the internal o...
by Dave Squibb
Tue Apr 02, 2019 5:37 pm
Forum: Flowcode V8
Topic: PIC10F202 OSCCAL
Replies: 2
Views: 2151

PIC10F202 OSCCAL

Hi all, I need to load OSCCAL with its stored value. Tried asm movwf OSCCAL in a C Box And got compiler errors: 31: __config("__PROG_CONFIG", "pic", 0x1, 0x3FEB); ^ (1386) unable to determine the semantics of the configuration setting "OSC" for register "CONFIG" (warning) PIC10F.c: main() 74: asm mo...
by Dave Squibb
Fri Feb 01, 2019 5:06 pm
Forum: Flowcode V8
Topic: SD card files
Replies: 8
Views: 4796

Re: SD card files

And all is now clear.
Thanks Benj.
by Dave Squibb
Fri Feb 01, 2019 12:50 pm
Forum: Flowcode V8
Topic: SD card files
Replies: 8
Views: 4796

Re: SD card files

Hi Benj,

Most of this makes sense to me with the help of the simulator. Struggling with these two lines

Code: Select all

NumericData[VarIndex] = NumericData[VarIndex] * 10
NumericData[VarIndex] = NumericData[VarIndex] + (StrData[StrIndex] - '0')
What is the *10 doing? Also the -'0'?

Thanks,
Dave.
by Dave Squibb
Thu Jan 31, 2019 6:14 pm
Forum: Flowcode V8
Topic: SD card files
Replies: 8
Views: 4796

Re: SD card files

Wow, I'm glad you only did a "simple" example Benj! It'll take me some time to get my head around that.
Thanks very much for taking the time to do it. (I may well be back with a few questions)
Dave.
by Dave Squibb
Thu Jan 31, 2019 1:29 pm
Forum: Flowcode V8
Topic: SD card files
Replies: 8
Views: 4796

Re: SD card files

Hi Benj,
Thanks for that. I'll have a read of the state machine info. Good point about making all variables the same.
Yes please, a simple example would be very helpful.
Thanks again,
Dave.
by Dave Squibb
Thu Jan 31, 2019 12:39 pm
Forum: Flowcode V8
Topic: SD card files
Replies: 8
Views: 4796

SD card files

Hi all, I have an application where I need to read in parameters from an SD card to PIC variables. I want to write the parameters on to the SD card on a PC. I am thinking of using notepad to write the files and saving them as .txt files Say I have 2 lists of parameters saved as Type1.txt and Type2.t...
by Dave Squibb
Wed Jan 02, 2019 3:40 pm
Forum: Flowcode V8
Topic: SCADA question
Replies: 1
Views: 1812

SCADA question

Hi, Can SCADA be used to make a PC interface to read / write to an SD card via USB to a card reader?
I would like to have data stored on an SD card for use with an 8 bit PIC but have the ability to update the card externally on a PC using a custom PC program (SCADA).
Thanks,
Dave.