FLEX Multibus Daughter Board

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
Line 35: Line 35:
The image below shows how to set the jumpers and the Ethernet module on the daughter board.
The image below shows how to set the jumpers and the Ethernet module on the daughter board.
-
[[image:multibus_eth.PNG]]
+
[[image:multibus_eth.PNG|100px]]
 +
:
 +
:
* '''Could you please explain how to use RS232 module with the FLEX Multibus daugther board?'''
* '''Could you please explain how to use RS232 module with the FLEX Multibus daugther board?'''
You just have to mount the RS232 module on the socket and to set up two jumpers as shown in the following
You just have to mount the RS232 module on the socket and to set up two jumpers as shown in the following
Line 43: Line 45:
[[image:rs232_multibus.PNG]]
[[image:rs232_multibus.PNG]]
 +
:
 +
:
* '''Could you please explain how to set up the basic demo-project based on CAN bus?'''
* '''Could you please explain how to set up the basic demo-project based on CAN bus?'''
Line 59: Line 63:
[[image:can_multibus.PNG]]
[[image:can_multibus.PNG]]
 +
 +
:
 +
:

Revision as of 11:18, 27 October 2011

Description

The FLEX Multibus Board is a FLEX Daughter Board, targeted specifically for data communication. The Multibus Board simplifies the work with the communication peripherals integrated in the Microchip dsPIC (R) DSC. The board, which is fully modular, provides a set of modules that realize the hardware interface with the buses. The Multibus Base Daughter Board is piggybacked on FLEX Full/Light Base Board.

The following slots are available on the Multibus Board:

  • UART2 slot, for Serial TTL/RS232/RS485/RS422 module
  • UART1 slot, for Serial TTL/RS232/RS485 module
  • CAN1 slot, for CAN module
  • CAN2 slot, for CAN module
  • I2C slot (channel selectable), for I2C module
  • SPI slot (channel selectable), for SPI module
  • Ethernet slot, for 10Mbit Ethernet module

Modules are mounted only if needed. For example, if the application requires the Ethernet interface and the connection to the CAN bus, only the corresponding modules will be mounted on the Multibus Board, leaving the remaining pins free for other use.

FLEX Multibus Daughter Board product page


FAQ

  • Could you please explain how to create a project based on the Microchip UDP (or TCP/IP) stack?

If you use the Demo2 pack for motion control (Motion Daughter Board) you can create a project starting from Scicos. With the Multibus daughter board you can implement the Microchip TCP/IP stack in a project in this way.

In RT-DRUID/Eclipse, create an empty project. Then insert the following files in the project folder and compile.

UDP project files

Description of the files:

"HardwareProfile.h" contains the HW configuration macros for the Multibus board.
"TCPIPConfig.h" contains the IP address used by the net protocols.
"flex_udp.c" and "flex_udp.h" contain the functions you can use in your UDP application.
"code.c" and "conf.oil" are the application files.

The image below shows how to set the jumpers and the Ethernet module on the daughter board. Multibus eth.PNG

  • Could you please explain how to use RS232 module with the FLEX Multibus daugther board?

You just have to mount the RS232 module on the socket and to set up two jumpers as shown in the following image.

Rs232 multibus.PNG

  • Could you please explain how to set up the basic demo-project based on CAN bus?

Prerequisites HW: Multibus and FLEX boards with CAN modules. Prerequisites SW: RT-DRUID and Erika Enterprise v1.6.0.

The Erika demo-project based on CAN bus can be found in the RT-Druid C/C++ templates.

Description of the files:

"conf.oil" is the main configuration file. You can uncomment the line you need, to configure the device as a sender or receiver.
"conf_sender.oil" is the CAN sender configuration file.
"conf_receiver.oil" is the CAN receiver configuration file.
"code_sender.c" and "code_receiver.c" are the application source files

The image below shows how to connect the boards and set the jumpers on the CAN modules.

Can multibus.PNG

Personal tools