Recent content by mortifyu

  1. M

    Understanding TMR3

    Hi Alan, It is effectively a one shot operation where there is possibly up to 8 outputs to be sent HIGH with varying delays (1-250mS) between each output, but each output MUST only remain HIGH for 25mS (no longer and no shorter (with an inaccuracy of 100-200uS being acceptable. The more...
  2. M

    Understanding TMR3

    Thanks Alan, I may have to come up with a different approach to my dilemma. Ultimately what I want to do is: HIGH C.1 (only for 25mS) with a pre-selectable delay time between C.1 and C.2. This delay may be as low as 1mS or as high as 250mS. HIGH C.2 (only for 25mS) Thus far my thoughts...
  3. M

    Understanding TMR3

    Hi Alan, Thank you. Hope you are well. Lucky for me I have learnt to strap myself into my chair prior to reading your responses in case I was to fall out on the RARE occasions YOU say something like "Sorry, it's not a feature I've ever used".:giggle: Mort = A Goose You are correct, BIT 7...
  4. M

    Understanding TMR3

    Hello Guru's, Just trying to appreciate exactly how to use TMR3. I wrote this basic CODE in order to understand the timer. It appears to function as I expected in the PE6 simulator. TIMER3 increments, C.1 and C.2 go HIGH accordingly. But when running on a LIVE 20X2 chip the TIMER3 value...
  5. M

    Underflow issue... Again :-(

    Thank you Gentlemen, most appreciated. I see you guys are quick to maintain Super-Star status around these parts. ;) Kind regards, Mort.
  6. M

    Underflow issue... Again :-(

    Hi Guru's, How to get around this resultant underflow issue? I looked around the forum, but did not find the (simple I am sure) answer. w0= 5 w1=18 w0=w0 - w1 min 0 end w0 and w1 can and do vary with reference to ADC inputs. So the desired calculation is that I would like be able to...
  7. M

    NPN + PNP switch

    Hi, Not sure if this thread is still current, but I am not really sure why in this day and age a P-channel FET would not be used in the place of Q2. By doing this, R3 could happily be crazy high like 100K for all it matters. (R3 is just keeping the Q2 transistor in an OFF state when Q3 is not...
  8. M

    Detecting I2C READ has occurred

    I near fell off my chair when I read this from you Alan. I'd almost bet my lefty that statement from you doesn't exist anywhere else in the entire forum :). Thanks for the info guys, I suspected this was going to be the case and will continue doing as I have done. Regards, Mort.
  9. M

    Detecting I2C READ has occurred

    Hi Guru's, This may be a silly question, I have looked around and can't seem to find what I am hoping may be available. Is there something within the PICAXE system that can 'flag' that a I2C READ has occurred? Providing CODE here would be a bit long winded and unnecessary, but the general...
  10. M

    connecting and programming lcd displays connected to a picaxe 18m

    Very helpful. Thank you chaps. Regards, Mort.
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
Top