lost in lcd land


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Using MPASM
    Code:
        '
        '    PIC Configuration
        '    =================
        @ __CONFIG  _INTRC_OSC_NOCLKOUT & _MCLRE_OFF  &  _LVP_OFF & _WDT_OFF & _PWRTE_ON  & _BODEN_ON  
        
        '
        '    Hardware configuration
        '    ======================
        CMCON=7                    ' disable internal comparator
        TRISA=0                    ' Set all PORTA capable i/o to output
        TRISB=0                    ' Set all PORTB i/o to output
        
        '
        '    Hardware initialisation
        '    =======================
        Pause 1000                 ' 1 second for LCD initialisation
        
        '
        '    Main loop
        '    =========
    Start:
        LCDOUT $FE,1,"Should Work now!"
    Here:
        Goto here
    Using PM
    Code:
        '
        '    PIC Configuration
        '    =================
        @ DEVICE  PIC16F628, INTRC_OSC_NOCLKOUT, WDT_OFF, PWRT_ON, MCLR_OFF, LVP_OFF, PROTECT_OFF
        
        '
        '    Hardware configuration
        '    ======================
        CMCON=7                    ' disable internal comparator
        TRISA=0                    ' Set all PORTA capable i/o to output
        TRISB=0                    ' Set all PORTB i/o to output
        
        '
        '    Hardware initialisation
        '    =======================
        Pause 1000                 ' 1 second for LCD initialisation
        
        '
        '    Main loop
        '    =========
    Start:
        LCDOUT $FE,1,"Should Work now!"
    Here:
        Goto here
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2


    Did you find this post helpful? Yes | No

    Unhappy still trying

    problem seems to be the microstudio does not like the inc files that came with the pbp and this is the one i seem to need but get many errors works much better with the include files that came with mplab still doesnot give what i want but no errors. tried to unstall everthing and reinstall but no use
    could reall use some help here??/

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    what are the error you get?
    What is your PicBasic Pro version?
    What is your LCD model?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4


    Did you find this post helpful? Yes | No

    Default keep going

    error message error[118] some file overwriteing previous address contents (2007)
    using a hitachi 44780
    thanks for staying with me

  5. #5


    Did you find this post helpful? Yes | No

    Arrow forgot

    picbasic pro 2.46

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Ahhhh, read the long story there
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Pay attention to post #5

    As far as i remind, it should work anyway but it's still unpleasant to see some error message

    I don't know why Melabs define them anyways... i always comment out all of them for all PIC i use.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7


    Did you find this post helpful? Yes | No

    Talking still trying

    we come a long way in the past couple of days however it still does not work even with known operating programs its tough to get the int osc functioning
    dont know whats left

    side thought pbp creates 6 files for a program hex-asm-bas-cod-lst-mac
    know what the first three function be see no informaion on the last 3

    still think the manuals need upgradeing to deal with beginers unless they dont want any
    Last edited by jcleaver; - 21st May 2006 at 04:34.

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 20:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30

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