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

    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.

  2. #2
    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

  3. #3
    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.

  4. #4
    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?

  5. #5
    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.

  6. #6
    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

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


    Did you find this post helpful? Yes | No

    Default

    You have a headache... I am stuck in an "art gallery" for the next few hours.

    Yes, pick a baud say of 2400 , can not remember the mode number.

    SERIN2 PIN, BAUD,[MYVAR]
    IF MYVAR = ??? THEN

    Something like that....
    I will be back atthe shop later.
    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

    I am stuck in an "art gallery" for the next few hours.
    Strange places 'art galleries' me and my wife visited one years ago and the man from behind the counter came over and said "Would you model for me" to which my wife said (after a pause I might add) " No I couldn't " to which he said " I wasn't talking to you! " And no I didn't either by the way.

    Is this anywhere near where I should be heading?

    Code:
    MYVAR  VAR BYTE 
    
    serin2 GPIO.0, 2400,["MYVAR = ", BIN MYVAR, 10]     
    
    IF MYVAR = %00001010 THEN HIGH GPIO.5
    Also, the Port (com1) settings are: 9600 bps 8N1. Do I need to change that to 2400?

    Dave
    Last edited by LEDave; - 10th April 2010 at 15:18.

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