Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
26j50
21-03-2013, 10:45 PM,
#1
Sad  26j50
Ho costuito un pinguino con il pic 18F26j50 20MHz
e con ICD3 vi ho caricato il bootloder "bootloaderV4.2_PIC18Fx6J50_X20MHz.hex"

Ho provato il pingino ide X3 ,sembra funzionare infatti mi carica l'hex

Pinguino bootloader v4.2
Writing ...
Blink.hex successfully uploaded
Resetting ...


ma non va :
la prima volta lanpeggiava il led all'uscita 13 e 2 ( invece nel Blink.hex doveva lampeggiare l'out 13 , 12 )
poi dopo aver caricato qualche .hex per provare le altre uscite ,
ricaricando Blink.hex non lampeggiano piu neanche il 13 e 2 .


magari il pic si e' danneggiato ?

grazie .
Reply
22-03-2013, 04:56 PM,
#2
RE: 26j50
Non parlo l'italiano bene. Ma se si parla un po inglese o francese, cercherò di aiutarti.
Régis


(21-03-2013, 10:45 PM)Reenew Wrote: Ho costuito un pinguino con il pic 18F26j50 20MHz
e con ICD3 vi ho caricato il bootloder "bootloaderV4.2_PIC18Fx6J50_X20MHz.hex"

Ho provato il pingino ide X3 ,sembra funzionare infatti mi carica l'hex

Pinguino bootloader v4.2
Writing ...
Blink.hex successfully uploaded
Resetting ...


ma non va :
la prima volta lanpeggiava il led all'uscita 13 e 2 ( invece nel Blink.hex doveva lampeggiare l'out 13 , 12 )
poi dopo aver caricato qualche .hex per provare le altre uscite ,
ricaricando Blink.hex non lampeggiano piu neanche il 13 e 2 .


magari il pic si e' danneggiato ?

grazie .
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
23-03-2013, 03:32 PM,
#3
RE: 26j50
I build a penguino with the pic 18F26j50 20MHz
and ICD3 I loaded the bootloder "bootloaderV4.2_PIC18Fx6J50_X20MHz.hex"

I've tried the ide pingino X3, it seems to work I load the hex :ok

Penguin bootloader v4.2
Writing ...
BLINK.HEX successfully uploaded
Resetting ...


but so it is no :
the first time the blinking LED exit 13 and 2 (instead in BLINK.HEX was flashing out 13, 12)

-------------------------------------------------------------------------------------------------
/*
Blink a LED
*/

void setup()
{
// initialize the digital pin 13 -12 as an output.
pinMode(12, OUTPUT);
pinMode(13,OUTPUT);

}

void loop()
{
digitalWrite(12,HIGH);
delay(1000);
digitalWrite(12,LOW);
delay(500);
toggle(13);
delay(300);
}

---------------------------------------------------------------------------------------------------


then after loading a few .hex to try other outputs,

recharging BLINK.HEX do not blink not even more the outputs 13 and 2.


maybe the pic and 'damaged?

Thank you.
Reply
23-03-2013, 03:49 PM, (This post was last modified: 23-03-2013, 03:55 PM by regis.)
#4
RE: 26j50
I would recommend not to use x.3 with Pinguino 26j50 but x.4 instead.
There's now a Windows package here : http://code.google.com/p/pinguino32/downloads/list.
I also attached the last version of the bootloader (v4.8) for a 20 MHz crystal.


.hex   Bootloader_v4.8_18f26j50_X20MHz.hex (Size: 8.15 KB / Downloads: 2)
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
25-03-2013, 09:37 PM,
#5
Sad  RE: 26j50
HI
Now I upgraded bootloder v4.8 and I used the ide x.4
-----------------
Pinguino found ...
- with PIC18f26j50 (id=0x4c40)
- with USB bootloader v4.8
Writing User Application ...
Blink.hex successfully uploaded
Starting Application ...

---------------------

but there remains the problem of the previous post.
ciao
Reply
25-03-2013, 09:47 PM,
#6
RE: 26j50
OK.
Build-in Led (USERLED) is on pin 12, aka RC2. Pin 13 is on RA0.
Let's try this program first and then try it with RA0 and tell me.


void setup()
{
TRISCbits.TRISC2 = OUTPUT;
}

