Search found 143 matches

Return

by medelec35
Fri Apr 01, 2016 6:17 am
Jump to forum
Jump to topic

Re: Decission won't switch

Hi John, As kersing explained, Within the same microcontroller, you can't set a pin high or low, then expect to be able to read the same pin. When you read a pin the value read can only only be what is been made to do externally. For example if a different microcontroller output is connected to the ...
by medelec35
Fri Apr 01, 2016 8:42 am
Jump to forum
Jump to topic

Re: Decission won't switch

Hi John, My display won't display 0 0 0 0 Only - - - 0 Quad 7seg LED displays can only show 1 digit at a time. So if for example you sent 1234 to one 7seg at a time this would happen: 1 to 7seg0: 7seg0 = 1 7seg1 = Off 7seg2 = Off 7seg3 = Off 2 to 7seg1: 7seg0 = Off 7seg1 = 2 7seg2 = Off 7seg3 = Off ...
by medelec35
Wed Apr 06, 2016 8:27 pm
Jump to forum
Jump to topic

Re: Clear Macro Calls

Hi John, What you are looking at it the Macro stack. Since Main is the Main macro it will always be shown. When a call macro is encountered, the Main macro will drop down the list by one. When a another call macro is encountered, Main will drop down the list by another one place. the two call macros...
by lordhex
Thu Apr 07, 2016 8:15 am
Jump to forum
Jump to topic

Re: Clear Macro Calls

Main call => To do list value =0
if todo list value =0 ?
Yes = do something. then make value 1
No= Do nothing.
Can be help to you.
by medelec35
Thu Dec 29, 2016 12:27 pm
Jump to forum
Jump to topic

Re: Button action not working

Hi John, I have just had a look at Halloween Spooky counter 2017.fcfx The Quad 7Seg you have got within timer interrupt so the port it's connected to are being changed or a regular basis automatically. One of the Pins is port A0 which is a common for 7seg0. If you drag an LED on your panel and assig...
by medelec35
Tue Jan 03, 2017 9:33 am
Jump to forum
Jump to topic

Re: Flowcode not working in live build

Hi John, Happy New Year. Issue is with setting up of the timer interrupt. Double click on the interrupt to show properties. You will need to change Clock Source Select from Transition on T0CKI pin to Internal clock (CLKO) Perhaps you can also change Prescaler Rate from 1:1 to 1:32 Martin
by medelec35
Mon Jan 09, 2017 11:44 pm
Jump to forum
Jump to topic

Re: Count past 10

Hi John , Looks like the wrong values are being sent to the 7seg displays! Each display has to have a value from 0 to 9 So to show 10 you will need to send a 1 to first display then send the 0 to the second display. It looks like you are sending numbers greater than 9 to a single display: Seg Values...
by medelec35
Wed Jan 11, 2017 7:18 am
Jump to forum
Jump to topic

Re: Count past 10

Hi John,
Some of the calculations were wrong.
Try the attached flowchart.

Martin
by medelec35
Wed Jan 11, 2017 10:25 am
Jump to forum
Jump to topic

Re: Count past 10

Hi John,
You all sorted now?
by Docara
Sun Aug 13, 2017 2:30 am
Jump to forum
Jump to topic

Re: Kepad Development

