MIKROE-2821

NC 6 MOSI SDA 11 NC
Powersupply 3.3V 7 3.3V 5V 10 NC
Ground GND 8 GND GND 9 GND Ground
RS4853clickelectricalspecifications
Description Min Typ Max Unit
VoltageatanyterminaloftheRS485connectors 7±5 12 V
Differentialloadresistance 54 60Ω
Onboardsettingsandindicators
Label Name Default Description
PWR PowerLED‐PowerLEDindicatesthattheclickispoweredon
Softwaresupport
We provide a demo application for the RS485 3 click on our LibStock page, as well as a demo
application (example), developed using MikroElektronika compilers. The demo can run on all
the main MikroElektronika development boards.
Examples Description
The application is composed of two sections :
SystemInitialization‐InitializesGPIOpinsusedforbuttonpressdetection,andtwoUART
modules:firstoneusedforclickandsecondusedforlogging.
ApplicationTask‐(Codesnippet)ConstantlypollsthestateofGPIOpinusedforbuttonpress
detection.Wheneverthepressisdetected,apredefinedmessagewillbesentusingRS4853
click.Atthesametime,insidetheapplicationtask,theUARTisconstantlypolled,checkingfor
RS4853clickactivity.Whenever
newdataonclickisreceived,itwillbeloggedtoUARTmodule.
void applicationTask()
{
//SENDS DATA
if (Button( &GPIOA_IDR , 5, 100, 1 ))
{
for (i = 0; i <= 7; i++)
{
UART3_Write( SEND_DATA [ i ] );
}
UART1_Write_Text("Data sent");
}
//RECEIVE AND LOG DATA
if (UART3_Data_Ready())
{
tmp = UART3_Read();
UART1_Write(tmp);
}
}
The full application code and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in this example:
UART
Additional notes and information
Depending on the development board you are using, you may need USB UART click, USB
UART 2 click or RS232 click to connect to your PC, for development systems with no UART to
USB interface available on the board. The terminal available in all MikroElektronika compilers,
or any other terminal application of your choice, can be used to read the message.
https://www.mikroe.com/rs485 3click12517

MIKROE-2821

Mfr. #:
Manufacturer:
Mikroe
Description:
Interface Development Tools RS485 3 click
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet