pic12F683 , gpio.5 not accessible...


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    If you're using Instant Interrupts, the program has to be assembled with MPASM.

    <br>
    Hi Darrel,
    I thought he was as he did not report any compiler errors, doesn't PM choke on DT_I.I.?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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


    Did you find this post helpful? Yes | No

    Default

    Yes, PM will definately "choke" on Instant Interrupts.

    What I'm saying is that ... since it appears he's using MPASM, he's looking at the wrong configs.
    <br>
    DT

  3. #3
    Join Date
    Jul 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Red face

    ohh you got a point here!

    Modified the __config line and it's definitely using it...

    __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _CP_OFF

    but then I get
    ICDWarn0033: MPLAB ICD 2 does not support programming this device if both the internal oscillator and internal MCLR are selected. You may continue programming, but you are encouraged to cancel, reconfigure your device, and try again.
    ICD0200: Operation Aborted (Warning 32).

    so basically I assume I cannot have all pins as digital IO.

    still It's better for me to set MCLRE on and get GPIO.4/5 working, and leave MCLRE pin alone.
    Unless there's a way to bypass this...

    It's also great to know which compiler i"m using LOL

    edit: setting MCLRE_ON I can get access to GPIO 4 and 5 now..
    Still I wonder if it's possible to get rid of MCLR
    Last edited by flipper_md; - 24th April 2008 at 08:51. Reason: typo

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

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

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

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

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