Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Arraywrite converts all letters to uppercase?

    Compiler errors?
    try to write or read past available eeprom - no errors will be given :)
    I know, this may be called not a bug, but a feature, but even on ancient ZX Spectrum there was an error code...
  2. Re: Arraywrite converts all letters to uppercase?

    Well, if you're into scrolling thru 500+ lines of code.....
    I'm just trying to make things simpler :)
  3. Re: Arraywrite converts all letters to uppercase?

    I deleted all the code and defines
    did everything from blank sheet, and now it works properly....
  4. Re: Arraywrite converts all letters to uppercase?

    Pic16f886.
  5. Replies
    32
    Views
    2,575

    Re: How exactly LCDOUT statement works?

    Well, I have shifted letters to right edge, instead of left, and for text it indeed works, but when there is need to display the graphics...
    I'm using LCDOUT due it's simplicity and low memory use....
  6. Replies
    32
    Views
    2,575

    Re: How exactly LCDOUT statement works?

    Any ideas?
    This is very annoying and trashes whole idea of using LCDOUT statement...
  7. Arraywrite converts all letters to uppercase?

    Hello.


    topline var byte [6]
    arraywrite topline, ["ABCabc"]
    FOR X=0 TO 6
    LCDOUT $FE, $01, DEC topline[x]
    pause 1000
    next
  8. Re: How to do bitwise shift across several variables/array members?

    I'm thinking it in the following way (as example, 2 byte array, shifted to right)

    1. Read both array bytes into variables A and B
    2. Shift B right 1 bit
    3. Add LSB from A as MSB to B
    4. Shift A...
  9. Re: How to do bitwise shift across several variables/array members?

    So you want to say, I can shift left or right whole contents of an array?
  10. How to do bitwise shift across several variables/array members?

    Say there is an array, having 16 member, 1 byte each. I want to shift bits say to right in that way, that the byte that "leaves" say 1st member, gets shifted in into 2nd member, and so on (and bit...
  11. Replies
    32
    Views
    2,575

    Re: How exactly LCDOUT statement works?

    How to send $FE with LCDOUT ?
    X=$FE
    LCDOUT X

    It sends statements instead of byte data :) Found this accidentally - one of my custom font letters contained $FE pixels, and when using that char,...
  12. Re: How to read from single LOOKUP table into different variables?

    Oh and I'll ask here. Is it possible to do bitwise shift between array members?
    I'm adding some smooth scroll options to that display, and vertical scrolling is easy, since 1 byte = 1 vertical line...
  13. Re: How to read from single LOOKUP table into different variables?

    Currently I'm doing this in the following way:



    FOR X=0 TO 17 step 2 'READ ARRAY INTO VARIABLE, ARRAY MEMBER CHAR=EEPROM OFFSET
    Y=topline[x]
    Z=topline[x+1] 'READ INTO VARIABLE AS TWINS
    FOR...
  14. Re: How to read from single LOOKUP table into different variables?

    Currently I'm doing it this way:



    topline var byte [18]
    topline[0]=88
    topline[1]=64
    topline[2]=192
    topline[3]=0
    topline[4]=255
  15. Re: How to read from single LOOKUP table into different variables?

    I want to get two consecutive bytes from one "Hello!" string. How more clear I can say this in other way?

    I'll try once again. I need output of this kind from Hello!
    A=H
    B=e
    A=l
    B=l
    A=o
    B=!
  16. How to read from single LOOKUP table into different variables?

    I'm making my own "library" for ST7920 display, which allows to display 18x4 lines of custom charset, in dimensions of 16x2 LCD display.
    Since there is no string variable support in PBP, I want to...
  17. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    I will use everything different - LCD, PIC, EEPROM and will check again...
  18. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    yes it is read routine - it reads eeprom only once.
  19. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    Maybe read routine is faulty?
  20. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    Here is full complete code.



    ;----[16F886 Hardware Configuration]--------------------------------------------
    #CONFIG
    cfg1 = _INTRC_OSC_NOCLKOUT ; INTOSCIO oscillator: I/O function on...
  21. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    The code which I've posted, which writes 99 into eeprom.
    I replace 99 with any other value - it works.
    I put variable name into brackets - it writes zeroes into eeprom.
    no matter what type of...
  22. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    Pins are configured properly, LCD also working fine.



    TRISA=%00000000 'SET A TO OUTPUT
    TRISC=%00001101
    TRISB=%00011000
    ANSELH=%00000000 ' ADC OFF B
    ANSEL=%000000000 ' turn off...
  23. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    DPIN Var PORTA.2 ' I2C data pin
    CPIN Var PORTA.1 ' I2C clock pin
    B0 Var word
    B1 Var byte
    B2 Var byte
    X var byte
    x=0


    For B0 = 0 To 15
  24. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    I tried to add brackets and now it starts working, but in the weird way.

    I2CWRITE DPIN,CPIN,$A0,B0,[127]
    Writes 127 into eeprom
    but if I substitute variable there, no matter, byte or word...
  25. Replies
    29
    Views
    13,313

    Re: I2CRead & I2CWrite not working as expected

    Well, if there's syntax error, compiler should warn about it, right?
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4