16f946


Closed Thread
Results 1 to 21 of 21

Thread: 16f946

Hybrid View

  1. #1

    Default 16f946

    I have been working with a 16F946 driving an 8 digit multiplexed LCD. Attached is a "HELLO WORLD" demo program for those interested. Please note the pin connections to the LCD from the PIC are arbitrary, and I made mine for the convenience of the PCB layout guy (me!).

    Dave
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default lcd interrupt

    why did you PIR2.4 = 0 ?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Page 167 of the data sheet, "Configuring the LCD Module" says to do this. Apparently, you cannot write to the LCDDATA registers at certain times. The LCD Interrupt (PIR2.4) is there to prevent attempts to do this. I haven't gotten that far into it yet.

  4. #4
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    i think you should use it just when you use the LCD interrupts (...should be Type B)... i will check if will work without PIR2.4 = 0

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thank you for the advice!

  6. #6


    Did you find this post helpful? Yes | No

    Default

    It seems the "HELLO WORLD" program I posted has problems. If certain characters are added to the seventh digit, the second digit becomes corrupted. The attached program is the same as the other one, with the digit "8" added after the "D" in "WORLD". You see that the "W" loses the "L" segment. I believe that this is happening because I'm trying to write characters at the wrong time. I have tried using "Type-B waveforms" and the LCD interrupt, but I don't understand how to use this interrupt. Does anyone have any ideas? Thank you.
    Attached Files Attached Files

Similar Threads

  1. 16F946 pcb footprint (64 tqfp)
    By nomad in forum Schematics
    Replies: 2
    Last Post: - 8th September 2009, 11:14
  2. Replies: 4
    Last Post: - 17th April 2009, 08:56
  3. 16F946 Instant Interrupts problem
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th April 2009, 22:20
  4. Problem with Bank 3 in 16F946
    By karlosguay in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2006, 00:19

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