Search results

  1. M

    connecting and programming lcd displays connected to a picaxe 18m

    Very helpful. Thank you chaps. Regards, Mort.
  2. M

    connecting and programming lcd displays connected to a picaxe 18m

    Nope, Mort didn't try your code. I just chimed in with my own experiences that I know work. But while on the subject (but not to hijack this thread) in my code 'Initialize and setup LCD' in this thread, can anyone with a single line LINK point me to where Hippy came up with these addresses and...
  3. M

    Losing hours over stupid lcds

    Hi, only just saw this thread. Here is some CODE that DOES work as I use it regularly with 20X4 LCD's with my own PCF8574T I2C interface circuitry which is effectively the same as the piggyback I2C interface shown in POST #8. The CODE is ALL credit to Hippy and a few other awesome peeps on this...
  4. M

    Possible PE6 Simulator fault, or is it me?

    Hi Flenser, I did as you told me and indeed you are bang on. Jumping right in with the '#SIMULATION 100' line solved the issue. Thank you very much for your assistance guys. ALWAYS! very much appreciated more than words on your screen can describe. Coming here asking questions is like an...
  5. M

    Possible PE6 Simulator fault, or is it me?

    Hi Alan, Sorry, it is a 40X2. The 'received:' label is much further down in the program. I wrote the CODE example to show the problem I am having. As a matter of interest... if timer<2 and HSerFlag=0 then goto Ready is equivalent to if timer<2 and HSerFlag=0 then goto Ready Is...
  6. M

    Possible PE6 Simulator fault, or is it me?

    Hi Guru's, I am finding the SIMULATOR not operating as expected. Is it me, or is this an error in the SIMULATOR? HSerSetup B9600_8, %01 settimer t1s_8 HSerFlag=0 HserPtr=0 ptr=0 . . ...Receive three Bytes of DATA . . ptr=0 sertxd(@ptrinc," ",@ptrinc," ",@ptr,cr) 'Displays DATA as...
  7. M

    Setting multiple BITS more efficiently

    Hi, yes I understood : made for a new line of code, I just thought (for some silly reason) a BIT change like that was going to be referenced to the preceeding addressed BYTE. Instead in future I will use your example in POST #11. Thanks Alan, you're a gem. Regards, Mort.
  8. M

    Setting multiple BITS more efficiently

    Thanks for the clarification of having bit availability of ONLY b0 to b3. how is anybody supposed to know... HI2CIN [$E0],$00,(b4): bit7=1: pause 8: HI2COUT [$E0],$00,(b4) Sorry, I thought this line of code clarified what I was talking about. Regards, Mort.
  9. M

    Setting multiple BITS more efficiently

    Yes, I am a BIT 🤪 of a goose. I did read that, guess I am getting a BIT old and slow ☺. I made alterations using BIT15 to BIT8 and that resolved the problem when utilizing b1. Further, I have also now come to the realization that... b0 = bit7 to bit 0 b1 = bit15 to bit 8 b2 = bit23 to bit 16...
  10. M

    Setting multiple BITS more efficiently

    So now I find using b0 works fine, but a change to b1 (or any other byte) does not. Why would this be? HI2CIN [$E0],$00,(b0): bit7=1: pause 8: HI2COUT [$E0],$00,(b0) 'Works fine HI2CIN [$E0],$00,(b1): bit7=1: pause 8: HI2COUT [$E0],$00,(b1) 'Does not work. Regards, Mort.
  11. M

    Setting multiple BITS more efficiently

    And there it is... HI2CIN [$E0],$01,(Temp_Byte): bit6=1: bit5=1 Thank you Ibenson. That is exactly what I was looking/hoping for. Also thanks to the other Guru's that popped in suggestions. Always a pleasure to score some further education from AlleyCat and others ;) Kind regards, Mort.
  12. M

    Setting multiple BITS more efficiently

    Hi Guru's Here I have a scenario in which I need to read specific BYTE's from an external LED&Keyscan matrix chip (Holtek - HT16K33), make alterations to individual BITS of the read BYTE and then write the BYTE back to the HT16K33. For understanding, there are parts of two different BYTES...
  13. M

    Hippy

    Hippy... Upon Hippy’s return, someone at the top of Rev Ed should organise to double his salary. As I am sure very many would agree... Hippy is definitely worth it! I for one have purchased many thousands of dollars of PICAXE chips over time and can say Hippy’s help beyond any shadow of doubt...
  14. M

    Programming Adafruit 4-Digit Displa7 (HT16K33)

    For the sake of the forum Technical's post #18 is the only way this can be achieved. Noted from Holtek themselves. Regards, Mort.
  15. M

    Programming Adafruit 4-Digit Displa7 (HT16K33)

    Thanks for that. Yep, I can see that will semi achieve what I am after, however reading the datasheet (page 10) they talk about 'Display Data Address Pointer. I am thinking this is what I am after, but just how to directly alter a single bit by command? Regards, Mort.
  16. M

    Programming Adafruit 4-Digit Displa7 (HT16K33)

    Hello Guru's, it's been a while. Hope you are all well in these crazy times. Here I am resurrecting yet another quite old thread... I am currently toying with the HT16K33's. I have it functioning relatively fine, however, I can't work out how to toggle/change the state of a single output...
  17. M

    Calculating integers far greater than 65535.

    Hi Marks, Thanks for your input with this project and your fancy code. BREAK OUT THE BEERS!!!! 🥳🥳🥳 Your code works an absolute treat! It is so accurate, that it is now necessary for me to proceed to creating the test PCB jig in order to confirm the accuracy of this circuit/setup to the...
  18. M

    Calculating integers far greater than 65535.

    Marks, AllyCat & Hippy, Thanks for that, yes, 'COMMON MODE' was previously mentioned and silly old Mort didn't trigger to it and take in Marks comments at POST #54. In a way this shows the difference of 35 years of mostly self education/research/asking questions online VS a formal education...
  19. M

    Calculating integers far greater than 65535.

    Hi All, For those of you playing along at home... The below readings were accurately taken with the original circuit modified for testing purposes with a 2.5V reference. 'This program takes 1000 samples from the LTC2485 and then provides the average values. Startup: #com 1 #terminal 4800...
  20. M

    Calculating integers far greater than 65535.

    Hi marks, Want to have a go explaining working down to 330 ohms from a MAX 24bit value being equal to 16,777,215 decimal? Regards, Mort.
Top