Go Down

Topic: SoftwareSerial with ATTiny84 using ATtiny library (Read 51 times) previous topic - next topic

Erni

That worked right out of the box !

So it seems that if you only need the output from the tiny you would choose KnockBang, and if you need to also send something to the tiny you would use
RelaySerial ?

Another observation in the test script you use

Code: [Select]
Debug.begin( 250000 );

But you have to set the serial monitor to 19200 (I mean usually they should be the same) ?

Coding Badly

#41
Sep 25, 2012, 10:43 pm Last Edit: Sep 25, 2012, 10:45 pm by Coding Badly Reason: 1
That worked right out of the box !


Excellent.

Quote
So it seems that if you only need the output from the tiny you would choose KnockBang, and if you need to also send something to the tiny you would use RelaySerial ?


That's what I do.  Knock-Bang is smaller, faster, more reliable, uses a pin already connected to the programmer, and consumes almost zero CPU time if the programmer is not connected.  For simple debugging it is a great choice.

Quote
Another observation in the test script you use
Code: [Select]
Debug.begin( 250000 );
But you have to set the serial monitor to 19200 (I mean usually they should be the same) ?


Sort of.  My ultimate goal is to provide three Tiny Debuggers: Serial, Knock-Bang, and Null.  The parameter (the "250000") will eventually be the baud rate for Serial.  For the other two debuggers the parameter is ignored.  You can put what you'd like in there but 19200 is certainly a better choice.

Erni

I am impressed with the tools you have made
  It will be interesting to hear what a Null debugger can be used to

Coding Badly

I am impressed with the tools you have made


Thanks.

Quote
It will be interesting to hear what a Null debugger can be used to


What popped into your mind when you read "Null debugger"?

Erni

My first thought was null modem, as in the old days when we interconnected two PC's with a crossover serial cable.

So maybe a smart way to let 2 attiny communicate together, while debugging the result ?

Go Up