pic12F683 , gpio.5 not accessible...


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hmmm, It must be a limitation of your programmer.

    I just tested it here with a 12F683 and an meLabs U2 programmer.
    It works fine with the internal oscillator and MCLR either ON or OFF.
    <br>
    DT

  2. #2
    Join Date
    Jul 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    humm, it means ICD2 (clone) is less powerfull/featured than yours...
    would never expected that!

    or maybe I can try to let it program the chip anyways, and see what happen.

    i'll try it tonight.


    Thanks for testing

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Maybe be not less powerful... but has it's own way to work. ICD2 is more a debugger than a programmer. Melabs's one is a Programmer, period.

    Cheap alternative.. the endless Microchip's PICKIT 2 suggestion.... which can also be used as a debugger on some PIC.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Flipper,

    How did you set your OSC to work internally at 8Mhz?

    Code:
    OSCCON = %01110000 ' Internal 8MHz osc set speed
    I think, it should be OSCCON = %01110001

    Did you notice that?

    ========================
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    My 2 cents. From the datasheet
    Code:
    bit 0 SCS: System Clock Select bit
    1 = Internal oscillator is used for system clock
    0 = Clock source defined by FOSC<2:0> of the Configuration Word register
    I don't feel this is the problem here, unless the config fuses aren't properly set. Default ones use the internal osc so far.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jul 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Ohh, umm, I took the speed value from another source code but I didnt double checked it...
    good point that I should verify those kind of things!

    All seems to run fine tough. It ran datatransfert at 19200baud using serout2, no prob.

    And since I was sad about loosing a pin for a totally useless MCLR, my brain got spinning and I decided to try using one pin as A/D to read integer values of voltage(1to5). Then I will hook a 4-way switch with matching resistors and I'll get 4-5 *inputs* from that pin. uhuhuh.
    I hope nothing come in my way this time...im so proud of this Einstein spark!!



    Thanks Mister_E for enlightening my little knowledge of programmers.
    I taught they were pretty much all equal, but now I see why mine was sold for cheap

    but for now, my skills surely wouldn't make use of a 300$ programmer.

    and I still have to try to overide the warning and see what happen!! 8)
    Last edited by flipper_md; - 29th April 2008 at 01:54. Reason: typo

  7. #7
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default I think

    http://forum.microchip.com/tm.aspx?m...%2cMCLRᾬ
    http://forum.microchip.com/tm.aspx?m...2cMCLR&#204739


    this might explain why.... but as they say. If you power your PIC from the ICD2 and don't load it too much it might work anyway. And to get rid of this warning just use an older version on MPLAB.

    /me
    Last edited by Jumper; - 29th April 2008 at 02:40.

Similar Threads

  1. Programming Problem PIC12F683
    By StoneColdFuzzy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd June 2009, 21:39
  2. pic12f683 being picky about pins...
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th March 2009, 23:16
  3. 12F683 and DT Instant Interrupts
    By jderson in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 22nd November 2008, 12:47
  4. LANC code 12F675
    By MikeDD in forum General
    Replies: 4
    Last Post: - 9th May 2008, 05:44
  5. PIC12F683 Pinouts?
    By cpayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th March 2006, 23:56

Members who have read this thread : 1

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