problem (bug) in LCDOUT & MSSP-modul


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289

    Unhappy problem (bug) in LCDOUT & MSSP-modul

    ...the last 14 days I was hunting a serious bug in our application...

    today I found the solution !
    A 16F872 works as a display-controller and receives the characters to print via I2C-communication. Until now, the characters are delivered very slowly, so the uC was able to put them on the display, before another character was received.
    Now, I must store some characters and put them on the display, while other charaters are received via I2C. And here the trouble starts!

    today I found out, the LCDOUT-command touches the TRIS each time, a character is given to the LCD (read-modify-write), so the TRIS-bits may become wrong (the MSSP switches the TRIS!)

    So, I disables the switching of the TRIS in the LCDOUT-macro - it works !
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

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


    Did you find this post helpful? Yes | No

    Default

    mmm, interesting. Did you declare PORTx or LATx?

    but i'm not sure if PBP DEFINEs will use LAT...
    Steve

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

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Talking

    PIC16xxx has no LAT, and the problem is touching the TRIS-Register (read-modify-write) while the hardware does it too.
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

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


    Did you find this post helpful? Yes | No

    Default

    Ah crap... better to open my eyes better next time

    I don't know why... but i saw 18F
    Steve

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

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  2. need help in coding..
    By daphne8888 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 19th March 2008, 07:31
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 02:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

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