Search found 111 matches

Return

by medelec35
Mon Jun 10, 2013 12:03 pm
Jump to forum
Jump to topic

Re: Problem programming Chip

Hi JDR04 From looking at files you have sent, It looks like you're running an old version of Flowcode, which had a bug of not transferring configuration settings to hex file and hence not loaded into target device. (I have confirmed this is the case since your hex file indeed does not contain the co...
by medelec35
Mon Jun 10, 2013 10:22 pm
Jump to forum
Jump to topic

Re: Problem programming Chip

No better. So we need to look at your compiler options (Build, compiler options, Programmer tab.) Use External program to set configurations must be enabled. (only thing I can think of its not enabled or you have not got -config on the end of -cs 2 -chip PIC%p in the lowest parameter settings?). Thi...
by dazz
Wed Jun 12, 2013 10:32 am
Jump to forum
Jump to topic

Re: Problem programming Chip

Hi JDR04
To do a screen grab , press control and prtscn, this will copy the screen to the windows clipboard ,then open a paint program( i use paint.net) and paste

Regards
Dazz
by Steve001
Sun Dec 29, 2013 10:20 am
Jump to forum
Jump to topic

Re: Which PIC to use??

Happy new year too

martin (medelec) found a good selector tool and easy to use too

viewtopic.php?t=10883&p=36370#p36370

you could also use the ECIO range too

http://www.matrixmultimedia.com/ecio.php


steve
by medelec35
Mon Dec 30, 2013 12:15 am
Jump to forum
Jump to topic

Re: Which PIC to use??

JDR04 wrote:I had a look at the PIC12F683 but it appears that I would have to buy all sorts of other stuff to program it via my PICKIT2.

No,
12F683 can be programmed via ICSP and PICkit 2 in situ.
No additional stuff required.
by kersing
Mon Jan 06, 2014 12:45 am
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Try setting Watchdog Timer to Off. Also disable Brown Out Detect.
by medelec35
Mon Jan 06, 2014 12:09 am
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Hi John.
You will need to go to 'Build' menu, select 'Compiler options', then click on the 'Programmer tab'.
Make sure you have 'Use external program to set configuration options' ticked:
Config1.png


Martin
by medelec35
Sun Jan 05, 2014 11:18 pm
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Hi John, Two things. 1) If there is not a pull-up resistor connected from Pin 4 (MCLR) to +5V then you will need to go into the configuration screen and change Master clear enable from external to internal. 2) If there is no external crystal then you will need to go into the configuration screen and...
by medelec35
Sun Jan 05, 2014 12:01 am
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Hi John it looks like you have not set the Compiler parameters up correctly
Have you looked at:
http://www.matrixmultimedia.com/support ... f=68&t=787

Then checked all is set up correctly?

Edit: crossed posted with kersing.
by kersing
Sun Jan 05, 2014 12:00 am
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

It looks like your compiler settings are incorrect. Could you start by resetting them to default and try to compile the flowchart to see if that succeeds? If it does, change the programmer settings to those required for PICkit and try again. Make sure you change the programmer settings, not the comp...
by Benj
Mon Jan 06, 2014 4:43 pm
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Hello, Your middle picture shows the problem. The compiler is set to call the PICkit executable. That is certainly not right. First of all reset to the defaults and this should allow you to compile to hex correctly. Once you have this working you can start worrying about the PICkit settings in the &...
by kersing
Mon Jan 06, 2014 10:19 pm
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

John,

Looks right, now you need to change the settings in the programmer tab (and only in that tab) to the ones used for PICkit.

Regards,

Jac
by medelec35
Tue Jan 07, 2014 9:12 pm
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Sorry was a typo, it should had said red lead i,e the lead connected to resistor/LED anode. It's to prove that LED and +5V are correctly working. Issues sounds to me that pickit is not configured to power device after programming has finished, which is what Dazz is saying. I totally agree. To leave ...
by dazz
Tue Jan 07, 2014 8:51 pm
Jump to forum
Jump to topic

Re: ICSP 12F683 Not Working

