Newbie? Problem with LCD


Results 1 to 11 of 11

Threaded View

  1. #9
    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 18:51.

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 08:28
  2. LCD problem
    By Andre_Pretorius in forum General
    Replies: 8
    Last Post: - 27th January 2009, 15:47
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23: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