Add the PIC18FxxK83 family to CODEGRIP

Post Reply
Author
Message
Robin_Masters
Posts: 25
Joined: 09 Jan 2020 11:38

Add the PIC18FxxK83 family to CODEGRIP

#1 Post by Robin_Masters » 20 Sep 2022 10:09

I'm developing an application using a PIC18F26K83.

Impossible to develop the program on my EasyPIC v8 : this MCU is not in the listing of the available MCUs !

Could you please afford a solution to this issue, even a temporary one ?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Add the PIC18FxxK83 family to CODEGRIP

#2 Post by filip » 21 Sep 2022 12:45

Hi,

I will notify our development team regarding your request, but I'm not sure when the support for this MCU is planned.

Regards,
Filip.

Robin_Masters
Posts: 25
Joined: 09 Jan 2020 11:38

Re: Add the PIC18FxxK83 family to CODEGRIP

#3 Post by Robin_Masters » 21 Sep 2022 14:38

Hello Philip,


Have you got a solution to connect mikroProg to EasyPIC v8 ?
Is there any adaptator to connect mikroProg to onboard RJ12 EXT/DEBUG ?


Sincerely,

Pascal

Robin_Masters
Posts: 25
Joined: 09 Jan 2020 11:38

Re: Add the PIC18FxxK83 family to CODEGRIP

#4 Post by Robin_Masters » 22 Sep 2022 15:05

Hello Filip,



Thanks very much for your help.

Today I managed to make an adapter to connect my mikroProg to the RJ12 of my EasyPIC v8.
According to the board schematic :
RJ12/1 >> MCLR
RJ12/2 >> VCC
RJ12/3 >> GND
RJ12/4 >> PGD
RJ12/5 >> PGC
RJ12/6 >> not connected[/list]

on board switchs :
DBG/SEL on EXTERNAL
MCLR on RESET
PGC/PGD on PROG/DEBUG

Unfortunately it do not work, with mikroProg suite reporting a message "Vpp voltage error! (4,60 volts)"
Please : Who could give me some help ?



Sincerely,

Pascal

Pascal

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Add the PIC18FxxK83 family to CODEGRIP

#5 Post by hexreader » 22 Sep 2022 15:22

See post number 4 here:

viewtopic.php?f=233&t=77689
Start every day with a smile...... (get it over with) :)

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Add the PIC18FxxK83 family to CODEGRIP

#6 Post by hexreader » 22 Sep 2022 18:57

Apologies, the previous post only partially applies.

My easyPIC 8 is broken, so I cannot confirm that what you want to do is possible, but I reckon it probably is possible.

After all - the whole point of the RJ12 connector is to allow for external programmer.

When my EP8 was working, I programmed other PICs using external PICkit4 and that worked perfectly.

Will try on EP7a to show that the principle is good, then update this thread with the result of the test

EDIT - update - I can program PIC18F26K83 OK using mikroPROG programmer, adapter cable, and RJ12 connector on easyPIC v7a

My guess is that you have wired incorrectly.
Start every day with a smile...... (get it over with) :)

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Add the PIC18FxxK83 family to CODEGRIP

#7 Post by hexreader » 23 Sep 2022 10:50

According to the board schematic :
RJ12/1 >> MCLR
RJ12/2 >> VCC
RJ12/3 >> GND
RJ12/4 >> PGD
RJ12/5 >> PGC
RJ12/6 >> not connected
That would be true for a "tab-down" RJ12 socket

Sadly mikroE chose to fit a "tab-up" RJ12 socket to the EP8 board, causing pins 1-6 to be reversed.
Start every day with a smile...... (get it over with) :)

Robin_Masters
Posts: 25
Joined: 09 Jan 2020 11:38

Re: Add the PIC18FxxK83 family to CODEGRIP

#8 Post by Robin_Masters » 24 Sep 2022 10:49

Hello,


I just tested the electric continuity of the RJ12 socket on my EasyPIC v8, and I found this :

RJ12/1 (top of the board) >> can't find any connection to MCLR, in disagreement with the schematic, whether the DBG SEL switch is in a position or in the other.
RJ12/2 >> VCC via D11, according to schematic
RJ12/3 >> GND, according to schematic
RJ12/4 >> PGD, according to schematic
RJ12/5 >> PGC, according to schematic
RJ12/6 (bottom of the board) >> can't find any connectionn, according to schematic


Is somebody able to explain how to remake the connection between RJ12/1 and MCLR ?


Sincerely,

