20x4 LCD and P18F2680


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    You're still lucky that something work
    Datasheet, Register 19-2: ADCON1
    ADCON1=$0F
    Steve

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

  2. #2
    Join Date
    Aug 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Thank you Mister e, but the problem persist
    I also tried with DBits on portA (setting the ADCON0.0 register to 0), but nothing...

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


    Did you find this post helpful? Yes | No

    Default

    ADCON0 have nothing to do with this.. ADCON1 and probably CMCON have something to do with PORTA

    Hehe Even if i doubt it cause you a problem...
    Code:
    DEFINE LCB_BITS 4
    there's a typo error. BTW 4 bit mode is the default, you can remove that line
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    How about if your write to two last lines before? Problem is still the same?

    Can you add some Pauses between each of your LCDOUT to see what's happen?

    What happen when you increase the LCD_DATAUS value to let's say 200?
    Last edited by mister_e; - 3rd June 2006 at 23:09.
    Steve

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

  5. #5
    Join Date
    Aug 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Yes, problem is the same but after change my 20MHz osc configured in HS mode with a 10Mhz configured in HSPPL mode it works fine... but why?

    changed lines:
    DEFINE OSC 40
    @ __CONFIG _CONFIG1H, _OSC_HSPLL_1H & _FCMENB_ON_1H & _IESOB_ON_1H

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


    Did you find this post helpful? Yes | No

    Default

    Reuse the 20MHZ crystal and remove capacitor around. What happen?

    Keep wire as short as possible. It's often a ProtoBoard capacitance.
    Steve

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

  7. #7
    Join Date
    Aug 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    I tried to reuse 20MHz crystal osc without capacitators, but the problem is the same! I would try with another type of 18F pic's series, but I haven't one! With 10MHz osc and ppl mode on all is ok

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