Doc: page 1 of 8

Similar documents
Doc: page 1 of 6

Doc: page 1 of 6

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

3.3V regulator. JA H-bridge. Doc: page 1 of 7

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

Revision: 05/05/ E Main Suite D Pullman, WA (509) Voice and Fax. Various power connectors. 3.3V regulator

Pmod modules are powered by the host via the interface s power and ground pins.

Digilent I 2 C Pin Configurations

ARDUINO MEGA 2560 REV3 Code: A000067

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

ARDUINO MEGA ADK REV3 Code: A000069

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

Doc: page 1 of 15

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Arduino ADK Rev.3 Board A000069

keyestudio Keyestudio MEGA 2560 R3 Board

AVR- M16 development board Users Manual

ARDUINO UNO REV3 Code: A000066

chipkit Pmod Shield-Uno Reference Manual

Arduino Uno R3 INTRODUCTION

ARDUINO MICRO WITHOUT HEADERS Code: A000093

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

PB-MC-AVR28 28 Pin AVR Full Size Development Board

Breeze Board. Type A. User Manual.

ARDUINO LEONARDO WITH HEADERS Code: A000057

The Atmel ATmega328P Microcontroller

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

M32 Development Board

ATMega128 Rapid Robot Controller Board [RKI-1148]

PB-MC-AVR28 28 Pin AVR Full Size Development Board

ARDUINO LEONARDO ETH Code: A000022

AVR 40 Pin Rapid Robot controller board

ATmega48/88/168 Development Board

Overview. Functional Description. Calidad en nuestros productos. Tecnología a su servicio.

Prototyping Module Datasheet

The Atmel ATmega168A Microcontroller

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Programming Microcontroller Assembly and C

Sanguino TSB. Introduction: Features:

ARDUINO YÚN Code: A000008

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Doc: page 1 of 17

Breeze Board. Type B. User Manual.

BB-303 Manual Baseboard for TMCM-303

Arduino Diecimila Pinouts 697B B8D-A50A-61944C26074F

ARDUINO MEGA INTRODUCTION

Revision: May 11, E Main Suite D Pullman, WA (509) Voice and Fax LED. Doc: page 1 of 6

U4DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 19. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

AVR200 Single Board Computer

Wireless Sensor Networks. FireFly 2.2 Datasheet

General-Purpose Microcontroller Module 12a Hardware Reference Release 1.4a (October 11, 2017)

U6DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 18. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

MEXLE. International Educational Platform. International Educational Platform. for Informatics based on Embedded Systems

Bolt 18F2550 System Hardware Manual

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

ATmega128. Introduction

More than Compatibility

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

AVR-TLCD-128CAN development board Users Manual

chipkit Network Shield Reference Manual Overview Revised February 26, 2016 This manual applies to the chipkit Network Shield rev.

Robosoft Systems in association with JNCE presents. Swarm Robotics

EXL x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS. Via di Corticella, Bologna, Italy

AVR Prog-S. Programmer for AVR microcontrollers. User Manual

