do i need to init the CG or DD in 4 bit lcd?


Results 1 to 5 of 5

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Note that most PIC have now analog Comparator and/or ADC attach to PORTA. Those have to be disable prior to use them in digital mode as you do.

    As you're using an PIC16F73.

    ADCON1=7 ' set all analog pins to digital,see datasheet section 11

    Also i'm i blind/dumb or your Board have an 4.19MHZ crystal on??????

    IF so, you'll have to do some maths 'cause PBP, as i know/read in V2.45, don't have any define for this crystal.... only 4MHZ. So by using default 4MHZ setting all commands will be executed a bit faster than what you expect. few maths to correct your timing will do the job.

    But i feel that LCDs are not so much timing critical. The only question i have... should you set oscillator config fuse to XT or HS? XT is for 4MHZ crystal... so i feeel you'll have to use HS osc but i'm not 100% sure since i never did some test with that crystal speed. Anybody used that crystal speed before?
    Last edited by mister_e; - 14th May 2005 at 15:44.
    Steve

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

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  4. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 21:56
  5. 4 Bit Lcd Hookup
    By GEEZER in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th May 2005, 00:14

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