Simple LCD code not working..


Results 1 to 8 of 8

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Even if it's always a good practice, LCDOUT handle it for you.

    LCDOUT "a"

    .LST
    Code:
    0006   1683           02798         bsf     STATUS, RP0     ; Point to trises
    0007   1186           02799         bcf     LCD_EREG, LCD_EBIT      ; Set E to output
    0008   1205           02800         bcf     LCD_RSREG, LCD_RSBIT    ; Set RS to output
    0009   1205           02801         bcf     LCD_RWREG, LCD_RWBIT    ; Set RW to output
                          02802     if ((LCD_BITS) == 8)
                          02803         clrf    LCD_DREG        ; Set port to all output
                          02804     else
    MPASM  5.14                             A.ASM   4-23-2008  10:43:15         PAGE  3
    
    
    LOC  OBJECT CODE     LINE SOURCE TEXT
      VALUE
    
                          02805       if ((LCD_DBIT) == 0)
    000A   30F0           02806         movlw   0f0h
                          02807       else
                          02808         movlw   0fh
                          02809       endif
    000B   0585           02810         andwf   LCD_DREG, F     ; Set proper half of port to output
    Last edited by mister_e; - 23rd April 2008 at 15:49.
    Steve

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

Similar Threads

  1. Simple LCD code not working!...WHY?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th November 2009, 19:48
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. My LCD code is not working...
    By kvrajasekar in forum mel PIC BASIC
    Replies: 2
    Last Post: - 7th December 2008, 05:41
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. LCD issue with EasyPIC5
    By manwolf in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 15th June 2008, 09:17

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