MOD-IO development board
Users Manual

All boards produced by Olimex are ROHS compliant
Rev. A, November 2009

Copyright(c) 2009, OLIMEX Ltd, All rights reserved

Page 1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 mustnot be subject to high electrostatic potentials. General practice for working withstatic sensitive devices should be applied when working with this board.

BOARD USE REQUIREMENTS
Cables:

The cable you will need depends on the programmer/debugger youuse. If you use AVR-PG1, or AVR-JTAG, you will need RS232 cable, ifyou use AVR-PG2, you will need LPT cable, if you use AVR-USBJTAG, AVR-ISP500, AVR-ISP500-TINY, or AVR-ISP500-ISO, you willneed 1.8 meter A-B USB cable.

Page 2

Hardware:

Software:

One of Olimex programmers/debuggers – AVR-PG1, AVR-PG2,AVR-ISP500, AVR-ISP500-TINY, AVR-ISP500-ISO, AVR-JTAG, AVRUSB-JTAG, or other compatible programming/debugging tool.
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 MultiplierHigh 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 JTAGInterface

Peripheral Features–Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes–

One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, andCapture Mode–

Real Time Counter with Separate Oscillator–Four PWM Channels–

8-channel, 10-bit ADC
8 Single-ended Channels
7 Differential Channels in TQFP Package Only

Page 3

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––

Operating Voltages––

2.7 - 5.5V

Speed Grades––

32 Programmable I/O Lines

0 - 8 MHzPower Consumption @ 1 MHz, 3V, and 25⋅C–

Active: 1.1 mA–

Idle Mode: 0.35 mA–

Power-down Mode: < 1 µA

Page 4BLOCK DIAGRAM

Page 5MEMORY MAP

Page 6

Page 7Page 8+-+-+-+-IN4-2

IN4-1

IN3-2

IN3-1

IN2-2

IN2-1

IN1-2

IN1-1

TB2/3.5mm

330R
D21N4148/SMD

red
LED13U5343434

H11A817SMD

21U3

H11A817SMD

21U4

H11A817SMD

21I4I3

I2

I1

4.7K

R344.7K

R32

4.7K

R30

4.7K

R28

I4I3

I2

I1

3.3V

12345613579100n

R11GND

Q2

330R

3.3V

T1107A(6x3.8x2.5mm)

BUT

100R
RXD
SCL
MISO
SCK

13579BH10S

24 TXD
6 SDA8 MOSI
10 #SS

100n

C15C1233p
C1333p13579NA

3.3V

100n

C1824 TXD
6 SDA
8 MOSI
10 #SS

IDC10S/PCB

C810K

R10U24.7K

R173.3V

4.7K

R183.3V

MCP130T

GND

VCC 21K
GND

3.3V

R8PWR_LED
red
C91 RESET

100n

C113.3V

UEXT_FEMALE

NA

R163.3V

100n 100n

C17100n

C14C16RXD
SCL
MISO
SCK

4.7K

O[1..4]ATMEGA16L

3918

GND1GND26GND

3817VCC1VCC25VCC

R15UEXT_MALE

I1BUT
TXD
RXD

(OC2)PD7(ICP)PD6(OC1A)PD5(OC1B)PD4(INT1)PD3(INT0)PD2(TXD)PD1(RXD)PD0

AVCC
2827

AGND

29AREF

3.3V

NA
BUT

161514131211109(TOSC2)PC7(TOSC1)PC6PC5(TDI)
PC4(TDO)
PC3(TMS)PC2(TCK)
PC1(SDA)
PC0(SCL)

Q1

RST

8MHz/20pF

87

XTAL2

XTAL14100n

T1107A(6x3.8x2.5mm)

RESET

C10100R

R9390R/1%

R6240R/1%

R7RST

R143.3V

2625242322212019

TDI
TDO
TMS
TCK
SDA
SCL(SCK)PB7(MISO)PB6(MOSI)PB5(SS)PB4(AIN1)PB3(AIN0/INT2)PB2(T1)PB1(T0)PB0

C7100n4.7K
R13TDI32768Hz/6pF
TCK
TDO
TMS

STAT
yellow
3.3V

3214443424140

SCKMISO
MOSI#SS
LED
I2I3
I42K

10n

C6R123.3V

EXT
WF6S

JTAG

C1924RST 68103.3V

BH10S

RST

3.3V

R33330R
D31N4148/SMD

red
LED24H11A817SMD

2U6NA

133nF

R26

AN413579AVRISP

8.2K

