MOD-IO development board
INTRODUCTION
MOD-IO is a small but powerful development board who let you control 4 optoisolated input and 4 relay outputs - with this features is possible to turn on and off almost any electronic device at home. The board has UEXT_FEMALE connector which allows you to communicate with a PC and UEXT_MALE connector where you can connect other Olimex board with UEXT.
BOARD FEATURES
– Microcontroller: Atmega16L – AVRISP connector – JTAG connector – EXT connector – UEXT_MALE – UEXT_FEMALE – Clock circuit – User button– Reset circuit and button
– Power Jack
– Power-on led
– Nine status leds
– Four optocoupler isolated inputs
– Four Relays
– PCB: FR-4, 1.5 mm (0,062"), solder mask, silkscreen component print
– Dimensions: 100x80 mm (3.94x3.15")
ELECTROSTATIC WARNING
The MOD-IO board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.
Hardware: One of Olimex programmers/debuggers – AVR-PG1, AVR-PG2,
AVR-ISP500, AVR-ISP500-TINY, AVR-ISP500-ISO, AVR-JTAG, AVR-USB-JTAG, or other compatible programming/debugging tool.
Software: AVR C Compiler
PROCESSOR FEATURES
MOD-IO use 8-bit AVR Microcontroller with 16K Bytes In-System Programmable Flash, with these features:
– High-performance, Low-power AVR® 8-bit Microcontroller
– Advanced RISC Architecture
– 131 Powerful Instructions – Most Single-clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
– On-chip 2-cycle Multiplier
– High Endurance Non-volatile Memory segments
– 16K Bytes of In-System Self-programmable Flash program memory
– 512 Bytes EEPROM
– 1K Byte Internal SRAM
– Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
– Data retention: 20 years at 85°C/100 years at 25°C
– Optional Boot Code Section with Independent Lock Bits
In-System Programming by On-chip Boot Program True Read-While-Write Operation
– Programming Lock for Software Security
– JTAG (IEEE std. 1149.1 Compliant) Interface
– Boundary-scan Capabilities According to the JTAG Standard
– Extensive On-chip Debug Support
– Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG
Interface
2 Differential Channels with Programmable Gain at 1x, 10x, or 200x
– Byte-oriented Two-wire Serial Interface
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator
– Special Microcontroller Features
– Power-on Reset and Programmable Brown-out Detection
– Internal Calibrated RC Oscillator
– External and Internal Interrupt Sources
– Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down,
Standby and Extended Standby
– I/O and Packages
– 32 Programmable I/O Lines
– Operating Voltages
– 2.7 - 5.5V
– Speed Grades
– 0 - 8 MHz
– Power Consumption @ 1 MHz, 3V, and 25⋅C
– Active: 1.1 mA
– Idle Mode: 0.35 mA
SCHEMATIC
B H 1 0 S T 1 1 0 7 A (6 x3 .8 x 2 .5 m m ) 4 n 7 1 u F /5 0 v 1 0 0 n 2 2 0 u F /3 5 V 220u/10V/tant 1 0 n 1 0 0 n 1 0 0 n 47uF/6.3V 1 0 0 n N A 3 3 p 3 3 p 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 3 3 n F 3 3 n F 3 3 n F 3 3 n F 1 N 5 8 1 9 (s m d ) 1 N 4 1 4 8 /S M D 1 N 4 1 4 8 /S M D 1 N 4 1 4 8 /S M D 1 N 4 1 4 8 /S M D W F 6 S D B 1 0 4 (S M D ) 1 0 0 u H /S W 6 8 d d d d g re e n g re e n g re e n g re e n + 5 V +5V +5V +5V +5V Y D J -1 1 3 4 re d 8M H z/ 20 pF 3 2 7 6 8 H z /6 p F 1 5 0 k 1 1 0 k 8 .2 K 2 K 3 9 0 R /1 % 2 4 0 R /1 % 1 K 1 0 0 R 1 0 K 3 3 0 R 4 .7 K 10 0 R N A 4 .7 K N A 4 .7 K 4 .7 K N A NA N A NA 4 .7 K 4 .7 K 4 .7 K 4 .7 K 1 K 1 0 K 1 K 1 K 10 K 1 K 1 K 10 K 1 K 1 K 10 K 1 K R A S -0 5 -1 5 R A S -0 5 -1 5 R A S -0 5 -1 5 R A S -0 5 -1 5 T 1 1 0 7 A (6 x3 .8 x 2 .5 m m ) ye llo w B C 8 1 7 B C 8 1 7 B C 8 1 7 B C 8 1 7 A T M E G A 1 6 L M C P 1 3 0 T H 1 1 A 8 1 7 S M D H 1 1 A 8 1 7 S M D H 1 1 A 8 1 7 S M D H 1 1 A 8 1 7 S M D ID C 1 0 S /P C B B H 1 0 S 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3 .3 V 3.3V B D 9 0 0 1 F S O -8 L M 1 1 1 7 IM P X -A D J 8 -3 0 V D C A N [1 .. 4 ] O [1 .. 4 ] O[1..4] O [1 .. 4 ] # S S # S S # S S A N 1 A N 1 A N 2 A N 2 A N 3 A N 3 A N 4 A N 4 B U T B U T I1 I1 I1 I2 I2 I2 I3 I3 I3 I4 I4 I4 L E D M IS O M IS O M IS O M O S I M O S I M O S I O 1 O 1 O 2 O 2 O 3 O 3 O 4 O 4 R S T R S T R S T R X D R X D R X D S C K S C K S C K S C L S C L S C L S D A S D A S D A T C K T C K T D I T D I T D O T D O T M S T M S T X D T X D T X D 1 2 3 4 5 6 7 8 9 1 0 A V R IS P B U T C 1 C 2 C 3 C 4 C 5 C 6 C 7 C 8 C 9 C 1 0 C1 1 C 1 2 C 1 3 C 1 4 C 1 5 C 1 6 C 1 7 C 1 8 C 1 9 C 2 0 C 2 1 C 2 2 C 2 3 D 1 D 6 D 7 D 8 D 9 1 2 3 4 5 6 E X T G 1 G N D 1 2 3 4 5 6 7 8 9 1 0 J T A G L 1 1 2 3 4 O 1 O 2 O 3 O 4 O U T 1 -1 O U T 1 -2 O U T 1 -3 O U T 2 -1 O U T 2 -2 O U T 2 -3 O U T 3 -1 O U T 3 -2 O U T 3 -3 O U T 4 -1 O U T 4 -2 O U T 4 -3 P W R _ J P W R _ L E D Q 1 Q 2 R 1 R 2 R 3 R 4 R 5 R 6 R 7 R 8 R 9 R 1 0 R 1 1 R 1 2 R1 3 R 1 4 R 1 5 R 1 6 R 1 7 R 1 8 R 2 0 R 2 2 R 2 4 R 2 6 R 2 8 R 3 0 R 3 2 R 3 4 R 3 5 R3 6 R 3 7 R 3 8 R3 9 R 4 0 R 4 1 R4 2 R 4 3 R 4 4 R4 5 R 4 6 R E L 1 R E L 1 R E L 2 R E L 2 R E L 3 R E L 3 R E L 4 R E L 4 R S T S T A T T 1 T 2 T 3 T 4 (A D C 0) P A 0 3 7 (A D C 1) P A 1 36 (A D C 2) P A 2 35 (A D C 3) P A 3 34 (A D C 4) P A 4 33 (A D C 5) P A 5 32 (A D C 6 )P A 6 31 (A D C 7) P A 7 30 (A IN 0/ IN T 2) P B 2 42 (A IN 1) P B 3 4 3 (I C P )P D 6 15 (I N T 0) P D 2 11 (I N T 1 )P D 3 12 (M IS O )P B 6 2 (M O S I) P B 5 1 (O C 1A )P D 5 14 (O C 1B )P D 4 1 3 (O C 2) P D 7 1 6 (R X D )P D 0 9 (S C K )P B 7 3 (S S )P B 4 44 (T 0) P B 0 40 (T 1) P B 1 41 (T O S C 1) P C 6 25 (T O S C 2) P C 7 26 (T X D )P D 1 10 A G N D 28 A R E F 2 9 A V C C 27 G N D 6 G N D 1 1 8 G N D 2 39 P C 0 (S C L) 19 P C 1( S D A ) 2 0 P C 2( T C K ) 21 P C 3 (T M S ) 22 P C 4( T D O ) 23 P C 5( T D I) 24 R E S E T 4 V C C 5 V C C 1 17 V C C 2 3 8 X T A L1 8 X T A L2 7 3 1 2 G N D V C C R E S E T U 2 1 2 4 3 U 3 1 2 4 3 U 4 1 2 4 3 U 5 1 2 4 3 U 6 1 2 3 4 5 6 7 8 9 10 U E X T _ F E M A L E 1 2 3 4 5 6 7 8 9 10 U E X T _ M A L E E N 5 F B 3 G N D 7 IN V 4 N .C . 2 R T 6 S W 1 V IN 8 V R 1 (5 V ) A D J /G N D IN O U T V R 2 (3 .3 V )M
O
D
-I
O
R e v. A C O P Y R IG H T (C ), 2 0 0 9 h tt p :/ /w w w .o lim e x. c o m /d e v + + + G ND 0 R F m a x = 5 0 k H zBOARD LAYOUT
POWER SUPPLY CIRCUIT
MOD-IO is typically power supplied with 8-30V DC.
Power consumption when all relays are working is about 310 mA.
CLOCK CIRCUIT
Crystal Quartz 8 MHz connected to Atmega16l pin 7 (XTAL2) and pin 8 (XTAL1). Crystal Quartz 32.768kHz connected to Atmega16L pin 25 ((TOSC1)PC6) and pin 26 ((TOSC2)PC7).
RESET CIRCUIT
MOD-IO reset circuit includes Reset scheme MCP130T (U2), AVRISP connector pin 5, JTAG connector pin 6, Atmega16L pin 4 (RESET), R9 (100Ohm), R10 (10k), C10 (100nF) and RST button.
CONNECTOR DESCRIPTIONS
AVRISP
Pin # Signal Name
1 MOSI 2 3.3V 3 NC 4 GND 5 RST 6 GND 7 SCK 8 GND 9 MISO 10 GND
JTAG
Pin # Signal Name
1 TCK 2 GND 3 TDO 4 3.3V 5 TMS 6 RST 7 3.3V 8 NC 9 TDI 10 GND
EXT
Pin # Signal Name
1 PD7
2 PD6
3 PD5
1 NC 2 GND 3 RXD 4 TXD 5 SCL 6 SDA 7 MISO 8 MOSI 9 SCK 10 #SS
UEXT_FEMALE
Pin # Signal Name
1 NC 2 GND 3 RXD 4 TXD 5 SCL 6 SDA 7 MISO 8 MOSI 9 SCK 10 #SS
IN1, IN2 IN3, IN4
Pin # Signal
1
-2 +
OUT4 connected to (ADC0)PA0 – signal name O1
AIN-1
Pin # Signal Name Connected to
1 3.3V VCC
2 AN1 (ADC7)PA7
3 AN2 (ADC6)PA6
AIN-2
Pin # Signal Name Connected to
1 AN3 (ADC5)PA5
2 AN4 (ADC4)PA4
3 AGND Analog GND
PWR_J
Pin # Signal Name
1 Power Input
2 GND
JUMPER DESCRIPTION
There are no jumpers on this board.
INPUT/OUTPUT
User button with name BUT – connected to Atmega16L pin 11 ((INT0)PD2).
Reset button with name RST – connected to Atmega16L pin 4 (RESET).
StatusLED (yellow) with name STAT – connected via R11 (330 Ohm) to Atmega16l pin 43 ((AIN1)PB3).
Status LED (red) with name LED1 – visualize input (IN1) state.
Status LED (red) with name LED2 – visualize input (IN2) state.
Status LED (red) with name LED3 – visualize input (IN3) state.
Status LED (red) with name LED4 – visualize input (IN4) state.
Status LED (green) with name O1 – visualize relay (REL1) state.
Status LED (green) with name O2 – visualize relay (REL2) state.
Status LED (green) with name O3 – visualize relay (REL3) state.
Status LED (green) with name O4 – visualize relay (REL4) state.
Power-on LED (red) with name PWR_LED – shows that +3.3V voltage is applied to the board.
AVAILABLE DEMO SOFTWARE
ORDER CODE
MOD-IO assembled and tested. How to order?
You can order to us directly or by any of our distributors.
Check our web www.olimex.com/dev for more info.
Revision history:
Disclaimer
© 2009 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.
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.
Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.
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 only 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.