Search found 6622 matches

by medelec35
Mon Apr 22, 2019 2:33 pm
Forum: Flowcode V8
Topic: Servo motor
Replies: 6
Views: 161

Re: Servo motor

Hi.
Version 8.0 does not allow updates.
You must update to 8.1.1.11,
updates will then work.
Have a look at this post.
by medelec35
Sat Apr 20, 2019 7:14 pm
Forum: Flowcode V7
Topic: Chip not found or missing
Replies: 1
Views: 40

Re: Chip not found or missing

Hi Frank,
Looks like your Flowcode is out of date.
I can select the 16F15313 ok:
V7 16F15313.png
V7 16F15313.png (149.51 KiB) Viewed 37 times
You can overwrite existing files with the update found here
by medelec35
Wed Apr 17, 2019 1:46 pm
Forum: Feature Requests
Topic: Back to prevoius macro
Replies: 2
Views: 53

Re: Back to prevoius macro

Hi Jan,
not sure if I understood correctly.
Have you tried the Viewmenu, Project explorer?
Just 'double click' then the macro will open:
by medelec35
Wed Apr 17, 2019 8:34 am
Forum: Flowcode V7
Topic: Saving signed integers in EEPROM?
Replies: 6
Views: 80

Re: Saving signed integers in EEPROM?

Hi Jan,
This post might help?
by medelec35
Wed Apr 17, 2019 7:13 am
Forum: Bug reports
Topic: Timer1 & 2 16F15xxx
Replies: 2
Views: 87

Re: Timer1 & 2 16F15xxx

Thanks, Ben
No compile errors now, with Timer1 or Timer2.
by medelec35
Tue Apr 16, 2019 8:56 pm
Forum: Feature Requests
Topic: LCD PrintString
Replies: 2
Views: 59

Re: LCD PrintString

Hi Jan,
Have you tried going to the bottom of the window, left click on the up/down arrow and drag the window down?
The window should stay expanded?
by medelec35
Mon Apr 15, 2019 1:01 pm
Forum: Bug reports
Topic: Timer1 & 2 16F15xxx
Replies: 2
Views: 87

Timer1 & 2 16F15xxx

Just adding enable for both timer1 and timer2: 89: T1CONbits.T1OSCEN = 0; ^ (255) not a member of the struct/union "" ^ (182) illegal conversion between types int -> volatile union S148 91: T1CONbits.TMR1CS1 = 1; ^ (255) not a member of the struct/union "" ^ (182) illegal convers...
by medelec35
Wed Apr 10, 2019 8:38 am
Forum: Bug Reports
Topic: I2C 18F47K40
Replies: 13
Views: 318

Re: I2C 18F47K40

Hi Leigh,
Tried I2C with:
channel2 (SDA = RD0, SCL = RD1) - Working.
channel1 (SDA = RC0, SCL = RC1) - Not Working.
Software (SDA = RC0, SCL = RC1) - Working.
Using internal osc @ 48MHz
by medelec35
Tue Apr 09, 2019 2:55 pm
Forum: Bug Reports
Topic: I2C 18F47K40
Replies: 13
Views: 318

Re: I2C 18F47K40

Just checked and that was running with OSCFRQ = 0x07; as your previous program, so that will be 48MHz, not 64 Yes I was running osc for I2C at 48MHz. What to change it to 64MHz when ADC was working. Just changed the ADC conversion speed to Fosc/16 and all is well again. (@64MHz) Brilliant thanks Le...
by medelec35
Tue Apr 09, 2019 2:55 pm
Forum: Bug Reports
Topic: I2C 18F47K40
Replies: 13
Views: 318

Re: I2C 18F47K40

Just checked and that was running with OSCFRQ = 0x07; Yes I was running osc for I2C at 48MHz. What to change it to 64MHz when ADC was working. as your previous program, so that will be 48MHz, not 64 Just changed the ADC conversion speed to Fosc/16 and all is well again. (@64MHz) Brilliant thanks Le...
by medelec35
Tue Apr 09, 2019 2:32 pm
Forum: Bug Reports
Topic: I2C 18F47K40
Replies: 13
Views: 318

Re: I2C 18F47K40

LeighM wrote:'ve just done a quick ADC test with default settings and it looks OK.

Hi Leigh,
Was that running the chip with internal osc @ 64 MHz?
by medelec35
Mon Apr 08, 2019 1:52 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

unfortunately , I have no free pins in PIC , only E.2 (ADC7) and B.5 (ADC2) . What I would do in that case is swap E2 with any port B pin's so you have 2 portB pins free. Add a dual comparator e.g LM293 with the correct bias resistors. The outputs of the comparators can then go the port B pins whic...
by medelec35
Mon Apr 08, 2019 7:16 am
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

