Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD


Today 11:49
Forum: The Lounge
Starter: Oldhack
Views: 0
Replies: 41
Today 09:08
Forum: The Lounge
Starter: normnet
Views: 0
Replies: 1
Today 00:13
Forum: The Lounge
Starter: _Gabi_
Views: 6753
Replies: 24
Yesterday 17:28
Forum: Proton Plus Compiler v3
Starter: gtv_pic
Views: 0
Replies: 8
+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    401
    Thumbs Up
    Received: 40
    Given: 35
    Total Downloaded
    192.60 MB

    0 Not allowed!

    Default Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    Spend this afternoon with a compiler issue; no error's, but my LCD give only first line with squares, no characters, nothing.
    If I flash an old .hex LCD have all the char's, but if I compile the .bas file with 3.6.1.7 and flash the new .hex there's no output on LCD, only square's.
    I can't say if this problem only occur with this version of the compiler, because I use before an older version I think 3.6.0.3

    And stranger if I do this with an 26K22 .bas and .hex and also re-compile, the output on the I2C LCD is just fine.

    So there must be an problem with the combination of 16F1829 with I2C LCD with I2CPrintHardCommand.inc
    At this point I can't update my Filtrino water dispencer, and other projects.

    Anyone can help me out?

    Henk.

  2. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,850
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    So your current hardware with 16F1829 works if you use an HEX generated by 3.6.0.3 (or there abouts).

    Have you made any changes to the program? Xtal the same? What speed are you running the 26K22 at?

    I'd be interested to see if regular PRINT to normal parallel LCD works. 16F1829 is available in Isis so if I have time later I'll have a play.
    George

  3. #3
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    401
    Thumbs Up
    Received: 40
    Given: 35
    Total Downloaded
    192.60 MB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    Both hardware (breadboard) for 16F1829 and 26K22 is working fine.

    AND!
    I didn't edit the .bas files! But just re-compile the 16F1829 displays nothing on LCD! (only squares, like there is no MCU there)
    My scope doesn't show anything on the I2C DTA or CLK lines.
    (OLD .Hex files are oke)

    BUT!
    The problem doesn't arise with the 18F26K22 editting is just fine, flashing old and new .hex also fine.
    So, for the time being I moved the 'project' to 26K22 until @Les can explain a bit more.

    The only thing I can think of, that the I2C ports of 16F1829 are misplaced in .PPI or .INC, or the compiler, I just don't know.

    Henk.
    Last edited by Henk57; 15th July 2018 at 21:45.

  4. #4
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,850
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    Henk, I think your right.

    Unless it's legacy, HI2CSTART in the PPI is wrong, there is no B port on this device.

    Try setting HI2CSTART - SDA on RC1 and SCL on RC0. APFCON regs not required for I2C.
    George

  5. #5
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    401
    Thumbs Up
    Received: 40
    Given: 35
    Total Downloaded
    192.60 MB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    Hi George.

    Thats odd, because SCL is on RB.6 and SDA is on RB.4 (instead of RC0 and RC1)?

    Henk.

  6. #6
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,850
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    Sorry Henk, I was looking as 16F1825 on same datasheet. Quite unusual for mc to share datasheets on 2 such different devices, usually it's devices with the same peripherals but different mem, i/o etc

    Sorry Les, HI2CSTART is correct for MSSP1

    MSSP1 is on RB4 and RB6, MSSP2 is on RB5 and RB7.

    I wonder if it makes any difference if you substitute Hbusout1 or Hbusout2 for Hbusout in I2CPrintHardCommand?
    George

  7. #7
    Member Beginner's Avatar
    Join Date
    Jun 2006
    Posts
    105
    Thumbs Up
    Received: 3
    Given: 3
    Total Downloaded
    1.93 GB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    I also have some projects that do not work properly with the compiler> 3.6.0.3. For me it is the RSOut command. The cause of all problems will maybe be the same.

  8. #8
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    401
    Thumbs Up
    Received: 40
    Given: 35
    Total Downloaded
    192.60 MB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    @George,
    Before I change something and Les wil have a sulution, then I edit more files then needed.
    I saw Les 'jumping' bye in the forum, but I think he hadn't some time.

    If it not work with 26K22 then had to try replacing the compiler app with 3.6.0.3,
    and if my PDS is 'broken' than I try it for sure!

    @Beginner,
    I've read your topic but there are some difference, that's why I did't drop a message.

  9. #9
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    401
    Thumbs Up
    Received: 40
    Given: 35
    Total Downloaded
    192.60 MB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

    Well looking in the \PDS\Includes\PPI
    I saw two .PPI files for 1829 one P16F1829 and P16F1829LIN.

    There's is a big diference in those two, 1829LIN is missing I2C section, and 1829 have an I2C section!!!

    If I have more time I edit the LIN PPI.

    But why is the Compiler skipping the standard 1829 and choose for 1829LIN (I think so), that's the big riddle.

    Henk.

  10. #10
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,850
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: Compiler 3.6.1.7 issue with 16F1829 and I2C-LCD

  11. Yea, I saw that and wondered. I would have though that you'd only get the LIN version (whatever that is) if you said Device = 16F1829LIN
    George

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Bosh Fitrino Dispenser with 16F1829 DEMO
    By Henk57 in forum The Lounge
    Replies: 8
    Last Post: 21st April 2017, 19:24
  2. [SOLVED !] windows 10 update compiler issue
    By kuhrig in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 5th January 2016, 16:38
  3. Possible issue with CRead in latest version of compiler.
    By johngb in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 30th March 2014, 23:42
  4. Compiler issue regarding fuse settings
    By iimsha in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 21st March 2011, 20:30
  5. [SOLVED !] 16f690 I2C issue
    By Pictastic in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 27th September 2007, 22:37

Members who have read this thread since 2nd December 2018, 03:19 : 0

Actions :  (Set Date)  (Clear Date)

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