Oumex MOD-IO2 Скачать руководство пользователя страница 8

OLIMEX© 2015

MOD-IO2 user's manual

2.4 Firmware description and basic usage under Linux

There is firmware loaded on the PIC of the board that allows easier use of MOD-IO2 via I2C 
protocol. The firmware of MOD-IO2 has gone through several iterations. The latest firmware 
revision is revision 3.02.

To use the firmware with not-Linux enabled host boards please refer to the README.txt in the 
archive that contains the firmware sources.

Firmware revisions 1, 2, and 3 are compatible. These firmware revisions define different MOD-IO2 
board addresses and different command set. Firmware revisions 3, 3.1, and 3.02 (3.xx) are 
compatible.

Please note that the custom firmware does NOT support all of the hardware capabilities of MOD-
IO2. In some cases you might need to to adapt the firmware to use the hardware of MOD-IO2 to its 
full potential!

2.4.1 Custom software tool for controlling MOD-IO2 under Linux

To make the things even simpler we have written a software tool for controlling MOD-IO2 under 
Linux. You might find it here:

https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/UEXT
%20MODULES/MOD-IO2/linux-access-tool

This software tool requires a Linux-enabled board. The tool works with MOD-IO2 units loaded 
with firmware revision 3 or newer. For full compatibility with the custom software tool, your MOD-
IO2 board needs to use firmware revision 3.02 or newer. To use the tool simply place file 
“modio2tool” on your board. Navigate to the folder where you placed it and type "./modio2tool -h" 
to get help on all of the available commands.

Most of the commands require the hardware I2C number as defined in your Linux distribution with 
parameter -B X, where X is the number of the I2C interface. Note that by default the software is set 
for use with hardware I2C interface #2 and board ID 0x21 – if your setup has different you would 
need to specify every time by using -B X (X is the hardware I2C number) and -A 0xXX(XX is the 
I2C address of the module).

Some examples for the usage of modio2tool and MOD-IO2 in Linux:

- Bringing up the help menu:

./modio2tool -h

,where

./modio2tool – executes the binary
-h

– parameter used to request the help information

Expected result: the format of commands would be shown and a list of commands would be printed.

Page 8 of 28

Содержание MOD-IO2

Страница 1: ...MOD IO2 extension board USER S MANUAL Revision D May 2015 Designed by OLIMEX Ltd 2012 All boards produced by Olimex LTD are ROHS compliant...

Страница 2: ...ies of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arising f...

Страница 3: ...rolling MOD IO2 under Linux 11 CHAPTER 3 MOD IO2 BOARD DESCRIPTION 14 3 Introduction to the chapter 14 3 1 Layout top view 14 CHAPTER 4 THE PIC16F1503 MICROCONTROLLER 15 4 Introduction to the chapter...

Страница 4: ...7 Introduction to the chapter 22 7 1 Eagle schematic 22 7 2 Physical dimensions 24 CHAPTER 8 REVISION HISTORY AND SUPPORT 25 8 Introduction to the chapter 25 8 1 Document revision 25 8 2 Board s revis...

Страница 5: ...bugger 9 pin terminal screw connector for 7 GPIOs 3 3V and GND PWR jack for 12VDC 7 GPIOs which could implement different functionality as PWM SPI I2C etc 2 relay outputs with 15A 250VAC contacts with...

Страница 6: ...oards can be plugged together and you can add as many inputs and outputs as you want 2 4 6 8 etc MOD IO2 has PIC16F1503 microcontroller and the firmware is open source and available for modification T...

Страница 7: ...onent pins or any other metallic element 2 2 Requirements In order to set up the MOD IO2 optimally the following items are required Any OLIMEX board that has an UEXT connector 12V source of power If y...

Страница 8: ...e https github com OLIMEX OLINUXINO tree master SOFTWARE UEXT 20MODULES MOD IO2 linux access tool This software tool requires a Linux enabled board The tool works with MOD IO2 units loaded with firmwa...

Страница 9: ...d relay Expected result a specific sound would occur and the relay LEDs would turn off Reading the status of the relays available since MOD IO2 s firmware revision 3 02 modio2tool B 0 r where B 0 sets...

Страница 10: ...re I2C 0 typically either 0 1 or 2 x 15 x is used to change the I2C address of the board 15 is the desired number it is different from the default 0x21 Expected result the board would have new I2C add...

