TRISIO on PIC12F683, I have a bit stuck midway


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by zipwize View Post
    It looks like I have pin 7 GPIO.0 set as an output.
    Code:
    TRISIO = %00001111 'GP0-GP3 as input
    It looks like it is set as an input to me...

    Plus, you define it as 4 mhz, but tell it to be 8 mhz.

    Code:
    DEFINE OSC 4
       @ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _CP_OFF
        CMCON=7 
        
    INTCON = %10001000 'internal oscillator
    OSCCON = %01110000 ' 8mHz
    Last edited by ScaleRobotics; - 31st October 2010 at 21:14.
    http://www.scalerobotics.com

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