Hi from your last post it seems all is well, as with the pickit2 you have to select the vdd on to power the target board, the power light on the pickit is there to let you know the pickit2 is powered , the target light, lights when the vdd is selected on in the software and then provides power to th...
by medelec35
Wed Jan 08, 2014 9:37 pm
Jump to forum
Jump to topic

Re: How to achieve 38Khz

Hi John, Attached is a Flowchart that flash LED connected to port GP2 at 38KHz. (Period = 26us so its 38.46KHz to be more precise :) ) To achieve this more easily: 1) I have changed the internal oscillator from 4 to 8MHz (adding a C code block with osccon=0x70; changes osc speed). I was not sure on ...
by medelec35
Wed Apr 23, 2014 8:10 pm
Jump to forum
Jump to topic

Re: Help with Flowchart Please

Hi John, Attached is one way of achieving what you want. The configuration settings have not been set up, so that will have to be completed before trying on hardware. If there are a fair amount of switches, Then you can use just one analogue pin and use all the switches to be part of a potential div...
by medelec35
Wed Apr 23, 2014 10:02 pm
Jump to forum
Jump to topic

Re: Help with Flowchart Please

No problem John.
I have changed the LED connection just so the switches can be connected to the same port to simplify software.
Hop it goes well for you.

Martin
by medelec35
Fri May 02, 2014 2:31 pm
Jump to forum
Jump to topic

Re: Help with Flowchart Please

Hi John. The uninitialised error will occur if the bank of switches connected to port a are switch in such a way that the value of Read_Switch2 does not equal to any of the switch branch values i.e 1, 2 or 4 When that happens the switch component exits our of the default bottom branch instead of the...
by medelec35
Tue May 06, 2014 1:39 pm
Jump to forum
Jump to topic

Re: Help with Flowchart Please

Hi John Are you saying that the switch numbers and connections must be the same as the bit numbers of the port.ie Switch1 connects to bit 1 of the port. No not necessarily. You can connect any switch to any i/p pin, so long as you have the correct values set up in the switch component. I have placed...
by medelec35
Fri May 09, 2014 7:34 pm
Jump to forum
Jump to topic

Re: Help with Flowchart Please

Hi John, Ping..........the penny finally dropped. I now understand the switches etc. Nice one. Feels good doesn't it. :) First it would be best if you decide what hardware is required to adjust delays. I could be a variable resistor (potentiometer or trimmer) so you would use the ADC component. Or 2...
by medelec35
Sat May 10, 2014 12:23 am
Jump to forum
Jump to topic

Re: Help with Flowchart Please

Hi John, No problem. Attached is a flowchart that will have an adjustable delay (two lots in fact) from 0 to 30.6 seconds with a resolution of 30ms It work by reading analogue channel and converting from 0 to 1023 (When you use ReadAsInt). The 0 to 1023 is multiplied by 30 to give a range of 0 to 30...
by kersing
Thu May 15, 2014 9:25 pm
Jump to forum
Jump to topic

Re: Program Wont Compile to HEX

If you read the errors carefully you will notice the error is generated by the linker, not the programmer. I suspect the spaces in your filename are the cause of the error. Try saving the Flowcode file without spaces in the name.
by Crenwick
Fri May 16, 2014 10:21 am
Jump to forum
Jump to topic

Re: Program Wont Compile to HEX

Have a check in Compiler options/Compiler if the parameters are

For location:

C:\Program Files (x86)\Flowcode\v5\Tools\boostc\boostc_pic18_flowcode.exe

For parameters :

-v -t PIC%p "%f.c"


I think you set the "Programmer" params of PICkit in the Compilers params :wink:
by kersing
Fri May 16, 2014 11:31 am
Jump to forum
Jump to topic

Re: Program Wont Compile to HEX

Hi John,

It looks like you are missing spaces in both the location and parameters. Also, are you using 64 bit windows? If not remove " (x86)" from the location.

Jac
by Crenwick
Fri May 16, 2014 12:08 pm
Jump to forum
Jump to topic

Re: Program Wont Compile to HEX

kersing wrote:Hi John,

It looks like you are missing spaces in both the location and parameters. Also, are you using 64 bit windows? If not remove " (x86)" from the location.

Jac


+1 with Jac :wink: