Skip to content

cyosp/AsmTinySerial

Repository files navigation

AsmTinySerial

Serial assembler library for AVR ATtiny

Stable version BSD-3 license

Description

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.

Arduino installation

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.

How to use

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.

AsmTinySerial_Demo

This sketch is the one provided in the library as example.

It shows how to use it and can be opened using:

  • File -> Examples -> AsmTinySerial -> AsmTinySerial_Demo :

    AsmTinySerial_Demo.ino sketch

License

AsmTinySerial is released under the BSD 3-Clause License.

See the bundled LICENSE.md for details.

About

Serial assembler library for AVR ATtiny

Resources

License

Stars

Watchers

Forks

Packages

No packages published