Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ercanersoy/pic-xc8-usart-library
- Owner: ercanersoy
- License: mit
- Created: 2020-02-14T23:31:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-02T09:45:20.000Z (6 months ago)
- Last Synced: 2024-06-02T10:52:15.187Z (6 months ago)
- Topics: c, library, microchip, mplabx, pic, uart, uart-library, usart, usart-library, xc8, xc8-compiler, xc8-toolchain
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.