Still 12F675 question


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    France
    Posts
    97

    Default Still 12F675 question

    Hello
    I am still "playing" with a 12F675
    this is quite new for me
    I use
    ansel = 0 ' all digital
    cmcon = 7 ' comparator OFF
    TRISIO = %001001 ' GP0 et GP3 en INPUT
    OPTION_REG.7 = %110110 'pull up actifs

    My problem is : I have no signal on output port !
    question : may I have to use pull up resistors on output port
    or this option_reg.7 will switch internally thoses pull up ?
    (weak pull up story) on page 21 of the datasheet

    thanks in advance
    francois

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


    Did you find this post helpful? Yes | No

    Default

    I would not mess with the weak pullups , just pretend they are not there for now.
    Can you post all of your code and configs? Makes it a bit easier to see what you have.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Default still 12F675 question

    Dave
    Sorry for the delay, I was in vacation
    to be clear, I do not understand your answer , I'm french , so, english expressions
    are not so easy to understand ..
    I must work on my application and come back with more details
    to see if I need to connect pull up resistors (as in the past)
    or to "play" with option reg command !
    I will come back soon
    Francois

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


    Did you find this post helpful? Yes | No

    Default

    Hello Francois,
    To have "all digital" you have the ADCON0 register to deal with, specifically the ADON bit which is ADCON0.0 which must be cleared either by ADCON0 = 0 or ADCON0.0 = 0
    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.

  5. #5
    Join Date
    Jul 2008
    Location
    TURKIYE-KONYA
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Option_reg.7

    Code:
    OPTION_REG.7 = %110110 'pull up actifs
    option_reg.7 is just a bit.

    you should do this to activate pull-ups.

    Code:
    OPTION_REG.7 = 0 ; activate pull-ups
    and you dont need to use pull-ups for output.
    Last edited by mehmetOzdemir; - 7th August 2009 at 09:15.

  6. #6
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Default

    Hello
    I was STUPID with my option-reg.7 bit !
    May be I was swimming in all those bits in all those registers !
    I have made some changes, BUT the DUCK is still alive
    I have NO signal (digital) on ENAB, DTA and Clk
    LED is flashing (at least !)

    any ideas ?
    thanks

    hardware in PDF
    CODE in txt
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Extreme Noobie question 12F675
    By Jeff in forum mel PIC BASIC
    Replies: 11
    Last Post: - 22nd September 2009, 01:13
  2. 12f675 probably a silly question
    By Meriachee in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 21st November 2006, 14:22
  3. 12F675, MPLAB programming question
    By EASY in forum General
    Replies: 0
    Last Post: - 2nd April 2006, 19:28
  4. 12f675 programming question
    By puggy in forum General
    Replies: 3
    Last Post: - 30th November 2004, 23:34
  5. 12f675 internal osc question.....
    By Gabe@SPdFtsh in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th January 2004, 06:33

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