background image

UART via USB

Modern PC computers, laptops and notebooks are 
no  longer  equpped  with  RS-232  connectors  and 
UART controllers. They are nowdays replaced with USB 
connectors  and  USB  controllers.  Still,  certain  technology 
enables UART communication to be done over USB connection. 
Controllers  such  as 

FT232RL

  from  FTDI®  convert  UART  signals 

to the appropriate USB standard. In order to use USB-UART module 

on EasyPIC

 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 

(CN32)

, and 

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

J3

 and 

J4

 jumpers in the 

USB-UART 

position, 

and connect 

RX

 and 

TX

 lines of the microcontroller 

to the appropriate input and output pins 
of  the  FT232RL.  This  selection  is 
done using DIP switches 

SW1

 

and 

SW2

.

1
2
3
4
5
6
7
8
9

10

11

12
13
14

RX-FTDI

RX-232

LED

C32

100nF

RX-LED

TX-LED

LD41

LD42

R9

4K7

R8

2K2

VCC-MCU

VCC-MCU

C50

100nF

VCC-5V

E12

10uF

VCC-5V

C34

100nF

VCC-MCU

1

2
3
4

VCC-5V

VCC-MCU

R78

4K7

10K

R79

VCC

D-

D+

GND

CN32

USB

1
2
3
4
5
6
7
8
9

10

11

12
13
14

28
27
26
25
24
23
22
21
20
19
18
17
16
15

U2

FT232RL

TXD
DTR#
RTS#
VCCIO
RXD
RI#
GND
NC
DSR#
DCD#
CTS#
CBUS4
CBUS2
CBUS3

OSCO

OSCI

TEST

AGND

NC

CBUS0
CBUS1

GND

VCC

RESET#

GND

3V3OUT

USBDM

USBDP

RX-FTDI

TX-FTDI

FTDI

TX-FTDI

TX

J4

ON

TX-232

RA2

RB7

RC4

RD6

RC6

RB5

RB2

RB1

SW2

DIP SW 8

M1X3

16

15

14

13

12

11

10

9

1

2

3

4

5

6

7

8

RX

J3

ON

RA3

RB5

RC5

RD7

RC7

RB2

RB1

RB4

SW1

DIP SW 8

M1X3

16

15

14

13

12

11

10

9

1

2

3

4

5

6

7

8

DATA BUS

Figure 7-1: 
USB-UART 
connection 
schematics

Enabling USB-UART

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

J3 

and 

J4

 jumpers in the 

USB-UART 

position,  and  enable  desired 

RX

 

and 

TX

 lines via 

SW1

 and 

SW2

 DIP 

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

PIC18F45K22

  chip,  you  should 

enable 

SW1.1

  (RC7)  and 

SW2.1

 

(RC6) lines.

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

page 17

communica

tion

19122011  

www.mikroe.com

Copyright ©2011 Mikroelektronika. 

All rights reserved. Mikroelektronika, Mikroelektronika logo and other 

Mikroelektronika trademarks are the property of Mikroelektronika.  

All other tradmarks are the property of their respective owners.

Unauthorised copying, hiring, renting, public performance 

and broadcasting of this DVD prohibited.

Ava

ilable

 on Produc

t D

VD

!

Summary of Contents for EasyPIC V7 connectivity

Page 1: ...Supports 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 PIC board Fast USB 2...

Page 2: ...ece we had put all of our energy creativity and sense of what s best for an engineer I ve personally assembled hundreds of early EasyPIC boards myself with my home soldering iron Today we present you...

Page 3: ...good to know Piezo Buzzer Input Output Group Programming software ADC inputs On board programmer Dual power supply Supported microcontrollers Touchpanel controller Additional GNDs Introduction Power S...

Page 4: ...new board just as we are EasyPIC development Team EasyPIC v7 is all about connectivity Having four different connectors for each port you can connect accessory boards sensors and your custom electroni...

Page 5: ...al To Analog Converter DAC support for Capacitive Touch Sensing using Charge Time Measurement Unit CTMU three 8 bit timers and four 16 bit timers It also has pair of CCP Comparators and MSSP modules w...

Page 6: ...7 23V AC Use jumper J6 to specify which power source you are using and jumper J5 to specify whether you are using 5V or 3 3V microcontroller Upon providing the power using either external adapter or...

Page 7: ...d using screw terminals place jumper J6 in EXT position and place jumper J5 in 5V or 3 3V position depending on which microcontroller you are using You can then plug in the adapter cable as shown on i...

Page 8: ...RB3 RA6 MCU RA7 MCU RB7 MCU RB6 MCU RB5 RB4 VCC MCU SKT5 DIP SKT 20 SKT6 DIP SKT 14 C13 100nF VCC MCU C42 100nF VCC MCU RB7 RC7 RC6 RC3 RC4 RC5 MCLR RA3 RA4 MCU RA5 MCU RB6 RB5 RB4 RC2 RC1 RC0 RA2 MC...

Page 9: ...orrectly and press the microcontroller until it is completely plugged into the socket as shown in Figure 4 5 Figure 4 6 RA6 and RA7 as I O pins when using internal oscillator Figure 4 3 Place both end...

