Serial assembler library for AVR ATtiny
This serial library is written in assembly and is based on work done by Ralph Doncaster.
With a C interface it has been written for microcontrollers Atmel AVR Tiny and Arduino IDE.
At the end it has been tested on a ATtiny85 and must be at least compatible with ATtinyX5 series.
Library is only 260 Bytes.
To install the library in the Arduino IDE steps are:
- Download AsmTinySerial-master.zip and extract it.
- Remove -master of the folder AsmTinySerial-master in order to have AsmTinySerial.
- Close your Arduino software if opened.
- Move the AsmTinySerial folder in your Arduino sketchbook/libraries directory.
- That's all, restart your Arduino software.
Library provides two functions:
-
void SerialInit( uint8_t , unsigned long )
It allows to configure transmission port thus baud rate:
-
The first parameter is the transmission port.
Ports allowed are from PB0 to PB5.
-
The second one is the baud rate.
Typically: 115200 Baud.
-
-
void SerialTx( const char * )
It allows to send a string through a character array.
This sketch is the one provided in the library as example.
It shows how to use it and can be opened using:
AsmTinySerial is released under the BSD 3-Clause License.
See the bundled LICENSE.md
for details.