TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136971 times)
  2. FAT32 Library (70085 times)
  3. Network Ethernet Library (56022 times)
  4. USB Device Library (46343 times)
  5. Network WiFi Library (41959 times)
  6. FT800 Library (41270 times)
  7. GSM click (29051 times)
  8. mikroSDK (26485 times)
  9. PID Library (26447 times)
  10. microSD click (25411 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

RS232 2 click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-13

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: RS232

Downloaded: 4934 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.

No Abuse Reported

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".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

RS232 2 Click

RS232 2 Click

Native view of the RS232 2 click board.

View full image
RS232 2 Click

RS232 2 Click

Front and back view of the RS232 2 click board.

View full image

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 :

  • System Initialization - Intializes RST, CS, PWM pin as OUTPUT and INT, AN pin as INPUT and UART module Application Initialization - Driver initialization
  • Application Task - (code snippet) - Checks if new data byte has been received in RX buffer (ready for reading),
    and if ready than reads one byte from the RX buffer. In second case aplication task writes message data via UART.
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:

  • UART

ALSO FROM THIS AUTHOR

SPIRIT click

0

SPIRIT click carries the SP1ML 868MHz ultra low-power RF module. The board is designed to use 3.3V power supply and 3.3V or 5V I/O voltage levels. It communicates with the target MCU over UART interface, with additional functionality provided by the following pins on the mikroBUS™ line: PWM, RST, CS.

[Learn More]

NanoBeacon click

0

NanoBeacon Click is a compact add-on board that provides a powerful and efficient Bluetooth beacon solution. This board features the IN100, an ultra-low power Bluetooth 5.3 Beacon SoC from InPlay, that sets a new standard in beacon technology. Its ultra-low power consumption, enhanced privacy mode, and three beacon modes offer seamless compatibility with no Bluetooth programming required - plug and play. Its compact design houses two types of built-in memory (4Kb OTP and 4KB SRAM), UART and I2C interfaces, and a hardware security engine.

[Learn More]

mikromedia Plus for STM32F7

0

Start building your applications with intuitive, user-friendly menus and dashboards using powerful STM32 ARM Cortex-M7 microcontroller. This board provides a compact high-quality multimedia development platform for STM32F746ZG device.

[Learn More]