12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  2. #2
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    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
    Attached Files Attached Files
    Last edited by LEDave; - 9th April 2010 at 09:32.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  4. #4
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    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

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  6. #6
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Yes there is analog AN0/1/2

    So turn the ANSEL & CMCON0 off.

    MCS has a nice terminal program built in.
    Is this Microsoft Hyperterminal?

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yup, turn them off

    Not hyperterminal. MCS - View - Serial communicator.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    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

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts