Pic12f683 Mclre


Closed Thread
Results 1 to 2 of 2

Thread: Pic12f683 Mclre

Hybrid View

  1. #1

    Default Pic12f683 Mclre

    Hello to all,

    I have had many problems with PIC's in the past and usually have been able to find my way through looking through these forums. However, I have been having a small problem with MCLRE on the 12F683 PIC.

    I want to utilize GP3/MCLRE as a digital Input so that if it reads HIGH do something, if it reads LOW then do something else.

    From what I understand GP3 is considered only an input (i.e a '1' bit), however the MCLRE state can be changed from the 'MCLRE' state to the 'Digital Input' state using the Configuration bits (address: 2007h). This is what I have not been able to figure out. How can I modify the Configuration bits using the PicBasic Pro compiler to obtain the MCLRE as a digital input.

    So far this is the test code that I have to test the pic and have been unsuccessful. Thank you in advanced



    pulse VAR GPIO.0

    loop:
    if GPIO.3 = 1 then
    HIGH pulse
    else
    LOW pulse
    endif
    goto loop

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


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Pic12f683 Cmcon0 = 7
    By penelopepug in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 12th June 2009, 18:23
  2. Programming Problem PIC12F683
    By StoneColdFuzzy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd June 2009, 21:39
  3. PIC12F683 Config Problems
    By Electroman87 in forum General
    Replies: 1
    Last Post: - 22nd April 2009, 08:18
  4. pic12f683 being picky about pins...
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th March 2009, 23:16
  5. How to calculate ADC resolution (pic12f683)
    By peu in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th April 2007, 18:39

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