Help! use PBP246 for PIC18F2525


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Anyone use pbp246 over PIC2525 ?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragon View Post
    Anyone use pbp246 over PIC2525 ?
    Code used in PBP?

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


    Did you find this post helpful? Yes | No

    Default

    For what i remind, PBP2.46 & PIC18F2525 worked for me. As Skimask says, just post your code here.
    Steve

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

  4. #4
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91


    Did you find this post helpful? Yes | No

    Default Yes it works.

    I know for a fact it works as I have a display board with 3 MAX6957's burning away right now with an 18f2525@ 20Mhz. I migrated from a 16f876 and had a few setup issues with registers but it went reasonably well.

    Hope this helps..
    "It will never happen here!" just happened here.
    My thoughts and prayers for Sandy Hook victims and families.

  5. #5
    Join Date
    Dec 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Thanks,try once more, if failed I will post the test code.

  6. #6
    Join Date
    Dec 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default test code

    DEFINE OSC 8
    DEFINE LCD_DREG PORTA

    DEFINE LCD_DBIT 0
    DEFINE LCD_EREG PORTA
    DEFINE LCD_EBIT 4
    DEFINE LCD_RSREG PORTA
    DEFINE LCD_RSBIT 5
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 4000
    DEFINE LCD_DATAUS 100

    CMCON = 7
    ADCON1 = 6
    TRISA = %11000000


    PAUSE 5000

    loop:
    Lcdout $fe, 1 ' Clear LCD screen
    Lcdout "Hello" ' Display Hello
    Pause 1000 ' Wait .5 second

    Lcdout $fe, 1 ' Clear LCD screen
    Lcdout "World"
    Pause 1000 ' Wait .5 second


    Goto loop ' Do it forever


    End
    Last edited by dragon; - 23rd December 2007 at 02:38.

  7. #7
    Join Date
    Dec 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    it doesn't work! please help! thanks



    Quote Originally Posted by dragon View Post
    DEFINE OSC 8
    DEFINE LCD_DREG PORTA

    DEFINE LCD_DBIT 0
    DEFINE LCD_EREG PORTA
    DEFINE LCD_EBIT 4
    DEFINE LCD_RSREG PORTA
    DEFINE LCD_RSBIT 5
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 4000
    DEFINE LCD_DATAUS 100

    CMCON = 7
    ADCON1 = 6
    TRISA = %11000000


    PAUSE 5000

    loop:
    Lcdout $fe, 1 ' Clear LCD screen
    Lcdout "Hello" ' Display Hello
    Pause 1000 ' Wait .5 second

    Lcdout $fe, 1 ' Clear LCD screen
    Lcdout "World"
    Pause 1000 ' Wait .5 second


    Goto loop ' Do it forever


    End

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