Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th October 2007, 01:24 PM   (permalink)
Default

If the following makes sense I would keep the 24LCxxx socket.

The PK2 connector duplicates the signals on the "ICD2/Inchworm style" 2x5 ICSP connector. The PK2 connector would make it easier to use with Microchips target boards.

Most people using JuneBug will be using your targets or targets they build. Most people with Microchip target boards will have a Microchip PicKit rather then a JuneBug.

It is easy enough to make a 2x5 to 1x6 adapter for the few who want to use a JuneBug with a target that has 1x6 PK2 style connector.
3v0 is online now  
Old 9th October 2007, 03:11 PM   (permalink)
Default

The PK2 uses pin 6 as AUX, with it the PK2 can program many I2C, SPI, Microwire EEPROMs.
In the land of PIC ICDs there are at least 3 ICD connector types. Official are RJ11 (phone type) and 6 pin inline, many clones including mine use a 2x5 IDC style. The RJ11 is great for Microchip development boards but not so nice for breadboarding, the 6 pin inline is thin and small, great for the PK2 case and good for breadboarding but does not feel very robust and headers fall out of it with only the slightest tug.
For now I'll leave the 24LCxxx socket there, I'll wire it last just incase.
Here's a snippet from the PK2 readme file about EEPROMs and the wiring.
Quote:
> Serial EEPROM support:

24LC I2C bus devices:
Bus Speed-
400kHz with Tools -> Fast Programming checked
100kHz with Tools -> Fast Programming unchecked

NOTE: Bus pullups are required for all
programming operations. 400kHz requires
2k Ohm pullups.

Ax Chip Select checkboxes-
These are only enabled for devices that support
address chip selects, and allow programming of
multiple devices on the same bus.

Connections for 24LC devices
---------------------------------------
PICkit 2 Pin 24LC Device Pin (DIP)
(2) Vdd 8 Vcc
(3) GND 4 Vss
(5) PGC 6 SCL (driven as push-pull)
(6) AUX 5 SDA (requires pullup)
7 WP - disabled (GND)
1, 2, 3 Ax pins
Connect to Vdd or GND per
datasheet and to set address

25LC SPI bus devices:
Bus Speed-
~925kHz with Tools -> Fast Programming checked
~245kHz with Tools -> Fast Programming unchecked

Connections for 25LC devices
---------------------------------------
PICkit 2 Pin 25LC Device Pin (DIP)
(1) VPP 1 nCS
(2) Vdd 8 Vcc
(3) GND 4 Vss
(4) PGD 2 SO
(5) PGC 6 SCK
(6) AUX 5 SI
7 nHOLD - disabled (Vdd)
3 nWP - disabled (Vdd)

93LC Microwire bus devices:
Bus Speed-
~925kHz with Tools -> Fast Programming checked
~245kHz with Tools -> Fast Programming unchecked

Connections for 93LC devices
---------------------------------------
PICkit 2 Pin 93LC Device Pin (DIP)
(1) VPP 1 CS
(2) Vdd 8 Vcc
(3) GND 5 Vss
(4) PGD 4 DO
(5) PGC 2 CLK
(6) AUX 3 DI
7 PE - enabled (Vdd)
6 'C' Device ORG
Set to select word size
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 9th October 2007 at 03:14 PM.
blueroomelectronics is online now  
Old 9th October 2007, 06:13 PM   (permalink)
Default

I was unaware of the use of the AUX signal. I think you can still have your cake and eat it too.

The problem is that an adaptor board which hooks to the 2x5 would lack the AUX signal. Not a problem. Put a single wire on the adaptor board that the user hooks to a new connector on JuneBug. Have that new connector carry the AUX singnal. Could be a 1x1 or 1x2 pin header and the placement should not be critical. Can you find a spot for it?

Edit: I noticed that sparkfun has added little wires with sockets on both ends that push over header pins. Has anyone figured out what the sockets are called or know a part number?


Junk edited out by author.

Last edited by 3v0; 10th October 2007 at 03:01 AM.
3v0 is online now  
Old 10th October 2007, 02:57 AM   (permalink)
Default

Changed my mind this is cleaner.

Scrap the progaming socket and add the 1x6 ICSP PK2 connector.

If the user wants to program a serial EEPROM he can plug a simple board into the PK2 connector to do it. Or even do it on a solderless breadboard.
3v0 is online now  
Old 10th October 2007, 03:28 AM   (permalink)
Default

Done, sounds good to me. I was just playing with the 8 pin socket but the 1x6 PK2 connector will fit fine.

Edit I've added a pair of the 1x6 connectors, just incase you want to use a RA connector and not have it hang too far off the PCB, refresh your browser and see it in the first message in this thread.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 10th October 2007 at 05:15 AM.
blueroomelectronics is online now  
Old 10th October 2007, 03:57 PM   (permalink)
Default

Now here's something, it's an SPI analyzer using a modified PK2, I might bring out those pins...
http://vivara.net/blog/?p=55


I'll bring out the unused 5 I/O pins to a secondary connector (EUSART & MSSP) seems people on the Microchip forums like to hack their PK2.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 10th October 2007 at 04:30 PM.
blueroomelectronics is online now  
Old 10th October 2007, 04:43 PM   (permalink)
Default

When you first started on JuneBug I did not see why I would want one.

It keeps getting better
3v0 is online now  
Old 10th October 2007, 04:49 PM   (permalink)
Default

Be careful when buying RJ-11 connectors and cable assemblies if you actually need all six conductors. It's my understanding that RJ-11 and RJ-12 are physically the same connector style, but the RJ-11 only uses and supplies the middle four pins and conductors where the RJ-12 supplies all six pins and conductors.

Is that correct?

Lefty
__________________
Measurement changes behavior
Leftyretro is offline  
Old 10th October 2007, 05:27 PM   (permalink)
Default

The kit has no provision for the RJ-12 like the real ICD2 has. Junebug uses a 2x5 IDC connector (like most clone ICDs) plus now has the 1x6 as seen on the PICkit 2.

Edit the final 3D picture and PCB layout have been posted here. To see them you must manually refresh your browser.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 11th October 2007 at 04:06 AM.
blueroomelectronics is online now  
Old 15th October 2007, 03:21 AM   (permalink)
Default

Well I've been working on the layout for three days straight now. Lots of bits moved around and a new connector along the top.

The long 16pin top connector contains the PK2 connector, ICD connector (for the 18F2550) and all the unused pins on the 18F2550.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:09 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker