12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    I've re-cheched my connections:

    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.


    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
    So data is coming from the pc onto GPIO.0

    data is going from the PIC to pc on GPIO.2

    How does that look / sound?

    Dave
    Last edited by LEDave; - 11th April 2010 at 19:58.

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


    Did you find this post helpful? Yes | No

    Default

    I've added 'modedefs.bas' and set mode '0' still no joy

    Code:
     CMCON0 = %00000111 
    ANSEL = %00000000 
    TRISIO = %00000000 
    GPIO = %00000000
     
    DEFINE SER2_BITS 8
    
    INCLUDE "modedefs.bas"
    
    MYVAR  VAR BYTE 
     
    MAIN
    
    pause250
    
    serin2 GPIO.0, 0, [DEC MYVAR]
    
    IF MYVAR = 3 THEN HIGH GPIO.5
    PAUSE 250
    GOTO MAIN

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    CMCON0 = %00000111 
    ANSEL = %00000000 
    TRISIO = %00000000 
    GPIO = %00000000
    
    MYVAR  VAR BYTE 
     
    MAIN:
    PAUSE 250
    SERIN2 GPIO.0, 16780, [DEC MYVAR] '2400 INVERTED
    IF MYVAR = 3 THEN HIGH GPIO.5
    PAUSE 250
    GOTO MAIN
    But if GPIO.0 is connected to the POT it may not work.
    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've metered GPIO.0 out to the pot, it does seem to be connected(getting some strange readings though).

    I then changed the cable from GPIO.0 to GPIO.4 (and the program to reflect the change) when I send from the serial communicator two LED's briefly flash on then off ( pretty quick though).

    I increased the pause time from 250 to 2000, still only a brief flash but definately
    flashing!

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    Two LEDs ???

    GPIO.4 is connected to a LED ?

    If you have a 14 pin chip try it. I think some of the pins from a 14 will go directly to the J3 header.

    Making progress though!!!
    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

    Hi mackrackit

    Was getting there, I say was because every time I try and load a program now 'checksum verify failed' appears.Any ideas on that one.

    Dave
    Last edited by LEDave; - 11th April 2010 at 22:34.

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


    Did you find this post helpful? Yes | No

    Default

    Disconnect the serial cable from the PC?
    Dave
    Always wear safety glasses while programming.

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