Pic18F452


Closed Thread
Results 1 to 23 of 23

Thread: Pic18F452

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Thank you very much MikeTamu i just assumed that PBP took care of all that for me as there is no reference to it in the pbp manual.

    Thanks again.

  2. #2
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Please Help !

    I am having similar problems trying to get an LCD working on EasyPIC3 from Mikroelectronika Board using PBP and 18F452 MCU. Although i can get the LED to blink , I cannot get the LCD to work. Can you help.

    EasyPIC3 Development Board Configuration -
    D4 - RB4
    D5 - RB5
    D6 - RB6
    D7 - RB7
    RS - RB2
    E - RB3
    RW - GND

    My Code:

    DEFINE OSC 8

    ' HARDWARE DEFINES
    '-----------------------------------------------------------------
    ' Define LCD pins

    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    DEFINE LCD_DREG PORTB
    DEFINE LCD_DBIT 4
    DEFINE LCD_RSREG PORTB
    DEFINE LCD_RSBIT 2
    DEFINE LCD_EREG PORTB
    DEFINE LCD_EBIT 3

    '-----------------------------------------------------------------
    TRISA = %111111 'INITIALIZE PORT DIRECTIONS
    TRISB = %00000000
    TRISC = %10101001
    TRISD = %00000011
    TRISE = %00000111
    Adcon1 = 7 ' Set PORTA DIGITAL
    INTCON2.7=1 ' DISABLE Pull-Up's
    '-----------------------------------------------------------------
    PAUSE 500

    Lcdout $fe , 1 , "EasyPIC3 DEV"
    LCDOut $FE,$C0, "Board v1A"
    PAUSE 2000

    END

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


    Did you find this post helpful? Yes | No

    Default

    Be sure you set HS_OSC fuse before programming your PIC
    Steve

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

  4. #4
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default

    Hello,

    Thanks for coming to my help once again, yes the Crystal fuse is set properly as i have a small led blink rotuine after this display , which works properly.

    The LCD works with MikroBasic Compiler, But does not come on with PBP.

  5. #5
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Because you are running at 8MHz, try including one or both of these and increasing the times as shown here

    DEFINE LCD_COMMANDUS 4000
    DEFINE LCD_DATAUS 100
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  6. #6
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Thank you Steve,

    Hi Steve,

    Your inputs in a different thread solved my problem. The code was OK just that LVP fuse was enabled.

    Just disabled it and there I could see what I had to on my LCD.

    Thanks.

    regards

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


    Did you find this post helpful? Yes | No

    Default

    GOOD!

    Kind of thing to remember i guess!
    Steve

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

Similar Threads

  1. PIC18f452 blinking led ?
    By iugmoh in forum General
    Replies: 5
    Last Post: - 7th March 2008, 15:12
  2. Serial communication with pic18f452
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th December 2007, 22:27
  3. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 20:54
  4. Dealy in turn ON of PIC18F452
    By genesis in forum General
    Replies: 1
    Last Post: - 13th October 2006, 11:40
  5. Replies: 5
    Last Post: - 26th March 2006, 20:26

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