LCD_AnyPin.pbp


+ Reply to Thread
Results 1 to 40 of 113

Thread: LCD_AnyPin.pbp

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Just curious why you have LCD Data on RB2,3,4 & 5. If you simply moved them up two pins and moves E and RS down, you could use the standard PICBasic product with no modifications. I can understand if you have a PIC which doesn't have four consecutive pins available on a port, but why go to all the inconvenience when there is no need?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    In your code above, you have MCLRE enabled.

    But in the schematic you don't have a pull-up on MCLR (Pin 1).
    <br>
    DT

  3. #3
    Join Date
    Nov 2009
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    In your code above, you have MCLRE enabled.

    But in the schematic you don't have a pull-up on MCLR (Pin 1).
    <br>
    I'll try adding that, thank you. I'm sorry to keep bugging you about this.

    Quote Originally Posted by Melanie View Post
    Just curious why you have LCD Data on RB2,3,4 & 5. If you simply moved them up two pins and moves E and RS down, you could use the standard PICBasic product with no modifications. I can understand if you have a PIC which doesn't have four consecutive pins available on a port, but why go to all the inconvenience when there is no need?
    The circuit board is an existing design, I'd love to move things but I have to go with the produced PCB. The next thing one might wonder is how a person like me ends up with this on his plate? well I have VB, C, C++, MFC and C# experience and someone, in their infinite wisdom thought I'd be good to take this on as a "challenge". What I have absolutely zero experience with is PIC microcontrollers which seems to be a long-shot away from Windows programming.

    I'm sorry if I'm testing anyone's patience over this, perhaps PBP isn't the right tool for this task, perhaps I'll look into some C implementations for achieving this task.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Unless Darrel has done this routine in C, I think you won't find a solution in other places...

    Ioannis

  5. #5
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    I touched nothing on your code.

    Just compiled it as is.

    And it works with no problem as seen in the simulation (attached).



    http://www.picbasic.co.uk/forum/atta...1&d=1259222341
    Attached Images Attached Images  
    Last edited by sayzer; - 26th November 2009 at 08:06. Reason: typo
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    WooHoo!
    Now there's a $1000 simulation.
    <br>
    DT

  7. #7
    Join Date
    Nov 2009
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sayzer View Post
    I touched nothing on your code.

    Just compiled it as is.

    And it works with no problem as seen in the simulation (attached).



    http://www.picbasic.co.uk/forum/atta...1&d=1259222341
    Actually I see you have a pull-up on pin 1 and also have pin 7 tied low.

    I don't see how pin 7 can be any problem for me but looking at the PCB I notice it doesn't have the pull-up on pin 1.

    Existing (pre-programmed) 16F883's I have on my bench are working fine when inserted into this PCB so I have reservations thinking that's the problem at hand.

    Thanks for your responses everyone.

  8. #8
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Post due diligence

    Quote Originally Posted by PICn-It View Post
    Actually I see you have a pull-up on pin 1 and also have pin 7 tied low.

    I don't see how pin 7 can be any problem for me but looking at the PCB I notice it doesn't have the pull-up on pin 1.

    Existing (pre-programmed) 16F883's I have on my bench are working fine when inserted into this PCB so I have reservations thinking that's the problem at hand.

    Thanks for your responses everyone.
    See Darrel's Question...
    Quote Originally Posted by Darrel Taylor View Post
    In your code above, you have MCLRE enabled.

    But in the schematic you don't have a pull-up on MCLR (Pin 1).
    <br>
    Quote Originally Posted by Darrel Taylor View Post
    Is the RW pin on the LCD connected to the PIC, or is it grounded?
    <br>
    Last edited by Pic_User; - 29th November 2009 at 15:38. Reason: add third quote
    Ohm it's not just a good idea... it's the LAW !

Members who have read this thread : 11

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