Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.

pepyakin/msp430-uart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

msp430-uart

Simple asynchronous implementation of hardware UART protocol. It occupies 2 interrupt vectors:

  • USCIAB0RX_VECTOR
  • USCIAB0TX_VECTOR

Project defines 2 macros: UART_BUFFER_SIZE - maximal byte count receive/transmit buffer can hold. UART_COUNT_RXTX - define this macro if you want to count received and transmitted bytes.

Interrupts must be enabled in order to receive or transmit data, blocking functions might enable interrupts (set GIE flag in SR) at will for waiting in low-power mode (LPM0). Also, interrupts must be enabled if you want to receive data asynchronously.

Features

  • Simple interface
  • Async read/write
  • Waiting for input data in LPM0

Some basic example: https://gist.github.com/3853003

About

Simple library for low-power UART IO

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages