​ ​ ​ Search Results - PICAXE Forum

Search:

Type: Posts; User: hippy

Page 1 of 20 1 2 3 4

Search: Search took 0.37 seconds.

  1. Replies
    13
    Views
    215

    Going back to #MACRO/#DEFINE there is one...

    Going back to #MACRO/#DEFINE there is one important difference - #MACRO allows the replacement of a line/command, while #DEFINE allows a replacement within the line. You couldn't do this with a...
  2. Replies
    21
    Views
    787

    As the device is at least acknowledging the...

    As the device is at least acknowledging the initial part of the I2C communications it would seem that it is working, even if not delivering the desired results.

    I think using a $00 device address,...
  3. Replies
    13
    Views
    215

    You can also do that with #DEFINE ... ...

    You can also do that with #DEFINE ...



    #Define Add(lhs,rhs) lhs + rhs

    b0 = Add(1,2)
    SerTxd( "1 + 2 = ", #b0 )
  4. Replies
    13
    Views
    215

    I would recommend using "Input C.1" instead of...

    I would recommend using "Input C.1" instead of "Reverse C.1" for the #MACRO/#DEFINE to turn the LED off.

    That allows a RGled_off to follow a previous RGled_off. Not so important in your example...
  5. Replies
    25
    Views
    628

    Thanks. That explains the PAUSE and the ordering;...

    Thanks. That explains the PAUSE and the ordering; one cannot turn the RF off and then transmit, it has to be transmit and then turn off.

    That makes perfect sense. My misunderstanding came from not...
  6. Replies
    25
    Views
    628

    I think it is more correct to say that PE6 will...

    I think it is more correct to say that PE6 will tolerate spaces where colons should be used but aren't. PE6 will try to do its best when colons are missing but can potentially get confused, give...
  7. Replies
    3
    Views
    98

    If you just want to count pulses and not miss any...

    If you just want to count pulses and not miss any there are three main options -

    1) Use an internal counter driven by an external source. Easy with X2, you have to jump through some POKESFR hoops...
  8. Replies
    21
    Views
    787

    You don't need any code to determine the parity...

    You don't need any code to determine the parity bit. When configuring the MOD1 and MOD2 registers you will know exactly which bits you want to set and clear and can determine the parity bit simply by...
  9. Replies
    3
    Views
    98

    Do you want to count pulses or measure their...

    Do you want to count pulses or measure their length as your code seems to do ?

    Your problem is ...



    interrupt:
    SETFREQ m16
    LET int_timer = int_timer + 1
    IF pinC.3 = 0 THEN interrupt
  10. Replies
    2
    Views
    131

    To read an input you need to read a 'pin'...

    To read an input you need to read a 'pin' variable.

    Change "symbol sw = 1" to "symbol sw = pin1" and it should at least pass syntax check.
  11. There is no non-volatile memory in the 7219 so no...

    There is no non-volatile memory in the 7219 so no way to accidentally program it to do something it should not be doing at turn-on.

    This seems to be a chip hardware issue and, if disabling the...
  12. Replies
    23
    Views
    495

    The dot is the resistor package's common...

    The dot is the resistor package's common connector so should be 0V.



    .-.-.-.-.-.-.-.
    | | | | | | | |
    R R R R R R R |
    | | | | | | | |<-- Dotted leg
  13. It may be a 'dodgy chip' but I would have...

    It may be a 'dodgy chip' but I would have suspected it's sending the Turn Display Command On ($0C01) before having explicitly cleared all the data registers. Once on it could will be displaying...
  14. Replies
    3
    Views
    125

    I had expected 20 too, which is why there's that...

    I had expected 20 too, which is why there's that proof it is 21 :-)

    245 is of course 11 below zero, 10 below 255. Things can indeed get complicated and/or confusing when passing through zero.
  15. Replies
    3
    Views
    125

    10 - 245 = -235, is $FF15, which as a positive...

    10 - 245 = -235, is $FF15, which as a positive binary integer is $FF15 (65301) as a word or $15 (21) as a byte.

    You can confirm that by simulating the following code under PE6 -



    b1 = 10
    b2...
  16. Replies
    25
    Views
    628

    Possibly. That you cannot download likely is that...

    Possibly. That you cannot download likely is that it is just waiting for something, not acknowledging the download request without a Hard Reset.

    The 'no outputs' situation could be a hardware...
  17. Replies
    12
    Views
    259

    I think that generally sums it up. But you...

    I think that generally sums it up.

    But you don't need a handshake with SERIN so long as the system is designed such that the receiver will be ready to receive before the sender sends.
  18. Replies
    12
    Views
    259

    I'd completely forgotten about that! The CTS...

    I'd completely forgotten about that! The CTS proposal of course only works where the sender respects such a CTS signal, doesn't send when it is asserted. HSERIN background receive almost complete...
  19. Replies
    12
    Views
    259

    Though that will be for fixed length or fixed...

    Though that will be for fixed length or fixed format messages.

    SERIN is not really suited to variable length or unsolicited messages where data may arrive at any time. It may be possible to create...
  20. Replies
    12
    Views
    259

    It may be possible to use a SERIN with a timeout...

    It may be possible to use a SERIN with a timeout in a loop to store to @bptr or @ptr as oracle suggests. You would really have to try it to see if it works and is quick enough.

    I would suggest...
  21. Perhaps post your code so it can be checked that...

    Perhaps post your code so it can be checked that it's not doing anything to flash the LED's. At start-up the display should be blanked so nothing should flash. It may be that you are actually setting...
  22. Replies
    22
    Views
    940

    Yes it would.

    Yes it would.
  23. Replies
    23
    Views
    495

    Basically it will report what levels are detected...

    Basically it will report what levels are detected on the input, which should change whenever you press or release the button connected to the input pin.

    If things are working as expected then it...
  24. Replies
    23
    Views
    495

    PinC.7, not C.7 C.7 is the name of the pin you...

    PinC.7, not C.7

    C.7 is the name of the pin you are using but pinC.7 is what delivers the input value on the pin.
  25. Replies
    23
    Views
    495

    The board you have seems to be an AXE118. If so...

    The board you have seems to be an AXE118. If so then the pins on the left are input pins with V+ next to them. Shorting the two together should take the input high. The pull-down resistors are in the...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4