Hi John, Ideally you need resistors on all the lines (including A7 tied high or low. I would tie them all to VCC 5V in your case. Then each key press would go low. You won't get ASCII directly you will have to 'force' it by using the switch input icon. The comparison values you have to use will be b...
by Benj
Mon Aug 14, 2017 12:13 pm
Jump to forum
Jump to topic

Re: Kepad Development

Here's a schematic for the 3 x 4 keypad layout we use on our E-blocks. For a 4 x 4 layout simply add another column. D0-D7 are the Microcontroller Port pins on the E-block connector (not necessarily port D). KeypadSchematic2.jpg Also added to the Keypad page of the Wiki for reference. https://www.ma...
by Benj
Tue Aug 15, 2017 11:27 am
Jump to forum
Jump to topic

Re: Kepad Development

Hi John, I'm puszzeled on how to get a reading from the "Switch" The switches in the keypad are scanned a column at a time. We start with column 1 where we drive the pin high from the micro, columns 2 and 3 are driven low from the micro. We then check input pins A-D to see if we have a log...
by Docara
Tue Aug 15, 2017 10:22 pm
Jump to forum
Jump to topic

Re: Kepad Development

Hi John, Right thanks for the info and you haven't wasn't my time - but I was beginning to feel you might be :D :wink: I think this is a case of trying to stop you over thinking - you're winding yourself up in knots lets rewind a bit!!! First off stop thinking about ASCII this or ASCII that. Lets ge...
by medelec35
Wed Aug 30, 2017 10:13 pm
Jump to forum
Jump to topic

Re: Keypad and collecting digits

Hi John,
If you post a flowchart configured for your target device with your keypad on it, I will modify it for you.

Martin
by medelec35
Tue Sep 05, 2017 11:05 am
Jump to forum
Jump to topic

Re: Keypad and collecting digits

Hi John sorry for the delay. I have modified flowchart so three separate numbers that are pressed on the keypad are stored in a 3 element array called Correct2. Then the array can be used for sending the 3 separate numbers via SPI. The routine I added can be expanded to say press * to change number ...
by medelec35
Wed Sep 06, 2017 10:29 am
Jump to forum
Jump to topic

Re: Keypad and collecting digits

Hi John,
Attached flowchart maybe just what your after?

Examples:
Press 0 then 105 will change Home to 5
or
Press 0 then 325 will change Visitor to 25

If a wrong first number is entered by mistake e.g 202 instead of 302, then it will allow you to enter the 3 digits again!

Martin
by LeighM
Mon Oct 09, 2017 9:15 am
Jump to forum
Jump to topic

Re: Port B7 Problems

Hi To read port B pin 7 you should use $PORTB.7 not $PORTB7 Are you sure that is what you want to do? Why are you trying to read the input state of Port B.7 when you have B.7 connected to an LED? You set it high, which will light the LED, but then doing an input will turn the port into a high impeda...
by medelec35
Sat Sep 01, 2018 2:51 am
Jump to forum
Jump to topic

Re: No child Block

Hi John, The contents of the Team LCD Version May 8 2018 recovery.fcfx does not resemble a flowchart at all. If you open that and open a flowchart (that normally opens ok) in an editor then you will see how different it is. Are you able to recover Team LCD Version May 8 2018.fcfx.001? Then just dele...
by medelec35
Thu Sep 06, 2018 7:31 am
Jump to forum
Jump to topic

Re: How to stop and collect a Keypad Digit

Hi John, Good to see you back on the forums as well. I have spotted two issues within Keypad macro: Flowchart issues.png 1) You have got a keypad component macro to first detect what key you pressed then another keypad component macro to wait until a key is pressed. Doing that way around will not de...
by medelec35
Sat Sep 08, 2018 5:17 pm
Jump to forum
Jump to topic

Re: How to stop and collect a Keypad Digit

Hi John, glad you are all sorted now.
This may or may not be of interest to you?
by medelec35
Fri Sep 14, 2018 9:02 am
Jump to forum
Jump to topic

Re: Flowcode 6 & PicKit 2

Hi John,
If I remember correctly, with PICkit2 you can't have any spaces within your project name.
Try replacing spaces with underscores.
Also, can you post the programmer settings as well?
Can you actually see the hex file within the project folder?
by medelec35
Sun Sep 16, 2018 9:21 am
Jump to forum
Jump to topic

Re: Flowcode 6 & PicKit 2

Hi John, Sorry I have been extreamly busy so only been quickly brushing over the posts. This is clearly wrong! Compiler settings.png Looking at your screen capture (post error within a code box as is it's much better than screen capture) Flowchart is trying to compile with the wrong exe file instead...
by medelec35
Mon Sep 17, 2018 6:07 am
Jump to forum
Jump to topic

Re: Flowcode 6 & PicKit 2

Hi John,
Have you made any progress since the last post or do you require further help?
by medelec35
Mon Sep 17, 2018 9:37 pm
Jump to forum
Jump to topic

Re: Flowcode 6 & PicKit 2

Compiler settings should have loaded in when imported PICkit2.FCS The settings I have are: Compiler Location: pic\boostc\boostc_$(family:/12F/16F).exe Parameters : -v -t PIC$(chip:u) "$(target).c" Linker/Assembler Location: $(appdir)compilers\pic\boostc\boostlink_picmicro.exe Parameters : ...
by medelec35
Wed Sep 19, 2018 9:28 am
Jump to forum
Jump to topic

Re: Flowcode 6 & PicKit 2

Hi John,
Have visited this thread?