background image

UART via USB

Modern PC computers, laptops and notebooks are 
no  longer  equipped  with  RS-232  connectors  and 
UART  controllers.  They  are  nowadays  replaced  with 
USB connectors and USB controllers. Still, certain technology 
enables UART communication to be done via USB connection. 

FT232RL

 from FTDI® convert UART signals to the appropriate USB 

standard. In order to use USB-UART module on EasyAVR

 v7, you must 

first  install  FTDI  drivers  on  your  computer.  Drivers  can  be 

found on 

Product DVD

:

USB-UART communication is being done through 

a FT232RL controller, USB connector 

(CN4)

, and 

microcontroller  UART  module.  To  establish  this  connection, 
you  must  put 

J23

  and 

J12

  jumpers  in  the 

USB-UART 

position,  and  connect 

RX

  and 

TX

  lines  to  the 

appropriate pins of the microcontroller. 
This  connection  is  done  using  DIP 
switch 

SW10

.

RX-FTDI

RX-232

TX-FTDI

TX-232

J23

J12

DATA BUS

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

TXD

DTR#

RTS#

VCCIO

RXD

RI#

GND

NC

DSR#

DCD#

CTS#

CBUS4

CBUS2

CBUS3

CBUS0

CBUS1

OSCO

OSCI

TEST

AGND

NC

GND

GND

VCC

RESET#

3V3OUT

USBDM

USBDP

FT232RL

U1

FT232RL

VCC-5V

C6

100nF

LD12

LD13

RX-LED1

TX-LED1

R16

4K7

R15

2K2

R18

1K

R26

2K2

1

2

3

4

VCC

GND

D-

D+

CN4

USB  B

C1

100nF

C2

100nF

E1

10uF

VCC-5V

VCC-5V

TX-FTDI

RX-FTDI

U

S

B

 U

A

R

I

CO

N

N

EC

TO

R

FTDI1-D_N

FTDI1-D_P

VCC-BRD

VCC-BRD

VCC-BRD

VCC-BRD

R57

100K

VCC-BRD

1
2
3
4
5
6
7
8

O

N

SW10

RX

TX

PD1

PD3

PD0

PD2

RX-FTDI
TX-FTDI

Figure 7-1: USB-UART connection schematic

Enabling USB-UART

In  order  to  enable  USB-UART 
communication, you must set 

J23 

and 

J12

 jumpers in the 

USB-UART 

position,  and  enable  desired 

RX

 

and 

TX

 lines via 

SW10

 DIP switch. 

For example, if you want to enable 
USB-UART  connection  on  UART 
module of the default 

ATmega32

 

chip,  you  should  enable 

SW10.1

 

(RD0) and 

SW10.2

 (RD1) lines.

DVD://download/eng/software/development-tools/
universal/ftdi/vcp_drivers.zip

page 15

communica

tion

Copyright ©2012 Mikroelektronika. 

All rights reserved. MikroElektronika, MikroElektronika logo and other 

MikroElektronika trademarks are the property of MikroElektronika.  

All other trademarks are the property of their respective owners.

Unauthorised copying, hiring, renting, public performance 

and broadcasting of this DVD

is strictly prohibited.

  M

IKR

OM

ED

IA B

OAR

DS

 

  

  

 

  

  

  

  

  

  

MAN

UAL

S

 

  

  

 

  

  

  

  

  

  D

EVE

LO

PM

EN

T B

OAR

DS

 

  

  

  

 

  

  

  

  

  

SC

HE

MA

TI

CS

 

  

  

  

  

  

  

  

  

  A

CC

ES

SO

R

Y

 B

O

A

R

D

S

  

  

  

  

  

  

  

  

  

  

EX

AM

PL

ES

 

  

  

  

  

  

  

  

  

  A

DD

IT

IO

NA

L S

OF

TW

AR

E

 

  

  

  

  

  

  

  

  

  

COMPI

LERS

 

  

  

  

  

  

  

  

  

  

MIKROC, M

