Disabling MCLR pin


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default Disabling MCLR pin

    I am trying to disable the MCLR pin because I am using it to do a LCDOUT on that Pin.
    I am using a PIC16F88.
    I read this thread but it is not helping me out.
    I still get compiling error.. illegal upcode



    Code:
    'LCD testing program  and Clock viewing
    
    INCLUDE "modedefs.bas"
     OSCCON = %01110000 '8 Mhz
     Define OSC 8 
    
    CMCON = 7 : ANSEL = 0 : ADCON1 = 7 
    @ DEVICE pic16F88, MCLR_OFF
    
    
    '/////////////////////////
    '// LCD configuration //
    '/////////////////////////
    
    DEFINE LCD_DREG PORTA ' Set LCD Data port
    DEFINE LCD_DBIT 4 ' Set starting Data bit (0 or 4) if 4-bit bus
    DEFINE LCD_RSREG PORTB ' Set LCD Register Select port
    DEFINE LCD_RSBIT 7 ' Set LCD Register Select bit
    DEFINE LCD_EREG PORTB ' Set LCD Enable port
    DEFINE LCD_EBIT 6 ' Set LCD Enable bit
    DEFINE LCD_BITS 4 ' Set LCD bus size (4 or 8 bits)
    DEFINE LCD_LINES 2 ' Set number of lines on LCD
    DEFINE LCD_COMMANDUS 2500
    DEFINE LCD_DATAUS 250
    DEFINE CHAR_PACING 2000
    pause 500

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


    Did you find this post helpful? Yes | No

    Default Re: Disabling MCLR pin

    DATA sheets are your friend.
    Please read the chips DATA sheet and make it happy
    MCLR is an input only.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Disabling MCLR pin

    I guess I have to find a way to use the LCd another way then, I need the SDA and SCL pins and the Vref,s pins....

    also how come do I get the illegal upcode ???

    K

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


    Did you find this post helpful? Yes | No

    Default Re: Disabling MCLR pin

    Dave
    Always wear safety glasses while programming.

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