background image

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

EasyAVR

USB

4

EasyAVR4 User

s Manual

MikroElektronika

Development 

tools

2

22

2

page

LL

CC

DD

  II

NN

  88

--

BB

IITT

  MM

OO

DD

EE

    

    

  

2x16 LCD

2x16 LCD

2x16 LCD

CONNECTOR

2x16 LCD

CONNECTOR

ON-BOARD

ON-BOARD

The LCD must be placed in the marked position with two free pins to the left and four free
pins to the right. It is important to note that the LCD should be placed or removed from
EasyAVR4 only when the power is off. Before attaching the LCD, set jumper J8 to the lower
position. The LCD's contrast can be adjusted using potentiometer P1 which is located to the
right of the GLCD/LCD connector.

LCD 2X16 IN 8-BIT MODE

When using a character LCD in 8-bit mode, the connector that is shared with the GLCD
should be used. Since this connector has 20 pins and the character LCD has only 14 pins,
special attention is required when placing the LCD. Otherwise the LCD can be permanent-
ly damaged.

Figure 29.

LCD 2x16 in 8-bit mode

NOTE:

Special attention is required when placing the LCD. Otherwise the LCD can be per-

manently damaged.

View from the back:
shows which pins
stays disconnected.

Содержание EasyAVR4

Страница 1: ...ul implemented peripherals plentiful practical code examples and a broad set of additional add on boards Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc MikroElektronika development bo...

Страница 2: ...HANTABILITY OR FITNESS FOR A PARTIC ULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS EMPLOY EES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMA...

Страница 3: ...ly page 10 On board USB 2 0 programmer page 11 Jumpers page 7 Switches page 6 MCU sockets page 8 LEDs page 14 Pushbutton switches page 16 MMC SD Multimedia Card page 32 7 segment displays page 19 Grap...

Страница 4: ...PC with direct connection to the motherboard Install the AVRprog programmer and drivers Start the installation from the product CD CD_Drive product zip AVRprog_setup exe After the installation connect...

Страница 5: ...explore the capabilities of AVR microcontrollers It allows AVR microcontrollers to be inter faced with external circuits and a broad range of peripheral devices allowing a user to con centrate on soft...

Страница 6: ...ns between the microcontroller port with analog capabilities PORTA and external pull up down resistors The pull up down resistors should be disconnected from the analog input pins otherwise they will...

Страница 7: ...ected pins For example the RS232 communication has two jumpers J11 and J12 used as switches They are used to connect or disconnect Rx pin to PD0 and Tx pin to PD1 pin of the micro controller A connect...

Страница 8: ...controller in DIP40 DIP28 DIP20 DIP18 DIP14 or DIP8 packages of an adequate pinout Note Since all packages have parallel connections there must not be more than one micro controller on the board at a...

Страница 9: ...CC PORTB CN2 VCC VCC Microcontroller s pins are routed to various peripherals as illustrated in Fig 6 All ports have direct connections to Direct Port Access connectors Such connectors are typically u...

Страница 10: ...an LM7805 voltage regulator The external power supply can be AC or DC with a voltage between 8V and 16V and the jumper J10 should be set in the left hand position In Fig 7 you can see USB and external...

Страница 11: ...USB cable Then load your program into the microcontroller via the AVRprog programming software which is supplied with the board VCC USB LINK 27 SWITCH TO PERIPHERALS ON DEVELOPMENT BOARD AVRprog On Bo...

Страница 12: ...oscillator is connected to the XT1 pin of the microcon troller Microcontroller in DIP8 package doesn t have pin that is dedicated only for the oscillator clock input Because of the small pin count it...

Страница 13: ...R ATMEGAxxxx PB1 PB2 PB3 PB4 PD1 PD2 PB5 PB6 PB7 PD4 PD5 PD6 PC1 PC0 PD7 PC2 PC3 PC4 PC5 PC6 PC7 PA7 PA6 PA5 PA4 PA3 PA2 PA0 PA1 PD3 PB0 PD0 RST VCC GND XT2 XT1 AREF AGND AVCC VCC OSCILLATOR 10K Reset...

Страница 14: ...ost commonly used components usually for dis playing pin s digital state EasyAVR4 has 32 LEDs that are connected to the microcon troller s PORTA PORTB PORTC and PORTD LEDs Figure 14 Light Emitting Dio...

Страница 15: ...e of the corresponding microcontroller pin otherwise the LEDs will always be off no matter what the port state is as no current can flow through LED RN6 R SIL 8 9 1 2 3 4 5 6 7 8 9 PA0 PA1 PA2 PA3 PA4...

Страница 16: ...D2 PB5 PB6 PB7 PD4 PD5 PD6 PC1 PC0 PD7 PC2 PC3 PC4 PC5 PC6 PC7 PA7 PA6 PA5 PA4 PA3 PA2 PA0 PA1 PD3 PB0 PD0 RST VCC GND XT2 XT1 AREF AGND AVCC VCC OSCILLATOR 10K Reset 100n VCC AVRprog On Board USB pro...

Страница 17: ...V while button is pressed J6 ATMEGAxxxx PB1 PB2 PB3 PB4 PD1 PD2 PB5 PB6 PB7 PD4 PD5 PD6 PC1 PC0 PD7 PC2 PC3 PC4 PC5 PC6 PC7 PA7 PA6 PA5 PA4 PA3 PA2 PA0 PA1 PD3 PB0 PD0 RST VCC GND XT2 XT1 AREF AGND AV...

Страница 18: ...will always be logical one On Fig 21 the J6 jumper is set to pull down therefore when the button is not pressed pull down resistor pulls the micro controller s PA3 pin to 0V A button press causes the...

Страница 19: ...dp b a f g Q4 Q3 Q2 10K 10K 10K R29 R30 R31 8 8 a b c d e f g PB7 SCK PB6 MISO PB5 MOSI PB4 MMC CS DIS3 DIS3 DIS2 DIS1 DIS0 PB3 DIS2 PB2 DIS1 PB1 DIS0 PB0 1 ON 8 7 6 5 4 3 2 SW3 R2 R9 8 8 1 2 3 4 5 1...

Страница 20: ...efore a GLCD is connected the user needs to set the jumper J8 Fig 24 to the upper position The GLCD s contrast can be adjusted using the potentiometer P1 which is placed to the right of the GLCD ATMEG...

Страница 21: ...uiring the use of a different connector on EasyAVR4 For 4 bit data bus use the LCD should be placed in the upper left of the board just above the LEDs The connection to the microcontroller is shown in...

Страница 22: ...emoved from EasyAVR4 only when the power is off Before attaching the LCD set jumper J8 to the lower position The LCD s contrast can be adjusted using potentiometer P1 which is located to the right of...

Страница 23: ...PA4 PA3 PA2 PA0 PA1 PD3 PB0 PD0 RST VCC GND XT2 XT1 AREF AGND AVCC VCC OSCILLATOR 10K Reset 100n VCC P1 10K Vee Vo Contrast Adjustment J8 GRAPH CHAR R W E D7 D6 D5 D4 D3 D2 VCC LCD8 contrast selected...

Страница 24: ...is commonly used in data acquisition applications for the transfer of data between the microcontroller and a PC Since the voltage levels of a microcontroller and PC are not directly compatible with e...

Страница 25: ...2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 U6 RS 232 CON CONNECT MCU TO PC Receive data Rx Send Data Tx 1 5 6 9 1 2 3 4 5 6 7 8 9 CN9 SUB D 9p C18 100nF CONNECT PC TO MCU 1 5 6 Rx Tx 9 SERIAL CABLE PC RS 2...

Страница 26: ...ded on EasyAVR4 with its rounded side to the lower edge of the board see Fig 33 oth erwise the DS1820 could be permanently damaged DS1820 s data pin can be connected to either PC6 or PC7 pin which is...

Страница 27: ...l ues as binary numbers in microcontroller In case of the 10 bit A D Converter the resolution will be 4mV per bit In case of the 12 bit A D Converter the resolution will be 1mV per bit Analog input pi...

Страница 28: ...IN GND R11 100 1 2 3 REF1 MCP 1541 J9 5V voltage reference 4 096V voltage reference ATMEGAxxxx PB1 PB2 PB3 PB4 PD1 PD2 PB5 PB6 PB7 PD4 PD5 PD6 PC1 PC0 PD7 PC2 PC3 PC4 PC5 PC6 PC7 PA7 PA6 PA5 PA4 PA3 P...

Страница 29: ...ed for system expansion with external boards such as Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc Ensure that the on board peripherals are disconnected from microcontroller by setti...

Страница 30: ...E E S S S S ATMEGAxxxx PB1 PB2 PB3 PB4 PD1 PD2 PB5 PB6 PB7 PD4 PD5 PD6 PC1 PC0 PD7 PC2 PC3 PC4 PC5 PC6 PC7 PA7 PA6 PA5 PA4 PA3 PA2 PA0 PA1 PD3 PB0 PD0 RST VCC GND XT2 XT1 AREF AGND AVCC VCC OSCILLATO...

Страница 31: ...ed by the debugger to be able to detect external reset sources The debugger can also pull the RESET pin low to reset the whole system The JTAG interface is accessed through four of the microcontroller...

Страница 32: ...th MMC card MC33269DT 3 3 Data lines from microcontroller to MMC card must be also adjusted to 3 3V It is done with resister voltage dividers as shown on Figure 42 MMC card is used as storage media fo...

Страница 33: ...SPI SDI R14 3K3 R16 3K3 R13 2K2 R15 2K2 R17 2K2 R18 3K3 MMC CS SPI SDO SPI SDI SPI SCK 7 6 5 4 3 2 1 CN12 MMC SD CARD Dout GND SCK 3 3V GND Din CS 1 ON 8 7 6 5 4 3 2 SW3 C20 100nF VCC3 C19 100nF VCC V...

Страница 34: ...Development tools 3 34 4 page If you are experiencing problems with any of our products or you just want additional information please let us know We are committed to meeting your every need Technica...

Отзывы: