12f675_fuse_about_to_blow!


Results 1 to 40 of 929

Threaded View

  1. #26
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi Henrik

    Here's what I'd come up with late last night (I wish I'd posted it now before I went to bed as not the far off I don't think).

    Code:
    DEFINE LCD_DREG PORT.A        ' Set LCD Data port
    DEFINE LCD_DBIT 0             ' Set starting Data bit (0 or 4) if 4-bit bus
    DEFINE LCD_RSREG PORT.A       ' Set LCD Register Select port
    DEFINE LCD_RSBIT 4            ' Set LCD Register Select bit
    DEFINE LCD_EREG PORTC         ' Set LCD Enable port
    DEFINE LCD_EBIT 0             ' Set LCD Enable bit
    DEFINE LCD_BITS 4             ' Set LCD bus size (4 or 8 bits)
    DEFINE LCD_LINES 4            ' Set number of lines on LCD
    DEFINE LCD_COMMANDUS 2000     ' Set command delay time in us
    DEFINE LCD_DATAUS 50
    I set LCD_LINES 4 as the display is a 4*20.

    The one I'm missed was LCD_EBIT 0 (it was late).

    Also the PIC is a 16F684 PORTA and PORTC

    Thank you for taking the time to do go through it all though (really appreciated) I'll load it later today and hopefully have some success (I'm just a little worried I've fried the LCD).

    David
    Last edited by LEDave; - 20th April 2010 at 10:03.

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