Search found 15 matches

Return

by medelec35
Fri Jan 30, 2015 3:15 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hi Jay, welcome to the forums and the world of flowcode. Yes you have posted in the right place for help :) I have attached how I personally create a flowchart to toggle an output for a momentary switch. I would recommend taking a look at the Learning Centre I would also suggest following the link t...
by medelec35
Fri Jan 30, 2015 10:53 pm
Jump to forum
Jump to topic

Re: Learner PIC

No problem if you get stuck then we can off further help.

One thing you will need to do is change the clock speed to 4MHz (Build, project options), as I left that bit out.

Martin
by medelec35
Sat Mar 14, 2015 9:08 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hi Jay,
What problem are you having with adding switches?
Can you give more details please.
I went to the Inputs menu, selected switch and add to dashboard panel and switch was placed in the dashboard panel OK:
Adding sw.png


Do you still require help with EEPROM?


Martin
by medelec35
Tue Mar 17, 2015 8:45 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hi Jay, I have modified Flowchart to work with 3 switches and save output to internal EEPROM To view the contents of EEPROM select Console from the View menu. When reading EEPROM you need to not that the default value is always 255 What I do if 255 could be a value I would like to save is when writi...
by medelec35
Wed Mar 18, 2015 2:47 pm
Jump to forum
Jump to topic

Re: Learner PIC

Modified Flowchart to use 3 bool variables for the 3 outputs.
Still only using a single byte to store individual bool values within EEPROM
Just saves EEPROM space.

Martin
by medelec35
Sun Aug 14, 2011 8:40 pm
Jump to forum
Jump to topic

Re: Encoder triggered by Port B interrupt

Hi Fotis, Problem with using port B int is you can't use the 5ms delays. If you place a delay within an interrupt, and delay has not ended before interrupt is triggered again, then corruption will occur. So if there is a bounce issue, then you will have to use a cap across the o/p of A and B to GND ...
by medelec35
Fri Feb 12, 2016 11:03 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hi Jayadev, I do understand what is Xor. XOR is eXclusive OR Which means the output is high only when both inputs are exclusivity different. The <<3 (shift three places to the left) just shift the bits 3 places to the left because the i/p is the first 3 bits and the output is from bit 4 to bit 7 For...
by medelec35
Sat Feb 13, 2016 12:20 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hi Jayadev, No problem. Does this 1-7 'bit' means pinout for the ports which is not as straight as I think or something more please explain . (attached a picture) Yes It is the pinout for the port. The port in this case is 8 bits wide but we are just using bits 0 to 5 (A0 to A5): Switch control LED1...
by medelec35
Sun Feb 14, 2016 11:24 am
Jump to forum
Jump to topic

Re: Learner PIC

Only when flowcode simulator is running you can click the red arrows to move in the direction arrows show.
Keep mouse button down for continuous movement.
by medelec35
Sun Feb 14, 2016 12:35 pm
Jump to forum
Jump to topic

Re: Learner PIC

If you post your flowchart I will take a look.
by medelec35
Sun Feb 14, 2016 1:45 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hi, you had two encoders added to your flowchart. One on the system panel and one on the dashboard. The components won't simulate (rotate on the panel) if enable wasn't added. This turned out to be the case. Encoder on the system panel does have enabled component added so that does rotate just fine....
by medelec35
Tue Feb 16, 2016 8:39 pm
Jump to forum
Jump to topic

Re: Learner PIC

1.As per the flowchart I thought the counter would reset after 255 but it doesnt.it seems to be counting forever.I made it count more than 1049 It depends on what type the variables are designed to. When you add a new variable: Variable ranges1.png You can see if you add a byte, when incrementing t...
by medelec35
Fri Feb 26, 2016 9:47 pm
Jump to forum
Jump to topic

Re: Learner PIC

Thanks again Medelec No problem. What does the Percent sign mean,From internet I realize it is modulus which means the result is the final remainder,But what exactly is happening with above calculation. It is a code from a volt meter. the % as you state is the modulus. if you have a variable called...
by Benj
Mon Feb 29, 2016 12:09 pm
Jump to forum
Jump to topic

Re: Learner PIC

Further to Martin's post. What does the Percent sign mean,From internet I realize it is modulus which means the result is the final remainder,But what exactly is happening with above calculation. If you take this. Result = 123 % 10 Then the Result is 3. What is actually happening is the following. T...
by Benj
Mon Feb 29, 2016 6:18 pm
Jump to forum
Jump to topic

Re: Learner PIC

Hello, You can think of modulus as counting to the number and then resetting to 0 when it reaches it. so 15 % 10 we count up from 0 until we reach 10, at that point we reset our counter to 0 again and continue counting. The end result being 5. 0 = 0 1 = 1 2 = 2 3 = 3 4 = 4 5 = 5 6 = 6 7 = 7 8 = 8 9 ...