mcp2003b 2.1.0.0
|
MCP2003B Click is a compact add-on board with a physical interface to automotive and industrial LIN systems compliant with the LIN Bus Specification Revision 2.2, SAE J2602, and ISO 17987. This board features the MCP2003B, a LIN transceiver from Microchip. The LIN, which stands for a Local Interconnect Network, is used in conjunction with the CAN interface for communication between the components inside of vehicles. The MCP2003B is a bi-directional half-duplex LIN transceiver that supports baud rates up to 20Kbaud with a LIN-compatible output driver. According to the standard on which this LIN transceiver works, connecting up to 15 peripheral devices to a single controller device is possible.
We provide a library for the MCP2003B Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for MCP2003B Click driver.
mcp2003b_cfg_setup
Config Object Initialization function. mcp2003b_init
Initialization function. mcp2003b_generic_write
This function writes a desired number of data bytes by using UART serial interface. mcp2003b_generic_read
This function reads a desired number of data bytes by using UART serial interface. mcp2003b_set_cs_pin
This function sets the chip select (CS) pin logic state. This example demonstrates the use of an MCP2003B click board by showing the communication between the two click board configured as a receiver and transmitter.
The demo application is composed of two sections :
Initializes the driver and logger and displays the selected application mode.
Depending on the selected mode, it reads all the received data or sends the desired message every 3 seconds.
The click boards should be connected as follows: VBB->VBB, LBUS->LBUS, GND->GND.
The communication power supply voltage provided on VBB pin should be in range from 5.5V to 30V.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
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. UART terminal is available in all MikroElektronika compilers.