IKROB

ASIC

, MIK

ROP

ASC

AL C

OM

PIL

ER

S

 

  

  

  

  

  

  

  

  

  

DR

IV

ER

S

 

  

  

  

  

  

  

  

  

  P

R

O

G

R

A

M

M

ER

S  

A

N

D

 D

EB

U

GG

ER

S

 

  

  

  

  

  

  

  

  

  

PRODUCT DVD

www.mikroe.com

www.libstock.com

Ava

ilable

 on Produc

t D

VD

!

Easy

AVR

v7

Summary of Contents for EasyAVR v7

Page 1: ...ports 3 3V and 5V devices Dual Power Supply Easily add extra boards mikroBUS sockets Four connectors for each port Amazing Connectivity microcontrollers supported The ultimate AVR board As fast as it...

Page 2: ...we never look at how hard the job is but what our users get when it s done And EasyAVR v7 brings a whole new perspective to AVR developers The 7th generation of the board brings many exciting new fea...

Page 3: ...On board programmer Programming 12 13 10 Dual power supply Power Supply 06 Supported microcontrollers Supported MCUs 08 LCD 2x16 characters 4 digit 7 seg display GLCD 128x64 Touch panel controller Dis...

Page 4: ...elopment EasyAVR development Team EasyAVR v7 is all about connectivity Having four different connectors for each port you can connect accessory boards sensors and your custom electronics easier then e...

Page 5: ...has JTAG interface for programming debugging Great choice for both beginners and professionals Rich with modules Enough RAM and Flash Comes with examples for mikroC mikroBasic and mikroPascal compiler...

Page 6: ...providing the power using either external adapter or USB power source you can turn on power supply by using SWITCH 1 Figure 3 1 Power LED Green ON will indicate the presence of power supply Figure 3...

Page 7: ...mper J22 in EXT position and place jumper J5 in 5V or 3 3V position You can then screw on the cables in the screw terminals as shown on images 5 and 6 and turn the power switch ON EasyAVR v7 developme...

Page 8: ...4 CLK_PB0 CLK_PB3 AREF_PC7 AVCC VCC BRD VCC BRD AVCC VCC BRD VCC BRD VCC BRD VCC BRD AVCC VCC BRD E4 10uF VCC BRD E5 10uF PC2 PC3 PC4 PC5 SCK_PB7 MISO_PB6 SCK_PB7 MISO_PB6 SCK_MOSI_PB5 MOSI_PB3 MISO_P...

Page 9: ...ns Figure 4 5 Position of the jumpers for DIP40x How to properly place your microcontroller into the DIP socket 1 2 3 IMPORTANT page 9 EasyAVR v7 AVR microcontrollers can use either built in internal...

Page 10: ...ee LEDs indicate specific programmer operation Link LED lights up when USB link is established with your PC Active LED lights up when the programmer is active Data is on when data is being transferred...

Page 11: ...SB PROG_N USB PROG_P FP1 C3 100nF 1 2 3 4 VCC GND D D CN1 USB VCC 5V VCC BRD LD3 LD1 LD2 CN6 mRST AVR JTAG VCC BRD PC2 PC3 PC4 PC5 TCK TDO TMS TDI mRST SCK_PB7 MISO_PB6 PB7 PB6 SCK_MOSI_PB5 MOSI_PB3 M...

Page 12: ...k on Next button to proceed Drivers are installed automatically in a matter of seconds Youwillbeinformedifthedriversareinstalledcorrectly Click on Finish button to end installation process Carefully r...

Page 13: ...ile to start installation DVD download eng software development tools avr avr prog2 avrprog2_programmer_v214 zip page 13 Copyright 2012 Mikroelektronika All rights reserved MikroElektronika MikroElekt...

Page 14: ...munication voltage levels are different than microcontroller logic levels it is necessary to use a RS 232 Transceiver circuit such as MAX3232 as shown on Figure 6 1 C2 V RX 232 TX 232 RX FTDI RX 232 T...