Pascal

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Add the PIC18FxxK83 family to CODEGRIP

#9 Post by hexreader » 24 Sep 2022 11:49

My guess is that you are confusing the marking "MCLR" written next to pin 1 of the DIP28 socket, with the signal name "MCLR" on the schematic.

The actual signal name of DIP28 MCLR pin is "RE3/MCLR"

You will only get continuity from RJ12 MCLR to U3 pins 2, 5 and 12.

Take care around U3, as when power is on, it has a +14 Volt supply. Should you accidentally short the +14V to other parts of the board, the result could be death to the board.
Start every day with a smile...... (get it over with) :)

Robin_Masters
Posts: 25
Joined: 09 Jan 2020 11:38

Re: Add the PIC18FxxK83 family to CODEGRIP

#10 Post by Robin_Masters » 25 Sep 2022 11:07

I made this, and it works very well (see pictures below).
I call it the "Double Cheeseburger" as it needs 2 x NDIP28 holders between the PIC and the board.
I add a 22Kohm between the MCLR coming from mikroProg and the board.
Attachments
mikroProg-Adaptator3.jpg
mikroProg-Adaptator3.jpg (1.63 MiB) Viewed 1717 times
mikroProg-Adaptator1.jpg
mikroProg-Adaptator1.jpg (2.17 MiB) Viewed 1717 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Add the PIC18FxxK83 family to CODEGRIP

#11 Post by filip » 26 Sep 2022 08:21

Hi,

Please see latest post in the following thread, does it solve your issue ?
viewtopic.php?f=233&t=77689

Regards,
Filip.

Robin_Masters
Posts: 25
Joined: 09 Jan 2020 11:38

Re: Add the PIC18FxxK83 family to CODEGRIP

#12 Post by Robin_Masters » 26 Sep 2022 09:09

Hello Filip,


In fact RJ12 pins n°2 to 6 are connected according to EasyPIC v8 schematic.

But RJ12 pin n°1 appear to be not connected... whatever the position of the DBG SEL switch is.


Pascal

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Add the PIC18FxxK83 family to CODEGRIP

#13 Post by hexreader » 26 Sep 2022 11:13

Maybe your schematic is different to mine. My schematic shows pin 6 with no connection. I see no version number on schematic, so I assume it is version 1
My easyPIC 8 is Hw rev 1.0

My RJ12 socket has tab at the top, causing reversal of pins 1-6. To the outside world, it is pin 1 that is not connected, and pin 6 that is MCLR

I suspect that you are confusing pin 1 on the 28 pin socket marked MCLR with the signal name "MCLR"

These are two different signals on the schematic.

Pin 1 of 28 pin socket has signal name "RE3/MCLR"

MCLR pin of RJ12 socket only goes to U3 pins 2,5 and 12

Take care if probing around U3, as it has a +14 Volt supply. Shorting 14V to other parts of the board could cause death to the board
Start every day with a smile...... (get it over with) :)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Add the PIC18FxxK83 family to CODEGRIP

#14 Post by filip » 27 Sep 2022 15:07

Hi,

I am using this connector board to connect ICD connector on the EasyPIC8 and mikroProg for PIC, using jumper cables and regular straight RJ12 cable :
https://www.mikroe.com/icd2-connector-board

Just make sure that you match the pinout of the mikroProg connector (written at the backside of the board) with the ICD pinout.

Regards,
Filip.

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Add the PIC18FxxK83 family to CODEGRIP

#15 Post by hexreader » 27 Sep 2022 18:15

Hi filip,

Thanks for the tip

Would you be willing to concede that the exact same configuration will not work for easyPIC v7, v7a?

A crossover RJ12 cable would be needed for v7

In other words, easyPIC 8 is wired in reverse, compared to easpic 7

EasyPIC 7 wiring matches Microchip development board wiring

EasyPIC 8 is wired wrongly compared to Microchip development boards

Please correct me if I am wrong

Thanks

EDIT: Wouldn't adapter mikroe-791 be better suited for mikroprog to easyPIC 8?
I use this adapter and keep both straight-through and crossed RJ12 cables to allow for use with easyPIC8 and easyPIC7
https://www.mikroe.com/mikroprog-to-icd ... pter-board

EDIT2: - oh.... ... and if easyPIC v8 were ever to be fixed with correct RJ12 connections - how about fixing the LCD backlight circuitry at the same time?
Start every day with a smile...... (get it over with) :)

Post Reply

Return to “CODEGRIP programmer and debugger”