If you don't mind a bit of extra hardware, Rather than using high wattage resistors, what about using the two comparators within PIC? It just means using two extra pins for the two fixed resistors (connect both inverting pins together, unless different thresholds are required) to set threshold volta...
by medelec35
Sun Apr 07, 2019 7:06 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

If it was me, For rapid speed, I would forget about ADC. Just use a low value fixed resistor that when a excess flows through it, the voltage drop across it will be high enough for logic 1 of interrupt. Then within the interrupt place an output that when its logic 0 will cut the supply to the mosfet...
by medelec35
Sun Apr 07, 2019 2:13 pm
Forum: Flowcode V7
Topic: Microchip PIC16F1939T-I/PT
Replies: 2
Views: 99

Re: Microchip PIC16F1939T-I/PT

You can read the whole port at once: Read Whole Port.png You can also select Use Masking and only tick the pins you want to use. Once read the port what do you want the output to do, match the input exactly? If so just used the same variable you used on the input for the output and again select whol...
by medelec35
Sun Apr 07, 2019 1:58 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 25
Views: 585

Re: Dc voltmeter 0-55v

Fault with hardware?
I have tried it today with 16F18877 and working as expected:
0 to 55 Voltmeter.jpg
0 to 55 Voltmeter.jpg (39.18 KiB) Viewed 228 times


After removing power and connecting back up to a supply I got the same reading on the LCD so the 11 was saved.
Have you measured the voltage on both pins 7 & 2?
by medelec35
Sat Apr 06, 2019 8:34 pm
Forum: General Programming
Topic: LCD prints erroneously
Replies: 7
Views: 321

Re: LCD prints erroneously

You're welcome.
Just glad you have it working now.
Thanks for the update.
by medelec35
Sat Apr 06, 2019 3:16 pm
Forum: Flowcode V8
Topic: 16LF18857
Replies: 9
Views: 429

Re: 16LF18857

Jan Lichtenbelt wrote:I only get the warning message that the "flash memory not verified".

Hi Jan,
In my experience that message is always displayed when mLoader was unable to program chip.

Have you got an alternative programmer you can try?

What happens if you load mLoader and select Autodetect ?
by medelec35
Sat Apr 06, 2019 12:33 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 25
Views: 585

Re: Dc voltmeter 0-55v

I have made corrections to your flowchart.
You can't x dvF if dvF is 0 as result will always be 0.
So dvF is now from 1 to 11, rather than 0 to 11
Removed unecessary variables etc..
Hopefully should work as intended?
by medelec35
Sat Apr 06, 2019 11:25 am
Forum: General Programming
Topic: LCD prints erroneously
Replies: 7
Views: 321

Re: LCD prints erroneously

Hi fotios one important thing to remember is :
A value in a calculations involving floats e.g 32768 are treated as integers.
You need to cast it to a float by adding a real portion i.e always as .0 at the end.

So I would do

Code: Select all

A_FLP = (A_UINT * 32767.0 * 0.001) / 32768.0
by medelec35
Fri Apr 05, 2019 1:58 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 25
Views: 585

Re: Dc voltmeter 0-55v

That will be easy to do. Before the main loop, Reed the EEPROM contents where ADCKal will be stored. If its value is 255 then assign ADCkal with 0 If is not = 255 the ADCkal = EEPROM read data. Within Main there will be an input to the Calibration switch. Place an input and assign it to something li...
by medelec35
Fri Apr 05, 2019 12:31 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 25
Views: 585

Re: Dc voltmeter 0-55v

As ReadAsBytye has a range from 0 to 255, then just divide the ADC by 25
Just read the with ADCkal as return value.
Then use ADCkal = ADCkal/25
by medelec35
Fri Apr 05, 2019 7:20 am
Forum: Flowcode V6
Topic: LCD 16x4
Replies: 7
Views: 181

Re: LCD 16x4

Hi John,
the 20x4 is wired exactly the same as 16x2.
The pins to use can be found on this datasheet on page 7.

LCD's can be wired in 4 bit (using a total of 6 MCU pins) or 8bit (using a total of 10 MCU pins)
The standard way for flowcode is to use 4bit mode.
by medelec35
Thu Apr 04, 2019 9:01 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 25
Views: 585

Re: Dc voltmeter 0-55v

What value Range do you want the pot to equal?
E.g if pot is 0 to 1023 you want it to equal 0 to 11 for example.
by medelec35
Thu Apr 04, 2019 6:30 pm
Forum: Flowcode V8
Topic: Newer version?
Replies: 3
Views: 144

Re: Newer version?

No problem.
I have replaced the file with a file that has been saved with the correct version.