void loop()
{
LATCbits.LATC2 = 0;
delay(50);
LATCbits.LATC2 = 1;
delay(50);
}
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
26-03-2013, 10:13 PM,
#7
Smile  RE: 26j50
yes,yes work...
after your firmware, that worked, I tried to change it in this way
------------------------
void setup() {


TRISCbits.TRISC2 = OUTPUT;
TRISCbits.TRISC1 = OUTPUT;
TRISCbits.TRISC0 = OUTPUT;

}

void loop() {

LATCbits.LATC2 = 0;
delay(500);
LATCbits.LATC2 = 1;
delay(500);

LATCbits.LATC1 = 0;
delay(500);
LATCbits.LATC1 = 1;
delay(500);

LATCbits.LATC0 = 0;
delay(500);
LATCbits.LATC0 = 1;
delay(500);

}
---------------------------------

it all seems ok
the pin 11 (RC0) ,12(RC1) ,13 (RC2) blink the led assigned to them correctly.

what will be the problem then ..


thank you very much

(translated with google ,italian/english )
Reply
26-03-2013, 10:19 PM,
#8
RE: 26j50
Now, you could try the same with pinMode() and digitalWrite() instructions.
I guess there's a problem with toggle instruction ...

(26-03-2013, 10:13 PM)Reenew Wrote: yes,yes work...
after your firmware, that worked, I tried to change it in this way
------------------------
void setup() {


TRISCbits.TRISC2 = OUTPUT;
TRISCbits.TRISC1 = OUTPUT;
TRISCbits.TRISC0 = OUTPUT;

}

void loop() {

LATCbits.LATC2 = 0;
delay(500);
LATCbits.LATC2 = 1;
delay(500);

LATCbits.LATC1 = 0;
delay(500);
LATCbits.LATC1 = 1;
delay(500);

LATCbits.LATC0 = 0;
delay(500);
LATCbits.LATC0 = 1;
delay(500);

}
---------------------------------

it all seems ok
the pin 11 (RC0) ,12(RC1) ,13 (RC2) blink the led assigned to them correctly.

what will be the problem then ..


thank you very much

(translated with google ,italian/english )
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
29-03-2013, 10:20 PM,
#9
RE: 26j50
HI
and Happy Easter

with these instructions flashes pin13 (RC2) :
-------------------
void setup()
{
// initialize the digital pin USERLED as an output.
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
}

void loop()
{

digitalWrite(12, HIGH);
delay(500); // wait for a second
digitalWrite(12, LOW);
delay(500); // wait for a second

}
------------------------------------------------

with these instructions flashes pin2 (RA0) :
-------
void setup()
{
// initialize the digital pin USERLED as an output.
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
}

void loop()
{
digitalWrite(13, HIGH);
delay(500); // wait for a second
digitalWrite(13, LOW);
delay(500); // wait for a second

}
-------------------------------------------------------------------

with these instructions flashes pin2 (RA0) end pin13(RC2)
-----
void setup()
{
// initialize the digital pin USERLED as an output.
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
}

void loop()
{
toggle(13); // alternate ON and OFF
delay(50); // wait for a second
toggle(12); // alternate ON and OFF
delay(50); // wait for a second
}
---------------------------------------------------------

It seems to me that the instructions :pinMode();toggle() ;digitalWrite() ;
all have there anything wrong !

Tanks
Ciao.
Reply
20-04-2013, 09:08 PM,
#10
RE: 26j50
hi regis
Today I got the kit of the Penguin 26j50. (R2 = 150 ohm?)
alas it does not work correctly:
-----------------------------------------
void setup()
{
// initialize the digital pin USERLED as an output.
pinMode(13, OUTPUT);//RC2
pinMode(12, OUTPUT);//RC1
pinMode(11, OUTPUT);//RC0
pinMode(17, OUTPUT);//RC6
}

void loop()
{
toggle(13); // alternate ON and OFF
delay(50); // wait for a second
toggle(12); // alternate ON and OFF
delay(50); // wait for a second


digitalWrite(11, HIGH);
delay(500); // wait for a second
digitalWrite(11, LOW);
delay(500); // wait for a second

digitalWrite(17, HIGH);
delay(500); // wait for a second
digitalWrite(17, LOW);
delay(500); // wait for a second

}
------------------------------------
blink : pin2 (Ra0) ,pin12(Rc1) ,pin13(Rc2).

pin17(Rc6),pin11(Rc0) no blink .


I am using winxp and X.4 ide .
What can I do?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)