Display problems


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76

    Unhappy Display problems

    Howdeedoo all...

    I'm stuck here. I'm trying to get an Optrex DMC20481 (4 x 20 display) to work with a 16f877 and I'm getting nuttin! It doesn't even flicker. I've checked and re-check the wiring. It all looks good. I disconnected the LCD and wrote a simple program to pulse the connector pins... the data seems to be getting through fine telling me it's not likely a circuit board problem.

    This is a new circuit board with a 3-8 decoder enabling one of several paths for portd through 74HC373 chips. The decoder inputs are connected to porte of the 877.

    I am using Microcode Studio with the latest version of PicBasic Pro.

    I've probably dones something screwie. Any input here would be most appreciated.

    Thank you,

    Ross


    DEFINE LOADER_USED 1
    DEFINE osc 20
    ADCON1 = 7 'set porta to digital
    TRISA = 0 'set porta to output
    TRISD = 0 'set portd to output
    TRISE = 0 'set porte to output

    Define LCD_DREG PORTD 'I/O port where LCD is connected
    DEFINE LCD_DBIT 4
    DEFine LCD_RSREG PORTD 'Port where RS pin located
    define LCD_RSBIT 2 'Register select pin
    Define LCD_EREG PORTD 'Port where Enable pin located
    DEFINE LCD_EBIT 3 'Enable pin
    DEFINE LCD_BITS 4 '4-Bit data bus
    define LCD_LINES 4 'Number of LCD Character Display lines

    'Porte is connected to 74HC138 3-to-8 line decoder which directs portd to one
    'of several devices by enabling the correct 74hc373.

    porte = 5 'Enable 74hc373 connecting Portd output to LCD
    pause 2000 'Two seconds for display power-up (should be enough)
    lcdout $fe,1 'Clear the LCD screen
    pause 100 'Don't think I need this pause

    porta.0 = 1 'initialize porta.0 (where LED is connected)


    main:
    gosub flash_led
    lcdout "Success"
    pause 1000
    lcdout $fe,1
    pause 500
    goto main
    end

    'Led is connected to porta.0. As the main program loops, it flashes the LED as
    'visual feedback that the program is at least trying to work. *razzberry*

    flash_led:
    pulsout porta.0,50
    return
    Attached Files Attached Files
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 20:07
  2. Replies: 2
    Last Post: - 14th July 2008, 22:11
  3. DS1820 display with 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 10th April 2008, 13:12
  4. 64 led display problems
    By battousai923 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 29th November 2007, 09:19
  5. Replies: 14
    Last Post: - 26th September 2007, 05:41

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