If you use a 14 pin chip in your PicKit1 the empty header holes near the diodes can be used for external to the board stuff. Solder a serial cable there??? Be sure to look at the PBP manual, gives a little schematic for serial hick ups.![]()
If you use a 14 pin chip in your PicKit1 the empty header holes near the diodes can be used for external to the board stuff. Solder a serial cable there??? Be sure to look at the PBP manual, gives a little schematic for serial hick ups.![]()
Dave
Always wear safety glasses while programming.
Mmmm,
A little confused here mackrackit. I can see the header J3 (see attached word.docs) but can't see which of the three cables go where from looking at the diagrams.
Also, am I right in that: Pin5 = clear to send, Pin3 = receive data and Pin2 = transmit data.
Or (wild assumptions here) I can connect the three wires to anywhere on J3 as long as they correspond to three I/O pins on the socket which can be set-up to communicate with the pc COM-PORT.
Dave
Last edited by LEDave; - 9th April 2010 at 09:32.
As far as I know, any of the PIC® that work in the PicKit1 do not have hardware serial (UART), so it does not matter. The only exception I can think of is the ADC pins, you may want to save these for sensors, but they will still work for serial.
Pin 5
Common, ground, zero rail...
This must be connected to both devices for any serial to work.
Pin 2
Data is sent to the PC via this pin. PIC® -->> PC
Pin 3
Data is sent to the PIC® via this pin. PIC® <<-- PC
Dave
Always wear safety glasses while programming.
Hi mackrackit,
I'm using a PIC12F683 on my PICKit1.
I've got common pin5 on the DB9 cable (yellow) going to VSS PIC pin8.
I've got pin3 on the DB9 cable (red) going to GPIO.0 PIC pin7.
And pin2 on the DB9 cable (brown) going to GPIO.2 PIC pin5.
All via header J3.
How does that sound?
Dave
Sounds like it should work.
Is there any analog on those pins? No problem, just turn it off and give it a go.
Maybe you already know it, MCS has a nice terminal program built in.
Dave
Always wear safety glasses while programming.
Yes there is analog AN0/1/2
So turn the ANSEL & CMCON0 off.
Is this Microsoft Hyperterminal?MCS has a nice terminal program built in.
Yup, turn them off
Not hyperterminal. MCS - View - Serial communicator.
Dave
Always wear safety glasses while programming.
Mmm
I've got a headache.
So we've got one transmit and one receive line to and from the PIC set up.So do I write a program so that when data from the pc arrives (if it ever does) at GPIO.0 an led toggles.
Would that be a good starting point?
Dave
Bookmarks