Search found 7406 matches

by medelec35
Tue Dec 01, 2020 8:23 pm
Forum: General Programming
Topic: TIMER QUESTION
Replies: 1
Views: 10

Re: TIMER QUESTION

Hi Bob, What I would do is use set a variable e.g called to set the SecondsDuration to the required seconds duration e.g 20. So you could then use a decision branch within timer interrupt: if SecondsDuration = Seconds then seconds = 0; toggle pin. The SecondsDuration could of course be any value. Gi...
by medelec35
Tue Dec 01, 2020 2:09 pm
Forum: Flowcode V6
Topic: PIC16F1503
Replies: 16
Views: 452

Re: PIC16F1503

Hi Juzar,
Glad you are getting further.
Thanks for letting us know.
It's not easy to follow screen shots to see what's going on.
Can you post your flowchart and I will take a look at it when I home from work,
by medelec35
Sun Nov 29, 2020 11:27 am
Forum: Flowcode V6
Topic: PIC16F1503
Replies: 16
Views: 452

Re: PIC16F1503

Hi Juzar, You're welcome. Though counter increases from 0-9, the number freezes to 0 0 0 on all three digits. You must have a hardware issue, as your code Works on my hardware. Only difference is I'm using a PIC16F1937 which should make no difference to the outcome All three of my displays count fro...
by medelec35
Sat Nov 28, 2020 12:13 pm
Forum: Flowcode V6
Topic: PIC16F1503
Replies: 16
Views: 452

Re: PIC16F1503

Hi Juzar you have missed this in Main: Using MOD.png So you will need an individual variable for each digit. I would not recommend placing the the MOD calculations within the timer interrupt. The MOD function works by extracting the remainder after a division. In this case it's used to extract hundr...
by medelec35
Wed Nov 25, 2020 9:33 pm
Forum: Flowcode V6
Topic: PIC16F1503
Replies: 16
Views: 452

Re: PIC16F1503

Hi
I would recommend controlling 7Seg displays like this
I would suggest looking at 7Segment Timer demo and changing it into the voltmeter you are after.
If you are stuck, I can help you further.
by medelec35
Tue Nov 24, 2020 6:04 pm
Forum: Flowcode V8
Topic: NTC thermistor Temp sensor
Replies: 68
Views: 3318

Re: NTC thermistor Temp sensor

Hi Derrihj,
Sorry for the delay,
I have sent you a PM.
by medelec35
Tue Nov 24, 2020 1:18 pm
Forum: Bug Reports
Topic: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT
Replies: 18
Views: 245

Re: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT

Hi Guys.
Thank you for the confirmation and nice words.
All appreciated.
by medelec35
Mon Nov 23, 2020 7:28 pm
Forum: Bug Reports
Topic: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT
Replies: 18
Views: 245

Re: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT

Hi All, I have an unofficial fix for you. Note Run an update before applying fix, as the update will override the fix. You will need to place the attached file in C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC which is hidden by default. If file was added when Flowcode was running then flowchart will r...
by medelec35
Mon Nov 23, 2020 1:56 pm
Forum: Bug Reports
Topic: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT
Replies: 18
Views: 245

Re: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT

Hi,
This evening when I get home from work,
I will see if I can post an unofficial fix to get the ADC component working.
by medelec35
Tue Nov 17, 2020 10:15 pm
Forum: Flowcode V8
Topic: Compiler problem PIC 18F4450
Replies: 7
Views: 103

Re: Compiler problem PIC 18F4450

I am still getting the following warning. ^ (1386) unable to determine the semantics of the configuration setting "FOSC" for register "CONFIG1H" (warning) That issue I covered by You will need select the correct oscillator type The default oscillator type is 15, which is nonsensical. You will need ...
by medelec35
Tue Nov 17, 2020 9:17 pm
Forum: Flowcode V8
Topic: Compiler problem PIC 18F4450
Replies: 7
Views: 103

Re: Compiler problem PIC 18F4450

The issues are within configuration settings i.e Build, project options, configure.
You will need select the correct oscillator type and change Extended CPU Enable to Disable.
You will be best going over all the options e.g Watchdog Time to disable etc.
by medelec35
Tue Nov 17, 2020 9:03 pm
Forum: 8-Bit PIC
Topic: Fixed frequency timed output
Replies: 33
Views: 624

Re: Fixed frequency timed output

Hi Bob,
maybe best to try on hardware.
I can see where there would be a stack issue.
Unless the I2C backpack is causing an issue with the stack?
Perhaps matrix staff would know the answer?
I'm note sure how to increase software stack with XC8?
by medelec35
Tue Nov 17, 2020 7:16 pm
Forum: 8-Bit PIC
Topic: Fixed frequency timed output
Replies: 33
Views: 624