Page 15: ...1 100nF C2 100nF E1 10uF VCC 5V VCC 5V TX FTDI RX FTDI USB UART I CONNECTOR FTDI1 D_N FTDI1 D_P VCC BRD VCC BRD VCC BRD VCC BRD R57 100K VCC BRD 1 2 3 4 5 6 7 8 O N SW10 RX TX PD1 PD3 PD0 PD2 RX FTDI...

Page 16: ...SCK MISO MOSI 3 3V GND PWM INT RX TX SCL SDA 5V GND 3 MOSI MISO SCK SDA SCL PA4 PB0 PB4 PB2 PB3 PD1 PD0 PD1 PD0 PD3 PD2 1 2 3 4 5 6 7 8 O N SW6 1 2 3 4 5 6 7 8 O N SW3 1 2 3 4 5 6 7 8 O N SW5 MOSI MI...

Page 17: ...ble Click Boards Almost each month several new Click boards are released It is our intention to provide the community with as much of these boards as possible so you will be able to expand your EasyAV...

Page 18: ...tate to the selected pin 3 down position connects the resistor in pull down state to the selected PORT pin Figure 9 1 I O group contains PORT headers tri state pull up down DIP switch buttons and LEDs...

Page 19: ...oards and enable simple connection There is one more IDC10 header available on the left side of the board next to the section with displays I O PORT group also contains 1x10 connection pad like CN11 o...

Page 20: ...f of the data byte interface is connected to GND D4 D7 Upper half of the data byte LED Connection with the back light LED anode LED Connection with the back light LED cathode We have allowed LCD back...

Page 21: ...haracter LCD display you cannot use both displays simultaneously You can control the display contrast using dedicated potentiometer P4 Full brightness display back light can be enabled with SW3 1 swit...

Page 22: ...th Touch panel into GLCD socket 1 2 3 Figure 12 5 Turn on switches 5 through 8 on SW8 to enable Touch panel controller Touch panel is enabled using SW8 5 SW8 6 SW8 7 and SW8 8 switches They connect RE...

Page 23: ...microcontroller sockets To enable digit select lines for the 4 digit 7 segment display you have to turn on SW8 1 SW8 2 SW8 3 and SW8 4 switches Digit select lines are connected to PA0 PA3 pins on the...

Page 24: ...device to easily identify all devices sharing the same interface EasyAVR v7 provides a separate socket TS1 for the DS1820 Communication linewiththemicrocontrollerisconnected via jumper J18 EasyAVR v7...

Page 25: ...lastic packaging Readings are done with microcontroller using single analog input line which is selected with jumper J19 Jumper connects the sensor with either PA7 or PB4 microcontroller pins EasyAVR...

Page 26: ...n maximum number of bits that resulting number occupies Most AVR microcontrollers have 10 bit resolution meaning that maximum value of conversion can be represented with 10 bits which converted to int...

Page 27: ...tors necessary for I2 C communication are already provided on SDA and SCL lines once switches are turned on Prior to using EEPROM in your application make sure to disconnect other peripherals LEDs and...

Page 28: ...uzzer driver to either PB1 or PD4 microcontroller pin Buzzerstarts singing whenyouprovide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequency...

Page 29: ...roller pins or signals of on board modules GND is located between SW10 and SW8 DIP switches GND is located between DIP20A and DIP20B sockets GND is located between DIP28 and DIP40B sockets Additional...

Page 30: ...at http www mikroe com forum and browse through more than 150 thousand posts You are likely to find just the right information for you On the other hand if you want to download free projects and libr...

Page 31: ...product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice...

Page 32: ...e experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com esupport If you have any questions comments or business proposals d...

Page 33: ...nics Authorized Distributor Click to view similar products for Development Boards Kits AVR category ARD BOT MIKROE 682 KIT 12634 WIG 11519 WIG 12915 RP6V2 RMT ATSTK600 SC41 ATTINY817 XPRO ATAVRSB202 A...

Reviews: