TOP Contributors

  1. MIKROE (2650 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 (136552 times)
  2. FAT32 Library (69755 times)
  3. Network Ethernet Library (55852 times)
  4. USB Device Library (46193 times)
  5. Network WiFi Library (41813 times)
  6. FT800 Library (41008 times)
  7. GSM click (28930 times)
  8. PID Library (26386 times)
  9. mikroSDK (26296 times)
  10. microSD click (25304 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

IrDA 3 click

Rating:

5

Author: MIKROE

Last Updated: 2018-02-14

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Optical

Downloaded: 5503 times

Not followed.

License: MIT license  

IrDA 3 click is an intelligent IR transceiver device that can both send and receive UART commands via the IR interface.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "IrDA 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "IrDA 3 click" changes.

Do you want to report abuse regarding "IrDA 3 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

IrDA 3 Click

IrDA 3 Click

Native view of the IrDA 3 Click board.

View full image
IrDA 3 Click

IrDA 3 Click

Front and back view of the IrDA 3 Click baord.

View full image

Library description

The library contains functions that perform UART reading, writing and UART rx buffer checking. 


Key functions:

void irda3_writeByte(uint8_t input); - Function writes (sends) one byte to the UART RX buffer

uint8_t irda3_readByte(); - Function reads (receives) one byte from the UART RX buffer

uint8_t irda3_byteReady(); - Function checks state of the RX buffer (new data is placed in)

void irda3_reset(); - Function resets the  and sets back in normal operating mode

Example description

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes click driver.
  • Application Task - Checks if new data byte has been received in the RX buffer (ready for reading), and if ready than reads one byte from the RX buffer. In second case application task writes message data via UART and IR interface.
void applicationTask()
{
   uint8_t tmp;
   uint8_t rdyFlag;

// RECEIVER - UART polling 

#ifdef __RX__
   rdyFlag = irda3_byteReady();
   if (1 == rdyFlag)
   {
       tmp = irda3_readByte();
       mikrobus_logWrite( &tmp, _LOG_BYTE );
   }
#endif

// TRANSMITER - TX each 2 sec

#ifdef __TX__  
   for (tmp = 0; tmp < 9; tmp++)
   {
       irda3_writeByte( MESSAGE_DATA[tmp] );
       mikrobus_logWrite( "MESSAGE SENT", _LOG_LINE );
   }
   Delay_ms(2000);
#endif
}

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 clickor 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.

 

ALSO FROM THIS AUTHOR

Pressure 11 click

5

Pressure 11 Click is a digital barometer on a Click board. Pressure 11 is equipped with the LPS33HW, an absolute piezoresistive pressure sensor, manufactured using a proprietary technology.

[Learn More]

SRAM click

0

SRAM Click presents additional 1Mbit SRAM memory that can be added to device.

[Learn More]

Manometer click

2

Manometer click is an add-on board with a piezoresistive silicon pressure sensor. The onboard Honeywell HSCMAND060PA3A3 module has an industry-leading, extremely high accuracy of ±0.25%FSS BFSL. An absolute pressure range from 0 to 60 PSI makes it suitable for a variety applications.

[Learn More]