Supplement for module D041 incl. ATMega8 Prozessor

Similar documents
Supplement for module D061 incl. ATMega128 Prozessor

Supplement (hardware manual) for module. D062x. with Atmel Mikrocontroller: ATMega128 or ATMega2561 or AT90CAN128. V

Manual for module D071

Supplement (hardware manual) for module. D072x. with Atmel Mikrocontroller: ATMega128 or ATMega2561 or AT90CAN128

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

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

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

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

BB-303 Manual Baseboard for TMCM-303

M32 Development Board

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

ARDUINO YÚN Code: A000008

Universal RFID Socket board with RS232 / USB interface

Galep-Adapter DIL-40 => ISP-ASYNC/SYNC Article-No.:

keyestudio Keyestudio MEGA 2560 R3 Board

ARDUINO MEGA 2560 REV3 Code: A000067

ARDUINO MICRO WITHOUT HEADERS Code: A000093

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

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

Datasheet for PAS12 Serial Adaptor rev 1.50

Getting Started with STK200 Dragon

The Atmel ATmega328P Microcontroller

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

1/Build a Mintronics: MintDuino

AVR Peripheral Board. Campus Component Pvt. Ltd.

LVX Control Unit. Features:

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

The Atmel ATmega168A Microcontroller

AVR-M Rev 5 ASSEMBLY

DIY KIT 123. ATMEL 89xxxx PROGRAMMER

ARDUINO UNO REV3 Code: A000066

XC164CS Prototype Board

ARDUINO LEONARDO WITH HEADERS Code: A000057

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

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

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

TMC428 Evaluation Kit V2.0 Manual English

Cytron USB to UART Converter UC00A

RS-232 Driver Module

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

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

Hardware Manual RM CANview

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

SBC65EC. Ethernet enabled Single Board Computer

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

Volume 1 Hardware Manual

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

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

CM-700 Technical Information

ET-BASE AVR ATmega64/128

ARDUINO MEGA ADK REV3 Code: A000069

APP-II PIC Development Kit by AWC

DIY KIT 121. ATMEL 89Cx051 PROGRAMMER

Building and using JasperMIDI

LCMM024: DRV8825 Stepper Motor Driver Carrier,

Wireless Sensor Networks. FireFly 2.2 Datasheet

Storage Card Interface Kit

Universal RFID Socket board with USB interface

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

ARDUINO MINI 05 Code: A000087

Easy Kit Board Manual

Shack Clock kit PCB Revision: QCU Rev 1 or QCU Rev 3

PK2200 Series. Features. C-Programmable Controller. Specifications Board Size Enclosure Size Operating Temp.

MAVRIC-IIB Mega AVR Integrated Controller II Revision B Technical Manual

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

OpenSprinkler v2.2u Build Instructions

EvB 4.3 v4 User s Guide

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

ARDUINO LEONARDO ETH Code: A000022

MP6500 Stepper Motor Driver, Digital Current Control

BLE232: Manual Copyright 2014 taskit GmbH

Bolt 18F2550 System Hardware Manual

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

Zippy AVR Programmer. Zippy Programmer Features. Lomae Pty Ltd PO BOX 1297 Baulkham Hills, NSW,1755 ACN

Storage Card Interface Kit

CAUTION: TTL Only, Do Not Use ± 12 V RS-232

Easy-TCP/IP 1.6. I²C / TWI interface. Making Things Easy MCS ELECTRONICS. Version. Easy-TCP/IP I²C / TWI interface

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

JDY-40 wireless serial port module

AVR Development Board

USER'S MANUAL PICEBS2. Hes-so//Valais / ISI / sap - version 1.0 PICEBS2-1/10

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

Figure 1-1 ISPAVRU1 application

DEV-1 HamStack Development Board

ARDUINO YÚN MINI Code: A000108

Sanguino TSB. Introduction: Features:

Supplement (hardware manual) for module. D071x. with Atmel Mikrocontroller: ATMega128 or ATMega2561 or AT90CAN128

ACU6. Technical Reference Manual. Specifications Interfacing Dimensions. Document topics. ANSARI Controller Unit Type 6 technical reference manual