Re: Fixed frequency timed output

The idea of the moving the calculation within the interrupt was so the 60 is shown only when LED is enabled and output is on (and see seconds counting). Otherwise displays shows as 0. Just tried it and works every time for me. Changed your flowchart to replicate the image I have posted. I can see a ...
by medelec35
Tue Nov 17, 2020 6:16 pm
Forum: 8-Bit PIC
Topic: Fixed frequency timed output
Replies: 33
Views: 624

Re: Fixed frequency timed output

Hi Bob,
Try changing interrupt to:
Change timer interrupt to this.png
Change timer interrupt to this.png (60.02 KiB) Viewed 168 times
by medelec35
Mon Nov 16, 2020 6:28 pm
Forum: General Programming
Topic: Flowcode6
Replies: 6
Views: 685

Re: Flowcode6

Hi Alexandr, Can you ask for help via main forums please and not via PM as its against forum rules . Issues with your flowchart is you need to add a LCD start component before the main loop: LCD1.png & Within configuration settings, you will need to change RC to XT as RC is only If you have an exter...
by medelec35
Thu Nov 12, 2020 6:41 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 231

Re: Ports A6 & A7 not accessible

Hi Ben,
You're welcome.
Thank you for the updates.
by medelec35
Wed Nov 11, 2020 9:31 pm
Forum: General Programming
Topic: HIGH LOW VOLTAGE DETECTION
Replies: 2
Views: 177

Re: HIGH LOW VOLTAGE DETECTION

Hik Bob.
Check out:
PIC18-Q10
PIC18-K40
PIC18-K42
PIC18-K83

For example PIC18f27K40
by medelec35
Sun Nov 08, 2020 10:19 pm
Forum: General Programming
Topic: Bluetooth on Android
Replies: 23
Views: 897

Re: Bluetooth on Android

I don't have any issues with HC05 or HC06 as created a flowchart that can program both. It can set the baud, the pin and the name with a number after, with is automatically incremented. This is in case you have a fair few that require programming. I Could adapt it for an Arduino if you are intereste...
by medelec35
Sun Nov 08, 2020 2:21 am
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 231

Re: Ports A6 & A7 not accessible

I have moved topic to bug reports for Matrix staff to sort out.
by medelec35
Sun Nov 08, 2020 1:59 am
Forum: General Programming
Topic: Bluetooth on Android
Replies: 23
Views: 897

Re: Bluetooth on Android

Sounds really good.
Does it work as expected?
by medelec35
Sat Nov 07, 2020 9:21 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 231

Re: Ports A6 & A7 not accessible

Thanks Ian,
Glad you sorted it now.
ianjoh wrote:
Sat Nov 07, 2020 9:05 pm
my mistake was to allow FC to do an update which rolled the file back!
Yes that will do it. :lol:
No problem easily done.
I have not got the chip to test A6 &7.
Hopefully will work okay.
by medelec35
Sat Nov 07, 2020 8:15 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 231

Re: Ports A6 & A7 not accessible

Hi Ian,
Working okay for me:
Port A Selection.png
Port A Selection.png (39.27 KiB) Viewed 185 times
Did it state you already have a file with the same name and do you want to replace the file in the desination?
by medelec35
Sat Nov 07, 2020 12:28 am
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 231

Re: Ports A6 & A7 not accessible

Hi Ian,
As a temp unofficial fix can you try the attached file?
You will need to place it in C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\PIC which is hidden by default.
If file was added when Flowcode was running then flowchart will require reloading.
by medelec35
Fri Nov 06, 2020 12:02 am
Forum: General Programming
Topic: Bluetooth on Android
Replies: 23
Views: 897

Re: Bluetooth on Android

No problem Martin. What I do to live test i.e not install apk on the mobile. Install then run on mobile MIT App Inventor 2. I find it better to tick use Legacy Connection. On the PC browser connect to App inventor 2, then select Connect, AI Companion. A Qcode will pop up. On your mobile, Select Scan...
by medelec35
Thu Nov 05, 2020 10:47 pm
Forum: Flowcode V6
Topic: Using FFT_test.fcfx
Replies: 59
Views: 24558

Re: Using FFT_test.fcfx

Hi Abhi, Any voltages less the minimum resolution E.g for 10 bit = 5/1024 = 4.88mv will be treated a 0 That will include negative voltages. You will need to be careful with negative voltages as the clamping diodes will clamp the ADC pin to -0.7v If current is not limited and voltage is lower than -0...