TOP Contributors

  1. MIKROE (2649 codes)
  2. Alcides Ramos (350 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 (136497 times)
  2. FAT32 Library (69708 times)
  3. Network Ethernet Library (55813 times)
  4. USB Device Library (46153 times)
  5. Network WiFi Library (41791 times)
  6. FT800 Library (40974 times)
  7. GSM click (28918 times)
  8. PID Library (26379 times)
  9. mikroSDK (26265 times)
  10. microSD click (25290 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: 4881 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

IrDA 2 click

0

IrDA2 click features the TFDU4101 infrared transceiver module as well as MCP2120 infrared encoder/decoder from Microchip connected with the 7.3728 MHz external crystal. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target board via UART interface and the following mikroBUS™ pins: AN, RST, CS.

[Learn More]

LightRanger 5 click

0

LightRanger 5 Click is a compact add-on board that contains a ranging sensor with multi-target detection. This board features the TMF8801, a dToF (direct time of flight) optical distance sensor achieving up to 2500mm target detection distance from company AMS-TAOS.

[Learn More]

Thermo J click

5

Thermo J click is a temperature measurement click board™, which uses a thermocouple type-J probe, connected to a PPC-SMP-J onboard connector. The active part of the Thermo J click is MCP9600 by Microchip - a thermocouple EMF to temperature converter, with 1.5°C of maximum accuracy.

[Learn More]