SiliconBlue. SiliconBlue Technologies iceman65 Board. Programmable Solutions for Consumer Handheld. 7-MAY-2008 (v1.

JED MICROPROCESSORS PTY LTD

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

ISA Host Controller 15a Hardware Reference Release 1.2 (October 16, 2017)

PCI Host Controller 14a Hardware Reference Release 1.2 (October 16, 2017)

Volume 1 Hardware Manual

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

AVR Peripheral Board. Campus Component Pvt. Ltd.

SimPLC. User Manual.

Part Number: PCB-STM32-F4B1 (unpopulated PCB with Discovery module sockets, no other parts) STM32-F4B1 (assembled board, not presently available)

ET-BASE AVR (ATmega8535)

AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features:

Cookie User Manual. For NuMicro Edition 1.0. Rev. 1.0 Release: forum.coocox.org.

U2DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 37. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

DBAT90USB162 Atmel. DBAT90USB162 Enhanced Development Board User s Manual

Growing Together Globally Serial Communication Design In Embedded System

Goal: We want to build an autonomous vehicle (robot)

Alessandra de Vitis. Arduino

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Amarjeet Singh. January 30, 2012

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Charon 2M. Ethernut embedded ethernet module with 128 kb SRAM. Main Features

EZ-Bv4 Datasheet v0.7

ARDUINO M0 PRO Code: A000111

Microprocessors And Microcontrollers (Practical)

Hardware Manual. Crumb128. Rapid Prototyping Module with the Atmega128 AVR Microcontroller

APPLICATION NOTE. Atmel ATA6612/ATA6613/ATA6614 Development Board ATA6612/ATA6613/ATA6614. Features

Figure 1-1 ISPAVRU1 application

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

ARDUINO YÚN MINI Code: A000108

USB-4303 Specifications

Transcription:

Minicon Reference Manual Revision: February 9, 2009 Note: This document applies to REV C of the board. 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The Minicon board is a useful tool for embedded control and robotics projects for both students and hobbyists. The Minicon s versatile design and programmable embedded microcontroller allows you to control different external devices and program the board for multiple uses. The board has many I/O connectors, power supply options, and supports a number of programming tools including ATMEL AVR STUDIO 4, and WinAVR. The Minicon has a number of connections for peripheral devices. Digilent peripheral modules (Pmods ) include H-bridges, analog-to-digital and digital-to-analog converters, a speaker, switches, buttons, LEDs, RS232 converters, screw terminals, BNC connectors, servo motors, and more. Features include: ATmega168 microcontroller five 6-pin connectors for Digilent Pmod peripheral module boards four LEDs four mode select jumpers ESD protection for all I/O pins an on-board voltage regulator multiple, flexible power supply jumper options in-system programming support for the Digilent parallel JTAG cable or the Digilent USB JTAG/SPI cable. Various power connectors 16K Flash (Internal) 512 EEPROM (Internal) JA 3.3V regulator 1k SRAM (Internal) 4 Three 6-pin PMOD connectors Figure 1 Minicon Board 4 LEDs ATMega168 TQ32 Minicon JB JC J1 SPI/ ISP Reset button Internal Oscillator UART, SPI, &TWI ports 4 4 4 4 4 J2 TWI RS232 J4 TWI Chain Figure 2 Block Diagram Doc: 502-091 page 1 of 8

Features of the ATmega168 include: master/slave serial peripheral interface (SPI) programmable serial USART interface Atmel two wire serial interface (TWI) eight channel, 10-bit ADC two 8-bit timer/counters one 16-bit timer/counter 16KB program flash 512 byte EEPROM 1KB internal SRAM analog comparator. For more information on the ATmega168 microcontroller, refer to the data sheet available at www.atmel.com. Functional Description The Minicon is designed for embedded control and robotic applications, as well as microprocessor experimentation. Embedded firmware, suitable for many applications, can be programmed into the Minicon s ATmega168 microcontroller. The Minicon has a number of I/O connection options, and is specially designed to work with the Digilent line of peripheral modules (Pmods), which provide various input and output functions. For more information, see. Programming the Minicon is accomplished using the Digilent AVR programmer (AVRP) application and a Digilent programming cable (use either the Digilent parallel JTAG cable or the Digilent USB JTAG/SPI cable). The programming cable is attached to the SPI connector, J1. Jumper JP10 is used to select between programming mode and user mode. Place the shorting block on JP10 in the RST position for in-system-programming and in the SS position for user mode. Connector J1 provides access to the master/slave SPI. SPI is a high-speed synchronous serial interface used by many serial peripheral devices, like A/D and D/A converters. The SPI interface is used both for in-system-programming the ATmega168, and for a user accessible SPI port. The Digilent PmodAD1 and PmodDA1 modules use the SPI interface. Connector J1 and the SPI interface are also used for in-system programming of the ATmega168 microcontroller. Connectors J2 and J4 provide access to the Atmel TWI. The TWI is a medium speed (200-400 Kbps) serial bus that allows up to 128 devices to connect. Connector J4 is the TWI daisy-chain connector for connecting the Minicon into a TWI bus. The ATmega168 microcontroller provides a USART that can be used for asynchronous or synchronous serial communications. However, the MiniCon doesn t provide for a crystal oscillator, and the internal RC oscillator isn t accurate enough for reliable asynchronous communications. It is sometimes possible to tune the oscillator using the calibration register to allow asynchronous communications to work. The Minicon features a flexible power supply routing system with a number of options for powering the Minicon and any peripheral modules connected to it. Four mode-select input jumpers and four LEDs are provided for application firmware. page 2 of 8

6-pin Pmod Headers The Minicon has five 6-pin header connectors for connecting to generalpurpose, off-board digital I/O, or to specific ATmega168 features like analog-to-digital converters or pulse width modulators. Each 6-pin connector provides four signals, power, and ground. These connectors are specifically designed to work with the Digilent Pmod line of peripheral boards, but can be used to connect to any off-board I/O devices. See Table 1 for more information on connecting peripheral modules and other devices to the Minicon. Table 1 shows the connectors with their designed base function and a map to the ATmega168 I/O ports. All I/O port pins can be used for general-purpose digital I/Os. Power Supply Connectors The Minicon is rated for external power ranging from 3.6 to 9 volts DC. Using voltage outside this range could damage the Minicon and connected devices. The Minicon can be powered from a power supply connected to one of three external power connectors, or it can be powered through any of the board s 6-pin Pmod headers. The three external power supply connectors are J6, J7, and J8. Connector J6 is a 5.5mm x 2.1mm coaxial barrel connector. The AC power adapter, available from Digilent, is attached to this connector. This is useful for desktop development and testing where use of batteries is cost prohibitive. This connector is wired so that the center pin provides the positive voltage and the outer shell is grounded. Connector J7 is a two-pin screw terminal. This connector can be used with laboratory bench supplies, or for attachment to battery packs. Connector J8 is a two-pin male header that provides an alternate connection to battery packs or other power sources. Digilent has available either two or three cell battery packs that can be attached directly to this connector. Power supply connectors J6, J7, and J8 are connected in parallel. A power source should be connected to only one of these three connectors at a time. Warning: Use the proper polarity when connecting a power source to J7 or J8. A reversed connection will damage the board. The proper polarity is silkscreened on the board near each connector. The Minicon provides an on-board voltage regulator that produces the 3.3V operating voltage for the board. The VU power bus provides the input to the voltage regulator, and the VCC power bus is the regulated output. Jumper JP9 is used to route external power through the on-board regulator or to bypass the regulator. The power supply connectors, J6, J7, and J8 are connected in parallel to the center pin, VE, on JP9. If the shorting block is placed in the VU position, the supplied voltage is routed through the voltage regulator and regulated to 3.3V to power the VCC bus. If the shorting block is placed in the VCC position, the supplied voltage is routed around the on-board regulator and powers the VCC bus directly. In this case, the supplied voltage must be externally page 3 of 8

regulated to within the safe limits for the Minicon board itself and any connected peripheral boards. The components on the Minicon will work with any regulated voltage between 2.7V and 5.5V. This allows direct connection of either two-cell alkaline, or three-cell alkaline, NiCd, or NiMh, or four-cell NiCd or NiMh battery packs. Pmod connector depending on how the associated three-pin power routing header is jumpered. However, it is very important to ensure that only one active power source is supplied to the board. For information on how to set the jumper blocks for VU and VCC, see Table 2. Power Supply Monitor Circuit Warning: If the shorting block on JP9 is in the VCC position, connection of a power source with a voltage greater than 5.5V will damage the board. Each 6-pin Pmod connector provides four I/O signals, a power connection and a ground connection. A 3-pin jumper block associated with each connector is used to connect the power pin to either the VU bus or the VCC bus. Each 6-pin header can be jumpered to provide either regulated or unregulated power to peripheral modules. There are labels on the Minicon near the jumper pins. Place the shorting block in the VCC position for regulated power, or in the VU position for unregulated power supply. Connectors JA, JB, and JC each have a separate voltage bus selection jumper block (JP2, JP3, and JP4, respectively). The SPI connector (J1), the RS232/TWI connector (J2), and auxiliary power connector (J3), all share voltage bus selection jumper JP1. Auxiliary power connector J3 is provided as an alternative source for powering off-board peripherials. Although the Minicon normally provides power to the Pmod connectors, power can be supplied to the Minicon from a Pmod connector. In this case, either the VU bus or the VCC bus will be powered from the The Minicon s microcontroller measures the power supply voltage on the VU power supply bus using the provided power supply monitor circuit. This is useful when powering the board from batteries as it allows the firmware running on the microcontroller to monitor the battery charge state. The power supply monitor circuit is a voltage divider connected to analog input ADC7. The voltage divider divides the VU bus voltage by four, allowing monitoring of voltages within the full range of the power supply. Device Programming The Minicon has one in-system programming connector, J1. The Digilent parallel JTAG cable or the Digilent USB JTAG/SPI cable can be used. When connecting the programming cables, ensure that the VCC and GND pin labels on the cable match the VCC and GND pins on the Minicon. Programming can be accomplished using the Digilent AVRP application, available by free download from the Digilent web site. It is also possible to configure the AVRDUDE programmer in the WinAVR release for insystem programming using the Digilent parallel JTAG cable. See the page 4 of 8

documentation for these applications for more information on board programming. programmable using the Digilent programming cable. Connector J1 is used both for in-system programming and for user access to the SPI controller. The jumper block JP10 is used to select between the two functions. The shorting block is placed in the RST position for in-system programming, and in the SS position for user access to the SPI port. AVR Clock Fuse Settings AVR microcontrollers use control bits called fuses to set basic operating parameters for the device. The SPI controller uses the clock source set by the fuses for its clock. If the clock source fuses are set to select a clock source that doesn t exist on the board, the SPI controller won t work and it will no longer be possible to program the microcontroller via the insystem programming protocol. The Minicon can only use of the internal RC oscillator as the clock source. If the external oscillator, or one of the crystal/resonator clock sources is selected, it may be possible to recover the board by applying a suitable clock signal to pin 1 of connector JP5. Pin 1 is the end closer to resistor R29. There is an applications note on the Digilent web site illustrating this technique for the Cerebot board. In addition, the maximum SPI clock frequency is the selected clock frequency divided by four. If the 128KHz internal oscillator is selected as the clock source, the SPI clock would need to be set to a frequence of 32KHz or less. The Digilent programming cables do no support frequencies that low, so if the 128KHz internal oscillator is selected for the clock source, the board will no longer be Two Wire Serial Interface The Atmel TWI interface is a medium speed (400 Kbps), synchronous, serial, communications bus. The TWI interface supports master or slave operation with up to 128 devices on the bus. Each device is given a unique address, and the protocol has the ability to address packets to a specific device or to broadcast packets to all devices on the bus. For detailed information on configuring and using the two wire interface, see the ATmega168 data sheet at www.atmel.com. The Minicon has two ways to connect to a TWI bus. The TWI signals, SCL and SDA, are available on 6-pin connector J2, or on the TWI daisy chain connector J4. Connector J4 has two positions for connecting to the TWI signals. By using two-wire cables (available separately from Digilent), a daisy chain of Minicons or other TWI-capable boards can be created. The TWI bus is an open-collector bus. Devices on the bus actively drive the signals low. When no device is driving the lines low, pull-up resistors achieve the high state on the TWI lines. A single device on the TWI bus must provide the pull-up resistors. The Minicon board has pull-up resistors that can be enabled or disabled via shorting blocks on the P1 and P2 positions on J4. The pull-ups are enabled by installing shorting blocks on P1 and P2, and are disabled by removing the shorting blocks. Both pull-ups should be enabled or disabled together. Only one device on the bus should have the pull-ups enabled. page 5 of 8

On-Board User I/O The Minicon provides four on-board LEDs for user output, and four jumper blocks for user input. The LEDs are connected to I/O Port D, bits 4-7 (PD4-PD7). These pins are shared with the four I/O signals of Pmod connector JA. An LED is turned on by writing the pin to logic 1 and turned off by writing the pin to logic 0. In addition to the four LEDs, there are four jumper blocks, JP5-JP8, for user input. These are useful for providing mode select inputs to firmware running on the microcontroller. Jumper blocks JP5 and JP6 are connected to I/O Port B, pins 6 and 7 (PB6 and PB7). When the shorting block is installed the pin will read as logic 0; when the shorting block is removed the pin will read as logic 1. Jumper blocks JP7 and JP8 are connected through a voltage divider to analog input ADC6. If no shorting block is installed on either jumper, a voltage close to 0 will be read on the analog input. With a shorting block on JP7, a voltage close to 1.1 volts will be read, and with a shorting block on JP8, a voltage close to 2.2 volts will be read. If shorting blocks are installed on both JP7 and JP8, the voltage read will be about 2.2 volts. page 6 of 8

Table 1: 6-pin PMOD headers and SPI connection Pin Description: All Pmod connector pins can be used for general purpose I/Os. The following descriptions are for use with specific Digilent Pmod modules: Minicon Pmod header pins to ATmega168 ports/bit Pin Function Port/bit JA General purpose I/Os and on board LEDs 1 PCINT20/XCK/ PD4 T0 2 PCINT21/OC0B/ PD5 T1 3 PCINT22/OC0A PD6 /AIN0 4 PCINT23/AIN1 PD7 JB H-bridge connection This connector is for use with an H-bridge module. Pins 1 and 2 are the direction and enable signals for the H-bridge. Pins 3 and 4 are for encoder feedback. 1 INT0/PCINT18 PD2 2 PCINT1/OC1A PB1 3 PCINT0/CLKO/I PB0 PC1 4 PCINT19/OC2B/ PD3 INT1 JC J1 J2 Analog input This connector provides inputs to the analog to digital converter of the ATmega168. SPI interface and in-system-programming The SPI interface is accessed on J1 when the shorting block is in the SS position on JP10. Connector J1 is used for in-systemprogramming when the shorting block on JP10 is in the RST position. Serial port communications and interrupts The USART serial port and the ATMEL TWI interface can be accessed on J2. 1 ADC0/PCINT8 PC0 2 ADC1/PCINT9 PC1 3 ADC2/PCINT10 PC2 4 ADC3/PCINT11 PC3 1 PCINT2/SS/OC1 PB2 B 2 PCINT3/OC2A/ PB3 MOSI 3 PCINT4/MISO PB4 4 SCK/PCINT5 PB5 1 ADC5/SCL/PCI PC5 NT13 2 ADC4/SDA/PCI PC4 NT12 3 RXD/PCINT16 PD0 4 TXD/PCINT17 PD1 page 7 of 8

Table 2: Jumper Block Settings Jumper Function JP1-4 6-pin Pmod headers Any of the five 6-pin Pmod headers can use either regulated or unregulated power. To use regulated power place the jumper block over the center pin and the pin marked VCC. To use unregulated power, place the jumper block over the center pin and the pin marked VU. SPI connector J1 and RS232 connector J2 share jumper block JP1. JP5-6 JP7-8 User input jumpers JP5 is connected to port B, pin 6. JP6 is connected to port B, pin 7. User input jumpers These jumpers are connected through a voltage divider to analog input ADC6. JP9 Power supply selection With a shorting block in the VU position, external power is routed through the on-board voltage regulator. With a shorting block in the VCC position, external power bypasses the on-board voltage regulator. page 8 of 8