XE166 Family AP Application Note. Microcontrollers. X E D r i v e C a r d H a r d w a r e D e s c r i p t i o n Board REV.

Arduino ADK Rev.3 Board A000069

Introduction 3. Features.5. Dimension Chart...6. Connection.7. Hardware Setting.. 9. GP-58R Battery Function Setting..15 Coupon & Receipt...

K191 3 Channel RGB LED Controller

AVR Development Board

BS2p40tm OEM Module. Surface mount/through hole kit By Robert L. Doerr. Manual Revision.5

A Programmer for the 68HC705C8 MicroController Figure 1 PROG05 As Built PROG05 User Guide Version C1 Page 1 of 14

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

Transcription:

Supplement for module D041 incl. ATMega8 Prozessor V 1.4 16. March 2006 2006 by Peter Küsters This document is in copyright protected. It is not permitted to change any part of it. It is not permitted to publish it in any way, to make it available as a download or to pass it to other people. Offenses are pursued.

Congratulations for buying this ATMega8-module. This module contains the electronics for the color display as well as PowerBooster Technology, a RS232 interface and a ATMega8 processor. This module allows you to keep the complete electronics of your solutions on one board with minimal space. You need to complete this module by clicking the display into the connector and by soldering your needed cables. When the module is inevitably frequently moved, this load could damage the patch cord of the LCD in the long run. Therefore we suggest that you fix the display at the lower edge with a drop adhesive or a piece to double-sided tape on the plate. The display can be removed however only then surely again, if you stick it only at the edge of the plastic. If you are sticking it however on the back, then the back foil of the display is possibly damaged when taking the display off. Note: the glass of the display or the electronics below may become damaged by a too strong pressing at the display surface. This manual shows you just the connection plan of this board and gives you some hints for using it. For the programming information of the color display please check the separate manual for the color display. CAUTION: 1) Never attach the display or remove it, as long as power is switched on 2) Connect the display to its connector always correctly (see illustrations on next pages). Never attach differently around! If you wrongly attach the display, it is inevitably destroyed. Port usage of this module To use this module with your own software you need to know which port of the processor is connected to which display connector. When using our sample software you may need to change the port selection at the beginning as follows: Display connection Port at integrated micro controller SC C.0 SD C.1 RS C.2 CS C.3 Sample programs in Bascom should show at the beginning: Const Rs = 2 Const CS = 3 Const Sdata = 1 Const Sclk = 0 page 2 Manual D041, ATMega8 board V1.4

Delivery: What you get delivered: 1 x PCB with micro processor ATMega 8 etc. 1 x color display 1 x pins (2x5, 0,1 spacing) software, documentation Voltage supply This board is delivered with two voltage regulators to provide you an easy usage and to avoid any damage to the processor and the display. You may run this module with any DC voltage from 5 up to 20 Volt. The processor and the RS232 part is running with 5 Volt, the display electronics with 3 Volt. These voltage regulators are very-low-drop-regulators so you really can offer 5,0 Volt as a minimum to the board (and not approx. 6,5 V as a minimum as you would need with a usual 7805 regulator). Caution: The 5 Volt regulator is able to deliver up to 100mA current the board itself needs about 50 ma as the 8 Volt for the display lighting is being produced at the board too. Please do not draw too much current from this board for any other items you are planning to connect to this board, you just have approx. 50mA left. If you need more current, it would be a good idea to bridge the internal 5 Volt regulator (the one directly beneath the Vcc pad) and to use an external regulator which may provide larger current. But then never provide a larger voltage to the board than 5,0 Volt. A higher voltage may destroy the display lighting and/or the processor on the board. page 3 Manual D041, ATMega8 board V1.4

How to get it up and running Please lay display and PCB on a table as shown below. Then click the connector into its place and carefully fold the display to the back of the PCB. To disconnect please do the same in the reverse order: First unfold the module, then unclip the connector (if your PCB looks different: newer modules have a different PCB layout but the connection of the display remains the same). HINT: You may use double sided tape to fix the display to the back of the PCB. This would be an easy and powerful fixation. But please keep in mind: You will never be able to dismount the display then: if you try to pull it from the tape, you will damage the foil of the display back and therefore destroy it. Now provide a voltage of 5 up to 20 Volts to the pads Vcc and GND. We already programmed the processor so you will see a program showing you the status of the switches and the usable ports. You need a separate ISP-programmer to be able to reprogram this board. As of the limited space on this board we were not able to leave room for the usual black connectors with the plastic frame around it (if somebody knows the English name for this special connector: your suggestions are welcome). As for this reason you need to use the provided pins without the plastic frame. AS the frame usually prevents a wrong connection, you now need to take care of this by yourself: The nose of your ISP cable always has to face the chip on the PCB (see picture) Nose page 4 Manual D041, ATMega8 board V1.4

The pads of the module The photo above shows you the available pads of the board. The description of the pads is also shown on the PCB itself. Because of the very limited space of the PCB we were not be able to offer you pads of all ports of the micro controller. The available are D2, D3, D4, D5, D6 and with C4 and C5 two ports which may be used as digital input/output or analogue input ports. Additionally there are two analog inputs with ADC6 and ADC7. If you do not want to use a crystal, you may also use Port B6 and B7. Whenever you solder a crystal to the board (and change the fuse to external crystal) these two ports are not usable anymore. You may also use B3, B4 and B5 of the ISP port. This result in 14 available ports which may be used as input or output, four of them may be used to measure analogue signals. Also there is a pad for using a reset-switch just connect Reset to GND to trigger a Reset at the micro controller - this starts your program from the beginning. page 5 Manual D041, ATMega8 board V1.4

The micro controller actually runs at 8 MHz. You may double the speed by soldering a 16 MHz crystal and 2 x 22pF ceramic capacities to the board. You then need to reprogram the speed fuse from 0100 (8Mhz) to 1111 (external crystal 16 MHz). Caution: any other selection than 0001, 0100 and 1111 may cause a malfunction of your board!! It will also not work anymore if you select 1111 without having a crystal soldered in. Fuses are very delicate if you are not experienced with them, do not experiment with changes quickly the board will not function anymore!! WARNING: There is a fuse available, which allows you to change the Reset-Pin of the controller to a port (C6). Whenever you do this, you can not return this step. The ISP programmer needs Reset for a correct working. When you change the fuse, you will have one port more available, but you will never be able to reprogram your module or the reset the fuse to its original state. You will need to solder a new controller in if you want to use the board furthermore. page 6 Manual D041, ATMega8 board V1.4

RS232 RS-232 is a serial communication protocol. It sends information as bit after bit and has two signal levels: - a voltage between -3 and -25 Volts is a logic one (1) - a voltage between +3 and +25 Volts is a logic zero (0) As the picture above shows, the voltage level between -3 and +3 Volts is undefined. In practice this is not so. Most often, any voltage level above 2.5 Volts is seen as a logic zero, anything below as a logic one. The electrical specification of RS-232 is quite robust, all outputs must be able to sustain a full short-circuit and all inputs must have a schmitt-trigger action. This makes a full-standard RS232 port on a PC much less vulnerable than a TTL-level parallel port. RS-232 is an a-synchronous protocol, meaning that no separate clock is transmitted with the data. Both sides must know the communication speed (we use the term baud-rate) beforehand. RS-232 usually defines a complete hardware handshaking system using several wiring pins. We use only the most important three: - RxD : receive data, pin number 2 - TxD : transmit data, pin number 3 - Ground, pin number 5 These pin numbers refer to a standard male DB9 connecter on your PC or laptop. If you want to build a cable to connect our board to your PC you need a regular serial cable with one male and one female DB9-connector. The female will be connected to your PC, the male needs to become connected to you board. The following picture will help you to build a adapter and to connect the cable to your board. page 7 Manual D041, ATMega8 board V1.4

