pic12f683 setup


Closed Thread
Results 1 to 3 of 3

Thread: pic12f683 setup

  1. #1
    Join Date
    Jul 2007
    Posts
    74

    Default pic12f683 setup

    I am confused when tryin to decode the datasheet and understand what is going on with with this stuff

    DEFINE OSC 4
    Do I have to do anything else besides set this in the code to get 4MHz Clock? I want to use the internal clock


    CMCON, ANSEL, OPTION_REG, INTCON, GPIO, TRISIO

    I have no idea what to do with any of these except GPIO = %000000 to set all pins low and is read from right(GPIO.0) to left(GPIO.5)

    Same with TRISIO read right to left, and is used to set pins either input or outputs

    Thanks
    -Eric

  2. #2
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Hi Eric,

    To use internal oscilator OSCCON = $ 60
    ANSEL is to choose which one is your ADC input ( 1 = ADC )
    CMCON / OPTION_REG are usually set as default

    I am too new to PBP / PIC programming. Datasheet can be confusing for us beginner, fortunately here you find experienced gurus and they are willing to share

    I am still studying the datasheet and yesterday I managed to put characters on LCD

    I suggest you to print it, so you can study it everywhere

    Johan

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default Maybe someting more..

    erice1984,

    You may need to set another OSCCON value to make it work with the internal oscillator.
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1833&stc=1&d=118354561 4">
    Either you set OSCCON's register bit 0 to "1" and so force the use of the internal oscillator, or you set the "INTOSC" fuse of the configuration word.
    Attached Images Attached Images  
    Roger

Similar Threads

  1. TMR1 external LP xtal setup check
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th October 2009, 18:11
  2. Programming Problem PIC12F683
    By StoneColdFuzzy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd June 2009, 21:39
  3. ADCIN setup for PIC16F688
    By PixController in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th February 2008, 18:38
  4. ADCIN setup help need
    By dangill in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th February 2008, 15:22
  5. Use Button For setup
    By tump in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 21st November 2007, 19:43

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