We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2018-03-13
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: RS232
Downloaded: 5347 times
Not followed.
License: MIT license
RS232 2 click performs full RS232 to UART signal conversion, allowing both 3.3V and 5V operation. Additionally, it features ±15 kV ESD protection for the RS-232 I/O pins.
Do you want to subscribe in order to receive notifications regarding "RS232 2 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "RS232 2 click" changes.
Do you want to report abuse regarding "RS232 2 click".
Library Description
This library carries functions for data transmission and reception alongside with functions for individual control of each GPIO pin found on RS232 2 click.
Key functions
uint8_t rs232_2_readByte()- Reads received byte
void rs232_2_writeByte(uint8_t input)- Sends byte
uint8_t rs232_2_byteReady()-Checks for received byte
Examples Description
The application is composed of three sections :
void applicationTask() { uint8_t tmp; char rec; uint8_t rdyFlag; // RECEIVER - UART polling rdyFlag = rs232_2_byteReady(); if (1 == rdyFlag) { rec = rs232_2_readByte(); mikrobus_logWrite( &rec, _LOG_BYTE ); } // TRANSMITER - TX each 2 sec /* for (tmp = 0; tmp < 9; tmp++) { rs232_2_writeByte( MESSAGE_DATA[tmp] ); mikrobus_logWrite( "MESSAGE SENT", _LOG_LINE ); } Delay_ms(2000); */ }
MikroElektronika Libraries used in the example: