Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: CuriousOne; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Oh yes, XINST issues are solely my code fault too, right? :)
  2. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Yes I know what is the difference between the compiler and interpreter.

    And I'm not asking about RUNTIME error handling. I'm asking about boundary checking during the compile.
    It can be clearly...
  3. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Well, as my experience with ZX Spectrum BASIC shows (In case of array misreading: Error 3: Subscript wrong), when you do something not allowed, you will get an error message.
    Even Visual Basic does...
  4. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Yes I have read that.
    But same manual also says that array size is limited for 16F series and only limited by available RAM on 18F, so I thought that this should work fine, but as it seems, it does...
  5. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Well, that is interesting.
    As I understand, there is no "index out of bounds" error type supported by PBP? :)

    I've modified that part of code to look like this:



    if topline[x]=32 then a=0...
  6. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    These are code parts which insert the empty space when in the array we do have code for ASCII space (32).
    And this part of code works just fine.
    The issue is that another, non-related part of code...
  7. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    OK, that was my fault, you're right
    but I have caught this variable space array bug again. What happens here. If code I've selected with BOLD is active, it causes topline last byte to be replaced by...
  8. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    "The last call" of gcoder is the code that makes that inversion, so variables are assigned before their use.
  9. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    The position of inversion depends on two variables, ASTART and AEND.
    They are assigned values of 5 and 10.
    On 1st run code works fine and inversion starts at 5th char and ends on 10th.
    But after...
  10. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    OK here it is. Here's a code.
    It works properly only on first run after the flashing the code. If I unplug the power, next it will run with the same error.
    The left picture shows correct result,...
  11. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    What I 100% figured out, by writing the small code is the 18F issue with ST7920 LCD.
    When I turn on the graphic mode, by sending LCDOUT $FE,$2E , there are high chances that random character in text...
  12. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    No that different code :)
    Now I'm back to "big" code.

    I'm trying now to isolate the problem and writing all from the scratch, part by part, verifying.
  13. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    The "complete" code is about 700 lines (and it is not complete yet).
    Found another bug.
    I call some subroutine, which uses own set of variables (verified)
    after calling it, value of totally...
  14. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Thanks, sure
    this weekend :)
  15. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Thanks, have you tried to read the same array several times?
    Problem is definitely in arrays, because if I make say topline 4 bytes and botline 16 bytes (even without writing anything to any of...
  16. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    LOL.
    I'm trying to explain that if I add one extra array definition, another array gets screwed. How this is related to LCD?
    I just wrote another code, which simply reads values of array and writes...
  17. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    I don't see any relation :)
    I modified code and X now changes from 0 to 14 - still same issue.
  18. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Did a test with various size of arrays.
    If both arrays do not exceed 24 bytes total, then everything is fine. As they exceed 24 bytes, issues start to appear.
  19. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    X is being incremented in steps of 2, so it will never be 15.
    I even modified code so that X will never exceed 14 - issue is still here, but there is some logic in it.

    I tried to add code in loop...
  20. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Found another bug/issue.

    Here's simple code:



    topline var byte [16] 'top part of the screen array
    botline var byte [16] 'bottom part of screen
  21. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    I don't remember exactly, but if not mistaken, the fastest display with HD44780 interface I tested with PBP was VFD module from Noritake - 1500 was reduced to 300 without any issues.
  22. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Well, default values of 1500/50 are in PBP manual and I guess they had reasons to write so.
    I have tested different brands/makers of 1602 LCD, including genuine hitachi made modules. Some show...
  23. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    Ok, here are the answers.

    ST7920 based display modules have great advantages over any common LCD controllers:

    1. They are physically and pin to pin compatible with common 1602 LCD modules,...
  24. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    https://www.youtube.com/watch?v=aACOC9XBBks
    Link to video.
  25. Replies
    68
    Views
    30,047

    Re: I2CWRITE not writing anything on PIC18F45K80

    But people are making fast update to these screens via U8G and other libraries. Check this video from 7th minute.
    I want similar speed, but with PBP.
Results 1 to 25 of 34
Page 1 of 2 1 2