Newbie? Problem with LCD


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    If I add it at the beginning I get Error [118] c:\pbp\tests\cdtes~1.asm 108 : Overwriting previous address contents (2007)
    Yes ...

    With MPLAB you also must comment the PBP default config in the relevant .inc file ...

    see details here:

    http://www.picbasic.co.uk/forum/showthread.php?t=543

    ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    May 2008
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    Got it working at last
    Thanks for all the help everyone.

    I think the problem I had was I was trying to overwrite the inc files without realising.

    I now have @ __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
    as the config

    However the programmer always tried to program in low voltage mode, I have to manually set it to off.

    I'd like to sort that out, but I can live with it if needed.

    Edit: Works with 16F877A but not 16F887 for some weird reason!

    found it!

    This works for the 16f887
    Code:
    @ __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
    Define device 16F887
    Define OSC 8
    ANSEL=0  ' A/D disabled for ANS0 to ANS7
    ANSELH=0 ' A/D disabled for ANS8 to ANS13
    CM1CON0 = 0 ' Disable comparators
    CM2CON0 = 0 ' These default to disabled at POR, but just in case
    CM2CON1 = 0
    adcon1 = 7
    IOCB = 0
    INTCON = 0
    ansel = 0 
    anselh = 0
    PORTB  = %00000000
    TRISB  = %00000000
    However still got the programming issued I've got to set the low power programming to off manually and the oscillator to HS
    Last edited by lew247; - 7th December 2009 at 19:51.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    May be you should have a look to the upper part of the MPLAB Configuration bits window ...

    an option to choose ...


    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 09:28
  2. LCD problem
    By Andre_Pretorius in forum General
    Replies: 8
    Last Post: - 27th January 2009, 16:47
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 12:43
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07

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