Home

MOD-IO2 extension board USER`S MANUAL

image

Contents

1. Ls pem e Ls pem eo em o Te pes io Co foros pe 5 5 PWR Jack GPIOO GPIO1 The DC barrel jack has 2 0mm inner pin and 6 3mm hole More information about the exact component might be found here https www olimex com wiki PWRJACK For the European customers we also stock and sell basic power supply adapters compatible with the power jack 3 o 9 Page 18 of 28 OLIMEXO 2015 MOD IO2 user s manual 5 6 Jumper description Please note that almost all except PROG of the jumpers on the board are SMD type If you feel insecure in your soldering cutting technique it is better not to try adjusting SMD jumpers Also if you feel incapable of removing the PTH jumper with hands better use tweezers 5 6 1 PROG When closed this jumper allows addressing a single MOD IO2 the one with the closed jumper over all others stacked to it since initially all connected MOD IO2 boards have the same address After you have closed PROG on one of the MOD IO2s you can communicate with that one via the UEXT using the commands found in the commands list that can be found on the product s web page Default 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 jumpers are closed soldered 5 6 3 UEXT FPWR E If closed provides 3 3V at the female UEXT connector be careful since if y
2. B 18 06 12 Initial release Page 26 of 28 OLIMEXO 2015 MOD IO2 user s manual 8 3 Useful web links and purchase codes The web page you can visit for more info on your device is https www olimex com mod io2 html ORDER CODES MOD IO2 the version of the board discussed in this document MOD IO the bigger version with optocouplers and 8 30VDC power range option PIC KIT3 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 order You can purchase directly from our online shop or from any of our distributors Note that usually it is faster and cheaper to purchase Olimex products from our distributors List of confirmed Olimex LTD distributors and resellers https www olimex com Distributors Check https www olimex com for more info Page 27 of 28 OLIMEXO 2015 MOD IO2 user s manual 8 4 Product support For product support hardware information and error reports mail to support olimex com All document or hardware feedback is welcome Note that we are primarily a hardware company and our software support is limited Please consider reading the paragraph below about the warranty of Olimex products All goods are checked before they are sent out In the unlikely event that goods are faulty they must be returned to OLIMEX at the address listed on your
3. MOD IO2 extension board USER S MANUAL Revision D May 2015 Designed by OLIMEX Ltd 2012 lead free All boards produced by Olimex LTD are ROHS compliant OLIMEXO 2015 MOD IO2 user s manual DISCLAIMER 2015 Olimex Ltd Olimex logo and combinations thereof are registered trademarks of Olimex Ltd Other product names may be trademarks of others and the rights belong to their respective owners The information in this document is provided in connection with Olimex products No license express or implied or otherwise to any intellectual property right is granted by this document or in connection with the sale of Olimex products This work is licensed under the Creative Commons Attribution ShareAlike 3 0 Unported License To view a copy of this license visit http www creativecommons org licenses by sa 3 0 This hardware design by Olimex LTD is licensed under a Creative Commons Attribution ShareAlike 3 0 Unported License The software is released under GPL It is possible that the pictures in this manual differ from the latest revision of the board The product described in this document is subject to continuous development and improvements All particulars of the product and its use contained in this document are given by OLIMEX in good faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended on
4. sets the board to use its hardware I2C 0 typically either 0 1 or 2 A1 A is used to read the analog input 1 is the analog input that is read you can use 1 2 3 or 5 since not all AN signals are available Expected result the Voltage of the AN would be printed If there is nothing connected it can be anything like ADC1 2 311V Page 9 of 28 OLIMEXO 2015 MOD IO2 user s manual Changing the I2C address if you use more than one MOD IO2 available since MOD IO2 s firmware revision 3 02 modio2tool B 0 x 15 where BO sets the board to use its hardware 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 address and you would need to specify it with A OxXX if you wish to use the modio2tools in future For more information refer to the help returned by modio2tools or to modio2tools s source code Page 10 of 28 OLIMEXO 2015 MOD IO2 user s manual 2 4 2 I2C Tools for controlling MOD IO2 under Linux Instead of the custom program mentioned in 2 4 1 you might use the popular I2CTools here http www lm sensors org wiki I2CTools MOD IO2 is compatible with I2CTools since the release of its firmware 3 In that case the commands are the most popular ones from the i
5. Complementary Waveform Generator CWG Module Numerically Controlled 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 Source Sink current I O 2x 8 bit Timers TMRO TMR2 1x 16 bit Timer TMR1 Extended Watchdog Timer WDT Enhanced Power On Off Reset Low Power Brown Out Reset LPBOR Programmable Brown Out Reset BOR In Circuit Serial Programming ICSP In Circuit Debug using a Debug Header PIC16LF1503 1 8V 3 6V PIC16F1503 2 3V 5 5V For comprehensive information on the microcontroller visit the Microchip s web page for a datasheet At the moment of writing the microcontroller datasheet can be found at the following link http ww1 microchip com downloads en DeviceDoc 41607A pdf Page 15 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 5 CONNECTORS AND PINOUT S Introduction to the chapter In this chapter are presented the connectors that can be found on the board all together with their pinout and notes about them Jumpers functions are described Notes and info on specific peripherals are presented Notes regarding the interfaces are given 5 1 ICSP The board can be programmed and debugged from the 6 pin ICSP Below is the table of the JTAG This interface can be used with the Olimex s PIC KIT3 debuggers pa GPIOO ICSPDAT BE EN GPIOO ICSPCLK
6. IO vs MOD IO2 MOD IO2 is a smaller input output extension module compared to MOD IO both in terms of size and in terms of functionality however in a lot of situations MOD IO2 might provide the better choice Designs which need optocouplers should consider MOD IO In a lot of the other cases MOD IO2 might be the better choice since it is possible to stack multiple MOD IO2 s over each other MOD IO has a better power supply with the option to be supplied in the range of 8 30VDC Page 5 of 28 OLIMEXO 2015 MOD IO2 user s manual 1 3 Target market and purpose of the board MOD IO2 is an extension development board which can interface other Olimex boards via UEXT connector it adds add RELAYs and GPIOs Multiple MOD IO2s are stackable and addressable The firmware allows you to interact with the board using simple commands and yet if you wish you can modify the firmware for your needs If you work with any of our development boards with UEXT connector and you need more GPIOs and RELAY outputs you can add these by connecting MOD IO2 to your development board This board allows easy interfacing to 2 relays and 7 GPIOs MOD IO2 is stackable and addressable these boards 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 The board is a very good addition to most of the Olimex boards if you need analog GPI
7. coo 5 GEOS M jq p a s 6 REL1 GPIO4 CLKIN 3 s RO C2OUTICLC2NT ONGIB 5 GPIOS PWMT GPIOS PWM2 CBE E RCS PAMI CLCT CWG1A GPIO amp PWMT i oe BH10S E IN ail PIC16F1503 SL TB3 3 5MM o 3 3V 3 3V E pe ia tco eee qe l E n Relays m Il m R6 UEXTFPWR E R7 b A 14 l 4 7k T Open 4 7K l D2 green 0603 D7 green 0603 i a I 1N4148 SMD LED REL1 1N4148 SMD LED REL2 s 3 I x E cr Re OOUTI2 cr Reg OOU 4 SOLE VEXI FEMALE SDAE REL R10 REL2 1 n 1 cose YF close 47k M ooun R13 M Oor i 3 I E i 4 7k Io NA 10k SCL i RAS 1P 15 RAS 1P 15 I l CRGA CLIN PROG l B QOUTI 1 Qourz2 E Fog i RE L pP REL2 n HNixX2 IDC10S PCB E Vl DTCHAYKA Vll D1C114YKA odgd R9 IE GEEUC IMI E A I 1k I E WHEN OZ MO La lb sav 3 3V ICSP li But D 4 pa 10k ICSP y Power Supply HN 3 3V 1 ot R5 33R A VRI 3 3V ower u I 4 MCLR 1 12VDC D4 LM1117IMPX ADJ GPIOO ICSPDAT TE DE 4 JIN OUT e e I ot E Io GPIO1 ICSPCLK N PWR LED 4d PWR J R1 amp 4 red 0603 WE6S co cus ae 240R 1 ge q o re Jd l 220uF 35V l z R3 l YDJ 1136 100nF R2 E 390R 1 8 d 4k i MOD IO2 Rev B Lu 5 l 8 p 9 OLIMEX LTD BULGARIA ale ale ale I l I http www olimex com dev Page 23 of 28 OLIMEXO 2015 MOD IO
8. skip the y n confirmation prompt 2 2C number usually 0 1 or 2 0x21 board address 0x21 should be used for writing 0x43 read relay operations as seen in the firmware README txt Expected results 0x00 meaning both relays are off 0x03 should be interpreted as binary 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 Ox10 the first analog IO The big thing here is that to read you actually have to write that you would read Read is a combination of i2cset and i2cget Expected results on the terminal you would receive random and changing number or 0x00 or 0x08 or OxFF whether you have the GPIO floating or set to OV or set to 3 3V Setting all analog IOs at high level i2cset y 2 0x21 0x01 Ox01 where 0x21 the I2C address of the MOD IO2 0x01 according to the README txt is SET TRIS is used to define port directions 0x01 the high level for low level use 0x00 Page 12 of 28 OLIMEXO 2015 MOD IO2 user s manual Reading all analog IOs i2cset y 2 0x21 0x01 i2cget y 2 0x21 Detailed explanation of the preloaded software may be found in the demo package available at our web page Changing I2C device address if you use more than one MOD IO2 available since MOD IO2 s firmware revision 3 02 i2cset 2 0x21 0OxHH where HH is new address in hexadecimal format Note that PROG jumper m
9. 2 user s manual 7 2 Physical dimensions Note that all dimensions are in mils ao cd CJ C3 lt N o 9 00 O0 000 000 1930mil 2050mil 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 mm Note that the above measures does not include the PCB Page 24 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 8 REVISION HISTORY AND SUPPORT 8 Introduction to the chapter In this chapter you will find the current and the previous version of the document you are reading Also the web page for your device is listed Be sure to check it after a purchase for the latest available updates and examples 8 1 Document revision Changes Modified page 2 Initial creation All 27 08 12 Fixed several leftovers from B the template which were d referencing wrong processors 16 10 12 and boards Updated links Updated Disclaimer to fit the 2 open source nature of the board Added few examples and C i 7 firmware version 3 explanation EM Updated Product support General formatting i improvements All Updated the manual to reflect D latest firmware revision 3 02 7 8 9 10 11 27 05 15 Added information about the new Linux tool modio2tools Page 25 of 28 OLIMEXO 2015 MOD IO2 user s manual 8 2 Board s revision Revision date Revision notes
10. 2c tools i2cdetect i2cdump i2cget i2cset More information might be found here http www lm sensors org wiki i2cToolsDocumentation Use the above commands and the information about the firmware to send i2cset and receive i2cget different data The information about the firmware is located in 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 zip Some examples for setting reading MOD IO2 s peripherals in Linux using i2c tools Turning on the relays i2cset y 2 0x21 0x40 0x03 where i2cset command for sending data y to skip the y n confirmation prompt 2 board s hardware I2C number typically 0 or 1 or 2 0x21 board address 0x21 should be used for writing 0x40 relay operations as seen in the firmware README txt 0x03 should be interpreted as binary 011 turns on both relays 0x02 would turn only second relay 0x01 only the first 0x00 would turn both off 0x03 again would turn them off also Expected result a specific sound would occur and relay lights would turn on Page 11 of 28 OLIMEXO 2015 MOD IO2 user s manual Reading the status of the relays available since MOD IO2 s firmware revision 3 02 i2cset y 2 0x21 0x43 and then the read command i2cget y 2 0x21 where i2cset command for sending data y to
11. 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 visit https www olimex com Products Modules UEXT 5 2 1 Female connector The female connector is used either to connect to a board directly without using the female female cable or to connect the module to another MOD IO2 to create a stackable module that can be addressed via the I2C Remember to change the I2C address of each board when using multiple boards By default the I2C address is 0x21 Female UEXT Not connected Not connected Not connected Page 16 of 28 OLIMEXO 2015 MOD IO2 user s manual 5 2 2 Male connector The male connector is used with the ribbon cable in the package to connect to another male UEXT or to connected to another MOD IO2 Male UEXT i fep 3 Not connected 8 Not connected 4 Not connected 9 Not connected 5 3 Relay output connectors There are two relays in MOD IO Their output signals are the standard Normal Closed NC Normal Open NO and the Common COM oa c reat closer 3 cor comen L7 po normal open 73 M ee Page 17 of 28 OLIMEXO 2015 MOD IO2 user s manual 5 4 GPIO connectors The GPIO connectors can be used to implement PWM I2C SPI etc Note that the names of each pin are also printed at the bottom of the board pw pem 1 spem je i Da emn jm
12. Os and relays 1 4 Organization Each section in this document covers a separate topic organized as follow Chapter 1 is an overview of the board usage and features Chapter 2 provides a guide for quickly setting up the board Chapter 3 contains the general board diagram and layout Chapter 4 describes the component that is the heart of the board the PIC16F1503 Chapter 5 covers the connector pinout peripherals and jumper description Chapter 6 shows the memory map Chapter 7 provides the schematics Chapter 8 contains the revision history useful links and support information Page 6 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 2 SETTING UP THE MOD IO2 BOARD 2 Introduction to the chapter This section helps you set up the MOD IO2 development board for the first time Please consider first the electrostatic warning to avoid damaging the board then discover the hardware and software required to operate the board The procedure to power up the board is given and a description of the default board behavior is detailed 2 1 Electrostatic warning MOD IO2 is shipped in a protective anti static package The board must not be exposed to high electrostatic potentials A grounding strap or similar protective device should be worn when handling the board Avoid touching the component pins or any other metallic element 2 2 Requirements In order to set up the MOD IO2 optimally the following items are require
13. come with the item This includes any In Circuit Serial Programming cables anti static packing boxes etc With your return enclose your PO Also include a brief letter of explanation of why the merchandise is being returned and state your request for either a refund or an exchange Include the authorization number on this letter and on the outside of the shipping box Please note It is your responsibility to ensure that returned goods reach us Please use a reliable form of shipping If we do not receive your package we will not be held liable Shipping and handling charges are not refundable We are not responsible for any shipping charges of merchandise being returned to us or returning working items to you The full text might be found at https www olimex com wiki GTC Warranty for future reference Page 28 of 28
14. d Any OLIMEX board that has an UEXT connector 12V source of power If you wish to reprogram the board or modify the firmware you will also need PIC ICSP compatible programmer not that the connector for the ICSP programing is the standard 0 1 one We have a cheap compatible PIC16F1503 programmer based on Microchip s PIC KIT3 Some of the suggested items can be purchased by Olimex for instance PIC KIT3 Olimex programmer capable of programming PIC16F1503 SY0612E power supply adapter 12V 0 5A for European customers 2 3 Powering the board The board is powered by the power jack You should provide 12V DC For the European customers we sell an affordable power supply adapter 12V 0 5A SY0612E If you power the board correctly PWR LED would turn on Page 7 of 28 OLIMEXO 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 c
15. ly to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product This evaluation board kit is intended for use for engineering development demonstration or evaluation purposes only and is not considered by OLIMEX to be a finished end product fit for general consumer use Persons handling the product must have electronics training and observe good engineering practice standards As such the goods being provided are not intended to be complete in terms of required design marketing and or manufacturing related protective considerations including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards Olimex currently deals with a variety of customers for products and therefore our arrangement with the user is not exclusive Olimex assumes no liability for applications assistance customer product design software performance or infringement of patents or services described herein THERE IS NO WARRANTY FOR THE DESIGN MATERIALS AND THE COMPONENTS USED TO CREATE MOD IO2 THEY ARE CONSIDERED SUITABLE ONLY FOR MOD IO2 Page 2 of 28 OLIMEXO 2015 MOD IO2 user s manual Table of Contents CHAPTER 2 SETTING UP THE MOD IO2 BOARD e ee eene enun nnus 7 2 Introd
16. nt FEVISION ccccccccccscccssssssscssssssssssscccccccccccccscscccsccccesccsscccsesscccssesesessssssssssssssscoses 25 8 2 Board s ESL REOR TETTREREREREREEREREDSREERERRRCORERORERREERERUREEEEST 26 Page 4 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 1 OVERVIEW 1 Introduction to the chapter Thank you for choosing the MOD IO2 single board computer from Olimex This document provides a user s guide for the Olimex MOD IO2 board As an overview this chapter gives the scope of this document and lists the board s features The differences between the members of the MOD IO2 and MOD IO boards are mentioned The document s organization is then detailed The MOD IO2 development board enables code development of applications running on the microcontroller PIC16F1503 manufactured by Microchip 1 1 Features PIC16F1503 microcontroller ICSP 6 pin connector for in circuit programming with PIC ICD2 POCKET and PIC KIT3 or other compatible programmer debugger 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 screw terminals RELAY output status LEDs Both male and female UEXT connectors Four mounting holes 3 3mm 0 13 UEXT female female cable included FR 4 1 5 mm 0 062 soldermask white silkscreen component print dimensions 61x52mm 2 4x2 05 999999999 1 2 MOD
17. order invoice OLIMEX will not accept goods that have clearly been used more than the amount needed to evaluate their functionality If the goods are found to be in working condition and the lack of functionality is a result of lack of knowledge on the customers part no refund will be made but the goods will be returned to the user at their expense All returns must be authorized by an RMA Number Email support olimex com for authorization number before shipping back any merchandise Please include your name phone number and order number in your email request Returns for any unaffected development board programmer tools and cables permitted within 7 days from the date of receipt of merchandise After such time all sales are considered final Returns of incorrect 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 firmware changed Because of the nature of the products we deal with prototyping electronic tools we cannot allow returns of items that have been programmed powered up or otherwise changed post shipment from our warehouse All returned merchandise must be in its original mint and clean condition Returns on damaged scratched programmed burnt or otherwise played with merchandise will not be accepted All returns must include all the factory accessories which
18. ou close that jumper and also you close the male one on the next MOD IO2 line this might cause electrical burn to the board Default position is open unsoldered 5 6 4 UEXT MPWR E If closed provides 3 3V at the male UEXT connector be careful since if you close that jumper and also you close the female one on the next MOD IO2 line this might cause electrical burn to the board The default position is open unsoldered 5 7 Additional hardware components The components below are mounted on MOD IO2 but are not discussed above They are listed here for completeness Relay LEDs Power LED Page 19 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 6 BLOCK DIAGRAM AND 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 of higher quality 6 1 Processor block diagram FIGURE 1 1 PIC16 L F1503 BLOCK DIAGRAM Program Flash Memory CLKOUT Timing V Generation INTRC ern Oscillator Figure 2 1 Temp ADC Indicator PWM2 PWM3 PWM4 MSSP1 Note 1 See applicable chapters for more information on peripherals 2 See Table 1 1 for peripherals available on specific devices Page 20 of 28 OLIMEXO 2015 MOD IO2 user s manual 6 2 Physical memory map PC lt 14 0 gt CALL CALLW RETURN RETLW Interrupt RETFIE Stack Level 0 Stack Level 1 Stack Level 15 Rese
19. t Vector Interrupt Vector On chip Program lt Page 0 Memory Rollover to Page 0 Rollover to Page 0 Page 21 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 7 SCHEMATICS 7 Introduction to the chapter In this chapter are located the schematics describing logically 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 IO2 open source hardware They are located in HARDWARE section The EAGLE schematic is situated on the next page for quicker reference Page 22 of 28 OLIMEXO 2015 MOD IO2 user s manual B 3 3V i O om fav UEXTS FAQ ANOICIINSDACOUTIICSPDAT HSE ICSEDAT 2 GND RA1 ANTA REFHCTIND C2INO ICSPCLK A 1 GPIOO l RAZ ANZICTOUTIDACOUTZ TOCK INT PANS CLC ONGAFLT 4 MCLR TB3 3 5MM UEXT_MPWR_E B RA3 CLCIINOIVPRITIGISS MCLR 3 GPIOS CON2 n E RA4IANS NCOI SDOICLKOUTITIG 3 GPIO CKN 4 GPIO1 ICSPCLK 3 OP UEXT MALE pi RASICLKINT1CKVNCO1CLK CLC1IN1 GPIO2 AOUT age AI e RCD ANA C2INHCLC2 SCL SCK SPIOS GPIO3 scl 4 amp DA li 9 5 6 ee RC1 ANS C1IN1 C2IN1 PWM4 NCO1 1 SDA SD _ 3 REL2 TB3 3 5MM 7 8 E RCIANTICING Cons Rmo
20. 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 OLIMEXO 2015 MOD IO2 user s manual Switching on both relays modio2tool B 0 s 3 where BO sets the board to use its hardware I2C 0 typically either 0 1 or 2 s3 s is used to turn on the relays 3 specifies to turn on both relays use 1 or 2 for only the first or only the second relay Expected result a specific sound would occur and relay LEDs would turn on Switching off both relays modio2tool B 0 c 3 where BO sets the board to use its hardware I2C 0 typically either 0 1 or 2 C3 c is used to switch off the state relays 3 specifies to turn off both relays use 1 or 2 for only the first or only the second 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 BO sets the board to use its hardware I2C 0 typically either 0 1 or 2 r r js used to read the relays Expected result the state of the relays would be printed 0x03 means that both relays are on equivalent of the binary 0x011 Reading analog inputs modio2tool B 0 A 1 where BO
21. uction to the cliapter iiiiuuiiiiuec ee is cvs ec esee sa Ce esVx os be tate sae pale c sintii iaaii iieiaei 7 2 1 Electrostatic wap ue oer Lo RETE eU EUR OR ance Ui bi e EM sses niine RUE RUE PA QR PER ER UR OMNE 7 2 2 ReguireMeNtS sosina 0 2 0 0 00 0 900003 aaa Sous vauaibu talelaudiasbanededninasdtewanaaviasues 7 CHAPTER 3 MOD IO2 BOARD DESCRIPTION ssssssssssssssssssssssssssees 14 3 Introduction to the LS VELIM ccs ciacisalosd wiles eens Om 14 CHAPTER 5 CONNECTORS AND PINQODT e eee en een neenon nean noue 16 5 Introduction to the Chapter ccccsccssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssossess 16 SLICI cana a 16 5 2 VE XT i OU CS aiii aa 16 5 2 1 Female conie tt cn E a 16 522 Male Conecto e deese eeu dose ve veccssedssuatacscocuusenccsacsuesssscsusvess ae cea veces a ver eus os oes eod das ec v aaeei 17 Page 3 of 28 OLIMEXO 2015 MOD IO2 user s manual 6 2 Physical memory Tdpiouusdidecenss on illa e bnkri Uk REIN Do ERI RR ERAN cwn Vb UM Rc OP eua dO EP LR P Ua nii 21 7 Introduction to the chapt k cesoie osos sara od suada so Pasa Da saa asas asa pasaba supe eaae aa d sao e iare saei 22 CHAPTER 8 REVISION HISTORY AND SUPPORT ee eee ee 25 8 Introduction to the cliapter iiiuiiu uiii cvi esas vas cose sascsa saa eso PaVa se sa du Vasca Fass rH a aaa e ria 25 8 1 Docume
22. ust be closed to be able to change the address If you forget the number of the address you can use the modio2tool to find the address the command and parameter would be modio2tool l You can also reset the default address 0x21 with the command and parameter modio2tool X Page 13 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 3 MOD IO2 BOARD DESCRIPTION 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 the MOD IO2 board itself 3 1 Layout top view Out 2 Out 1 Relay 2 LED Relay 1 LED Relay 2 Relay 1 Jumper Prog Male UEXT w jj 4 rs 1 pes x w gt HMMIOLIMEX COM DEU A p4 UEXT SPHR PWO 1201 Female UEXT CE DET amic Set of jumpers Jumper UEXT mpwr e rad Power LED 7 GPIOs GND 3 3V Power jack Page 14 of 28 OLIMEXO 2015 MOD IO2 user s manual CHAPTER 4 THE PIC16F1503 MICROCONTROLLER 4 Introduction to the chapter In this chapter is located the information about the heart of MOD IO2 its PIC16 microcontroller The information below is a modified version of the datasheet provided by its manufacturers from Microchip 4 1 The PIC16F1503 features Enhanced Mid range Core with 49 Instruction 16 Stack Levels Flash Program Memory with self read write capability Internal 16MHz oscillator 4x Standalone PWM Modules
23. ustom 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 OxXX 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

Download Pdf Manuals

image

Related Search

Related Contents

取扱説明書  Dexford SC 200BT  Documento senza titolo  E5EN Temperature Controller User Manual - Innovative-IDM  User`s Instructions Guía de usuario  Solar intensity estimation in a geographical region  IB2F MODE D`EMPLOI - Primo  Brodit ProClip  User Manual  Reliance ou Achille et la tortue - Art-Cade  

Copyright © All rights reserved.
Failed to retrieve file