R4R5(ADC7)PA7(ADC6)PA6(ADC5)PA5(ADC4)PA4(ADC3)PA3(ADC2)PA2(ADC1)PA1(ADC0)PA0C53.3V

3R31330R
D41N4148/SMD

red
LED3red
LED4C2333nF

NA246810

3.3V

3031323334353637

AN1AN2AN3AN4O4O3O2
O10R

D11N5819(smd)
R3OUT

ADJ/GNDIN

VR2(3.3V)
LM1117IMPX-ADJ

R3910K

1K

R38

R4210K

1K

R41

O4

1K
R4510KR44

D6
1N4148/SMD

O3

D7
1N4148/SMD

O2MOD-IO
http://www.olimex.com/dev

CO PYRIGHT(C), 2009

Rev. A

R3610K

1K

R35

D81N4148/SMD

O1

D91N4148/SMD

green
O4

T1BC817

REL1RAS-05-15

green
O1

T2
BC817

REL2
RAS-05-15

green
O2

T3
BC817

REL3
RAS-05-15

green
O3

T4BC817

REL4RAS-05-15+5V

R29330R
D51N4148/SMD

R27100R

C22

R24

AN3

O[1..4]AN[1..4]

110k

R2+5V+5V

AIN-2-3

AIN-2-2

100R

33nF

NA

AN2100n

C3+

R23

C21

R2233nF

NA

AN1

7100uH/SW68

220u/10V/tant

AIN-2-1

100R

R21

C20

R20

Fmax=50kHz

GND

6

L1220uF/35V

C4+5V

AIN-1-3
TB2/3.5mm

100R

R19FB

3RT

11uF/50v

C247uF/6.3V

AIN-1-24n7N.C.

2SW

BD9001FSO-8

INV

4EN

5+

AIN-1-1150k
C1R1

VIN

VR1(5V)
8+3.3V

G1
DB104(SMD)+5V

YDJ-1134
8-30 VDC

PWR_J

R461K

R431K

R401K

R371K

REL1

REL2

REL3

REL4

OUT1-1

OUT1-2

OUT1-3OUT2-1OUT2-2OUT2-3OUT3-1OUT3-2OUT3-3OUT4-1

OUT4-2OUT4-3SCHEMATICO[1..4]

BOARD 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.

Page 9CONNECTOR DESCRIPTIONSAVRISP
Pin #Signal Name

1MOSI

23.3V

3NC4GND5RST6GND7SCK8GND

9MISO

10GND

Pin #

Signal Name

1TCK

2GND

3TDO

43.3V

5TMS

6RST

73.3V

8NC

9TDI

10GND

Pin #

Signal Name

1PD72PD63PD54PD453.3V

6GND

Pin #

Signal Name

JTAG

EXT

UEXT_MALE

Page 101NC

2GND

3RXD

4TXD

5SCL

6SDA

7MISO

8MOSI

9SCK

10#SS

Pin #

Signal Name

1NC

2GND

3RXD

4TXD

5SCL

6SDA

7MISO

8MOSI

9SCK

10#SSPin #Signal

1-2+UEXT_FEMALE

IN1, IN2 IN3, IN4IN1 connected to (T0)PB0 – signal I4
IN2 connected to (T1)PB1 – signal I3
IN2 connected to (AIN0/INT2)PB2 – signal I2
IN4 connected to (INT1)PD3 – signal I1

OUT1, OUT2, OUT3, OUT4
OUT1 connected to (ADC3)PA3 – signal name O4
OUT2 connected to (ADC2)PA2 – signal name O3
OUT3 connected to (ADC1)PA1 – signal name O2

Page 11

OUT4 connected to (ADC0)PA0 – signal name O1

AIN-1
Pin # Signal Name Connected to13.3VVCC2AN1(ADC7)PA73AN2(ADC6)PA6AIN-2Pin # Signal Name Connected to1

AN3(ADC5)PA52

AN4(ADC4)PA43

AGND

Analog GND

PWR_J
Pin #Signal Name

1Power Input

2GND

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).
Status LED (yellow) with name STAT – connected via R11 (330 Ohm) to Atmega16lpin 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 tothe board.

Page 12

MECHANICAL DIMENSIONS

Page 13

AVAILABLE DEMO SOFTWARE–MOD_IO UART_Commands

Page 14

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:

REV. A- create November 2009

Page 15

Disclaimer© 2009 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registeredtrademarks 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 inconnection with the sale of Olimex products.
Neither the whole nor any part of the information contained in or the product described in thisdocument 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 ofmerchantability 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.

Page 16