FLEX Multibus Daughter Board

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
(FAQ)
(FAQ)
 
(6 intermediate revisions not shown)
Line 19: Line 19:
= FAQ =
= FAQ =
-
* Could you please explain how to create a project based on the Microchip UDP (or TCP/IP) stack?
+
* '''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.
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.
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.
+
In RT-DRUID/Eclipse, create a project using the template 'pic30/FLEX Multibus board/UDP demo'.  
-
[http://erika.tuxfamily.org/download/UDPproject.zip UDP project files]
+
This is the link to the example folder in the repository:
 +
[http://svn.tuxfamily.org/viewvc.cgi/erika_erikae/repos/ee/trunk/ee/examples/pic30/pic30_MultibusBoard_udp_demo/ UDP demo]
Description of the files:
Description of the files:
-
"HardwareProfile.h" contains the HW configuration macros for the Multibus board.
+
:"HardwareProfile.h" contains the HW configuration macros for the Multibus board.
-
"TCPIPConfig.h" contains the IP address used by the net protocols.
+
:"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.
+
:"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.  
+
:"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.
The image below shows how to set the jumpers and the Ethernet module on the daughter board.
-
[[image:multibus_eth.PNG]]
 
-
* Could you please explain how to use RS232 module with the FLEX Multibus daugther board?
+
:[[image:multibus_eth.PNG|300px]]
 +
 
 +
:
 +
:
 +
* '''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
image.
image.
-
[[image:rs232_multibus.PNG]]
+
:[[image:rs232_multibus.PNG|300px]]
 +
 
 +
:
 +
:
 +
* '''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.
 +
 
 +
:[[image:can_multibus.PNG|300px]]
 +
 
 +
:
 +
:

Latest revision as of 08:19, 26 April 2012

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 a project using the template 'pic30/FLEX Multibus board/UDP demo'.

This is the link to the example folder in the repository: UDP demo

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