Page 10: ...line is routed to the correct socket for your microcontroller If you are using the default PIC18F45K22 jumpers are supposed to be set for DIP40 as shown below Jumpers J8 and J9 are used to select PGC...

Page 11: ...ACTIVE R69 6K8 LD40 VCC 5V DATA 1 2 3 4 VCC D D GND CN2 USB VCC BRD CN28 RJ12 MCU PGC MCU PGD MCU VPP 1 2 3 4 5 6 ICD C18 100nF VCC BRD Figure 5 1 mikroProg block schematics EasyPIC v7 is equipped wi...

Page 12: ...ou should be able to locate the driver setup file Double click on setup file to begin installation of the programmer drivers Welcome screen of the installation Just click on Next button to procede Dri...

Page 13: ...re has intuitive interface and SingleClick programming technology To begin first locate the installation archive on the Product DVD After downloading extract the package and double click the executabl...

Page 14: ...s powerful tool with intuitive interface and convenient set of commands will enable you to track down bugs quickly mikroICD is one of the fastest and most reliable debugging tools on the market Suppor...

Page 15: ...within it Step Over F8 Executes the current program line then halts If the executed program line calls another routine the debugger will not step into it The whole routine will be executed and the deb...

Page 16: ...necessary to use a RS 232 Transceiver circuit such as MAX3232 as shown on Figure 6 1 DATA BUS CN37 1 6 5 9 1 6 5 9 Bottom view SUB D 9p R32 100K VCC MCU VCC MCU U4 MAX3232 C1 V C1 C2 C2 V T2 OUT R2 I...

Page 17: ...8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 U2 FT232RL TXD DTR RTS VCCIO RXD RI GND NC DSR DCD CTS CBUS4 CBUS2 CBUS3 OSCO OSCI TEST AGND NC CBUS0 CBUS1 GND VCC RESET GND 3V3OUT USBDM...

Page 18: ...eaders Dedicated USB ON LED signalizesthepresenseofUSBconnection when the USB cable is inserted into the USB connector communication Figure 8 1 USB function disabled Figure 8 2 USB enabled on PORTC Fi...

Page 19: ...ee groups of communication pins SPI UART and I2 C communication There are also single pins for PWM Interrupt Analog input Reset and Chip Select Pinout contains two power groups 5V and GND on one heade...

Page 20: ...tional set of mikroBUS compatible 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...

Page 21: ...WiFi click GPS click Code Examples It easy to get your Click board up and running We provided the examples for mikroC mikroBasic and mikroPascal compilers on our Libstock community website Just downl...

Page 22: ...ull up and pull down feature from the PORT pin 2 up position connects the resistor in pull up state to the selected pin 3 down position connects the resistor in pull down state to the selected PORT pi...

Page 23: ...ith over 70 mikroElektronika accessory boards 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...

Page 24: ...half of the data byte interface is connected to GND D4 D7 Upper half of the data byte LED Connection with the backlight LED anode LED Connection with the backlight LED cathode We have allowed LCD bac...

Page 25: ...Since PORTB is also used by 2x16 character LCD display you cannot use both displays simoutaneously You can control the display contrast using dedicated potentiometer P3 Full brightness display backli...

Page 26: ...your finger to push it inside Figure 13 3 Now place GLCD with Touch panel into GLCD socket 1 2 3 Figure 13 5 Turn on switches 5 through 8 on SW3 to enable Touch panel controller Touchpanel is enabled...

Page 27: ...for the 4 digit 7 segment display you have to turn on SW4 1 SW4 2 SW4 3 and SW4 4 switches Digit select lines are connected to RA0 RA3 pins on the microcontroller sockets while data lines are connecte...

Page 28: ...ter device to easily identify all devices sharing the same interface EasyPIC v7 provides a separate socket TS1 for the DS1820 Communication line with the microcontroller is selected with jumper J11 Ea...

Page 29: ...sensor in TO 92 plastic packaging Readings are done with microcontroller using single analog input line which is selected with jumper J25 Jumper connects the sensor with either RE2 or RE1 microcontrol...

Page 30: ...ed in maximum number of bits that resulting number occupies Most PIC microcontrollers have 10 bit resolution meaning that maximum value of conversion can be represented with 10 bits which converted to...

Page 31: ...SW4 8 switches as shown on Figure 18 1 1k pull up resistors necessary for I2 C communication are already provided on SDA and SCL lines once switches are turned on Prior to using EEPROM in your applic...

Page 32: ...buzzer driver to either RC2 or RE1 microcontroller pin Buzzerstarts singing whenyouprovide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequen...

Page 33: ...signals of on board modules GND is located between UART module and 4 digit 7 seg display GND is located in the cross section between DIP18 and DIP14 sockets GND is located between PORTD I O group and...

Page 34: ...cts DVD download eng software compilers Development Systems EASYPIC_v7 If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http www mikroe com...

Page 35: ...l or 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 n...

Page 36: ...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...

Reviews: