Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ercanersoy/pic-xc8-usart-library

PIC MPLABX USART Library
https://github.com/ercanersoy/pic-xc8-usart-library

c library microchip mplabx pic uart uart-library usart usart-library xc8 xc8-compiler xc8-toolchain

Last synced: 5 days ago
JSON representation

PIC MPLABX USART Library

Awesome Lists containing this project

README

        

# PIC XC8 USART Library

Copyright (C) 2020-2024 Ercan Ersoy

This USART library is useful for USART data communications.

This USART library licensed by MIT License.

## Usage

_XTAL_FREQ must be defined at "USART.h" header file.

### void USART_calculate_baud(const unsigned long int baudrate)

Calculate and set USART baud rate.

### void USART_send(const char data)

Send a character from USART.

### unsigned char USART_TSR_control(void)

Get USART TSR control

### void USART_print(const char *string)

Send a string from USART.

### unsigned char USART_read_available(void)

Get data is availabile from USART.

### void lcd_print(const char *s)

Print a string on screen.

### char USART_read(void)

Read a character from USART.

## Note

PIC is a registered trademark of Microchip Technology Incorporated.