Страница 11: ...a README txt file in the archive of the firmware the archive containing the latest firmware 3 02 might be found here https www olimex com Products Modules IO MOD IO2 resources MOD IO2_firmware_v_3_02...

Страница 12: ...011 e g both relays are on etc Reading analog inputs outputs i2cset y 2 0x21 0x10 and then the read command i2cget y 2 0x21 where 0x10 the first analog IO The big thing here is that to read you actual...

Страница 13: ...re than one MOD IO2 available since MOD IO2 s firmware revision 3 02 i2cset 2 0x21 0xHH where HH is new address in hexadecimal format Note that PROG jumper must be closed to be able to change the addr...

Страница 14: ...SCRIPTION 3 Introduction to the chapter Here you get acquainted with the main parts of the board Note the names used on the board differ from the names used to describe them For the actual names check...

Страница 15: ...Oscillator NCO Module 2x Configurable Logic Cell CLC Modules Integrated Temperature Indicator Module 8 Channel 10 bit ADC with Voltage Reference 5 bit Digital to Analog Converter DAC MI2C SPI 25mA So...

Страница 16: ...PDAT 2 3 3V 5 GPIO0_ICSPCLK 3 GND 6 Not connected 5 2 UEXT modules MOD IO2 board has two UEXT connectors male and female and can interface Olimex s UEXT boards For more information on UEXT please visi...

Страница 17: ...3V 6 SDA 2 GND 7 Not connected 3 Not connected 8 Not connected 4 Not connected 9 Not connected 5 SCL 10 Not connected 5 3 Relay output connectors There are two relays in MOD IO Their output signals a...

Страница 18: ...t 1 3 3V 2 GND 3 GPIO0 AN0 4 GPIO1 AN1 5 GPIO2 AN2 6 GPIO3 AN3 7 GPIO4 8 GPIO5 AN7 9 GPIO6 PWM 5 5 PWR Jack The DC barrel jack has 2 0mm inner pin and 6 3mm hole More information about the exact compo...

Страница 19: ...ault position is open 5 6 2 SDA_E SCL_E When you have more than one MOD IO2 connected you need to keep those two jumpers closed else the I2C line will be disconnected The default positions for both ju...

Страница 20: ...MEMORY 6 Introduction to the chapter Down this page you can find a memory map for this family of processors It is strongly recommended to refer to the original datasheet released by Microchip for one...

Страница 21: ...OLIMEX 2015 MOD IO2 user s manual 6 2 Physical memory map Page 21 of 28...

Страница 22: ...ly and physically MOD IO2 7 1 Eagle schematic MOD IO2 schematic is visible for reference here You can also find it on the web page for MOD IO2 at our site https www olimex com Products Modules IO MOD...

Страница 23: ...1 1 2 3 CON2 1 2 3 CON3 D2 D4 D7 GND 1 2 3 4 5 6 ICSP LED_REL1 LED_REL2 OUT1 1 OUT1 2 OUT1 3 OUT2 1 OUT2 2 OUT2 3 1 2 PROG PWR_J PWR_LED R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R13 REL1 REL1 REL2 REL2 1 2 SCL_...

Страница 24: ...l dimensions are in mils The three highest elements on the board in order from the tallest to the shortest are relay T1 0 600 15 25 mm over the pcb relay T2 0 600 15 25 mm ICSP connector 0 450 11 43 m...

Страница 25: ...evision Revision Changes Modified page A 27 08 12 Initial creation All B 16 10 12 Fixed several leftovers from the template which were referencing wrong processors and boards Updated links 6 10 20 C 2...

Страница 26: ...OLIMEX 2015 MOD IO2 user s manual 8 2 Board s revision Revision date Revision notes B 18 06 12 Initial release Page 26 of 28...

Страница 27: ...Olimex programmer capable of programming MOD IO2 SY0612E power supply adapter 12V 0 5A for MOD IO2 220V European compatibility The latest price list can be found at https www olimex com prices How to...

Страница 28: ...ordered items are allowed subject to a 10 restocking fee What is unaffected If you hooked it to power you affected it To be clear this includes items that have been soldered to or have had their firmw...

Страница 29: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Olimex Ltd MOD IO2...

Отзывы: