Cooking Timer Project


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default What type of LCD

    Are you sure your LCD is a serial verion and not a standard parallel version ?

    This code seems to use a serial LCD sending data on RB6. If you have a standard LCD it is expecting data on min 4 lines (when in 4-bit mode).

    Code:
    ;----[LCD definitions]------------------------------------------------------
    DEFINE LCD_DREG  PORTB          ' LCD Data port
    DEFINE LCD_DBIT  0              ' starting Data bit (0 or 4)
    DEFINE LCD_EREG  PORTB          ' LCD Enable port
    DEFINE LCD_EBIT  5              '     Enable bit  (on EasyPIC 5 LCD)
    DEFINE LCD_RSREG PORTB          ' LCD Register Select port
    DEFINE LCD_RSBIT 4              '     Register Select bit   (on EasyPIC 5 LCD)
    DEFINE LCD_BITS  4              ' LCD bus size (4 or 8 bits)
    DEFINE LCD_LINES 2              ' number of lines on LCD
    DEFINE LCD_COMMANDUS 2000       ' Command delay time in us 
    DEFINE LCD_DATAUS 50            ' Data delay time in us

  2. #2
    Join Date
    Nov 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Thank you for replying back. This is the LCD that I have

    http://www.parallax.com/Store/Access...0/Default.aspx

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Try a baud mode number of 16780, I think this things are inverted.
    SW1 = ON
    SW2 = OFF
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Nov 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Try a baud mode number of 16780, I think this things are inverted.
    SW1 = ON
    SW2 = OFF

    I will try that. And also this is my first time dealing with pics I have a question also about my set up does it need power to run to the pic? if so what leg its a pic16F819

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by esmore View Post
    I will try that. And also this is my first time dealing with pics I have a question also about my set up does it need power to run to the pic? if so what leg its a pic16F819
    Err yes you need to supply power to the PIC to run it !

    5vdc required

    Have a read of the data sheet http://oap.sourceforge.net/datasheets/PIC16F819.pdf

  6. #6
    Join Date
    Nov 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by malc-c View Post
    Err yes you need to supply power to the PIC to run it !

    5vdc required

    Have a read of the data sheet http://oap.sourceforge.net/datasheets/PIC16F819.pdf
    I look at the diagram pin 14 VDD is my 5volts so does that make pin 5 VSS the ground?

    Thank you for the data sheet

  7. #7
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by esmore View Post
    I look at the diagram pin 14 VDD is my 5volts so does that make pin 5 VSS the ground?

    Thank you for the data sheet
    Yes - Vss should go to GND and Vdd to +5v Without these connections your PIC won't run !

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