Menu

16X2 lcd on 16f1509

Help
2013-10-18
2013-10-18
  • David Stephenson

    I get the following error when my program is compiled

    compiled.asm:427:Error[126] Argument out of range

    The line(427) is in the SYSSTRINGREAD subroutine it is
    ADDFSR 1,1

     
  • Anobium

    Anobium - 2013-10-18

    Welcome to the forum.

    Please post your code. Ensure you do the following. Edit your file to ensure a single space starts every line. And, when you post your code in the forum use ~~~~~ prior and post your code.

     
  • David Stephenson

    The code is just a test of the LCD routines
    ~~~~~~~~~~~~~~~

    chip 16F1509,4

    config OSC=INTOSC, MCLRE=OFF, WDT=OFF

    define lcd_io 4

    define lcd_no_rw

    define lcd_enable porta.5 'define lcd pins

    define lcd_rs porta.4

    define lcd_db4 portc.4

    define lcd_db5 portc.5

    define lcd_db6 portc.6

    define lcd_db7 portc.7

    start:
    for i=0 to 8
    locate 0,i
    wait 1 sec
    print "hello world"
    wait 1 sec
    cls
    next i
    goto start
    ~~~~~~~~~~~~~~~~

     

    Last edit: David Stephenson 2013-10-18
  • David Stephenson

    Yes you are correct my version was from April this year.
    I am amazed how differently the ASM comes out with the new version (and much shorter)- somebody has been very busy.

     
  • Anobium

    Anobium - 2013-10-18

    Not me,
    Not you,
    Must have been Hugh.

    :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.