Pin 2 is the receive channel of the PC you need to connect this channel to the transmit channel (TX) of the micro controller. Also at Pin 3 the data of the PC are transmitted to our board and therefore you need to connect Pin 3 with the receive channel (RX) of the board. The ATMega 8 offers one RS232 interfaces. At the ports D0 and D1 the used RS232 interface of the ATmega 8 is located. These two ports (D.0 and D.1) are connected to the RS232 interface chip at the board and this chip is connected to the Rx and Tx Pad. The chip decouples the high voltage RS232 signals from your PC. If you would connect the PC directly with the ATMega, the micro controller would become destroyed. If you want to use the RS232 interface, the following example might be helpful for you. Using the interface is also helpful during debugging of your code, as you just print variable values to the interface and check at the terminal program of your connected PC if the variables contain what you expect. At MS Windows you may use either the Hyperterminal which comes with MS Windows or with Bascom you may use the internal monitor for this. You may use the following program to test the output of your module and the terminal program of your PC. sample program RS232 output $regfile = "m8def.dat" $crystal = 8000000 $baud1 = 9600 Do Print "Hello world" Wait 1 Loop End page 8 Manual D041, ATMega8 board V1.4

RS232 and the crystal / Overclocking the board If you are planning of sending a lot of information through the RS232 interface you need to know, that the frequency for the selected baud rate is calculated by the micro controller using the current clock rate. Two facts are important to know: a) The internal resonator is not very accurate and varies with different temperatures etc. So if the board runs with internal 8 MHz, using of the RS232 interface may result in transmission problems. You better use an external crystal then. b) Using the usual 16 MHz crystal as the external clock will result in a not 100% correct frequency of the RS232 interface varying by the selected baud rate. The perfect match would be a crystal of 14.7456 MHz or 18.432 MHz instead, as they will result in 100% correct frequency. At 14.7456 the micro controller is a bit slower, with 18.432 you are overclocking the micro controller. Usually this will not result in problems as the ATMega128 can easily run at a even higher clock rate. The internal EEprom is the area which will first show errors during overclocking you will not be able to read or write correctly to it. If you do not need the Eeprom you may run the board even at 20 MHz. c) You need to tell the controller, what clock frequency you are providing otherwise the wrong calculation is done and the transmission will not work. In Bascom you do this with the command $crystal = 8000000 at the beginning (8000000 for 8 MHz; 16000000 for 16 MHz, 14745600 for 14.7456 MHz etc.). You always need to enter the exact speed of your crystal do not enter any different value, as this will cause in a wrong timing. At Bascom, there is a calculator included, which baudrate is possible with the selected frequence. You will find this at the menu Options / Compiler / Communications. See Screenshots: page 9 Manual D041, ATMega8 board V1.4

This will help you to check if you get an error free transmission with your crystal. In short: As the internal 8 Mhz is not accurate you should always solder an external crystal in if you want to use RS232. 16 MHz creates usually 0,16% error rate at slower speeds which is OK. Usually an error rate of less than 1% should not result in a higher error rate during transmission. 14.7456 MHz or 18.432 MHz will result in 0,00% error rate and is the perfect selection when using RS232. page 10 Manual D041, ATMega8 board V1.4

Technical data of display module kits: Item D041: Size: 40 x 35 mm (1.6 x 1.4 ) ca. 15 mm height (with display) Voltage: 5 to 20 Volt DC, approx. 50mA Processor: ATMega 8 8 KByte flash 1 KByte RAM 512 Byte Eeprom max. 16 MHz clock (we deliver set to 8 MHz) Display: 132x132 Pixel, 65.536 colors Active diagonal size: 1,5 (38mm) We did reprogram the processor it is not using the standard like ATMEL is delivering the processor. This is what we changed: Fusebit: Speed from 0001 (1MHz intern) to 0100 (8 MHz intern) Fusebit: Preserve EEPROM when chip erase We programmed EEprom and flash for testing purposes (item is delivered incl. installed testing program) Manufacturer: Speed IT up Owner Peter Küsters Wekeln 39 47877 Willich Germany Telephone: +49-21 54-88 27 5-0 Fax: +49-21 54-88 27 5-22 Further information and updates: www.display3000.com Author of this manual: Peter Kuesters Peter Kuesters page 11 Manual D041, ATMega8 board V1.4