background image

14

EasyPIC6 Development System

MikroElektronika

page

9.0. USB Communication

The

 USB 

connector enables PIC microcontrollers with a built-in USB communication module to be connected to peripheral components. In 

order to enable USB communication, it is necessary to change the position of jumpers J12 from left-hand to right-hand, thus connecting the USB 
DATA lines (D+ i D-) to RC4 and RC5 microcontroller pins and the RC3/VUSB pin to capacitors C16 and C17. If USB communication is not used, 
jumpers J12 should be left in the left-hand position. The status of USB communication (OFF/ON) is indicated by LED. Figures 9-3 and 9-4 show 
schematics of the most commonly used microcontrollers with integrated USB module. 

Figure 9-1

: USB communication 

disabled (default position)

Figure 9-2

: USB communication 

enabled

USB connector

VCC-MCU

VCC-MCU

X1
8MHz

C6

22pF

C7

22pF

PIC18F4550

OSC2

RC0

RC1

RC2

RC3/VUSB

RD0

RD1

OSC1

GND

GND

RD7

RD6

RD5

RD4

RC7

RC6

RC5

RC4

RD3

RD2

VCC

MCLR

RA0

RA1

RA2

RA3

RA4

RA5

RE0

RE1

RE2

VCC

RB0

RB1

RB2

RB3

RB4

RB5

RB6

RB7

DIP40

RC3

RC4

RC5

J12

CN4

USB B

D+

GND

VCC-BUS

D-

R42
4K7

LD44

USB ON

C16

100nF

C17

100nF

Bottom view

VCC

GND

D+

D-

Figure 9-3

: PIC18F4550 USB communication schematic

RC3

RC4

RC5

J12

CN4

USB B

D+

GND

VCC-BUS

D-

R42
4K7

LD44

USB ON

C16

100nF

C17

100nF

Bottom view

VCC

GND

D+

D-

VCC-MCU

X1
8MHz

C6

22pF

C7

22pF

DIP28

RB6

RA0

RB5

RA1

RB4

RA2

RB3

RA3

RB2

RA4

RB1

RA5

RB0

GND

VCC

GND

RC7

RC6

RC5

RC4

OSC1

OSC2

RC0

RC1

RC2

RC3

RB7

MCLR

PIC18F2550

Figure 9-4

: PIC18F2550 USB communication schematic

J u m p e r 
J12 in the 
left-hand 
position

J u m p e r 
J12 in the 
left-hand 
position

Содержание EasyPIC 6

Страница 1: ...ful peripherals ready to use practical code examples and a broad set of add on boards make MikroElektronika development systems fast and reliable tools that can satisfy the needs of experienced engine...

Страница 2: ...nue to improve our performance to better suit your needs The Microchip name and logo PIC and dsPIC are registered trademarks of Microchip Technology Incorporated in the U S A and other countries All o...

Страница 3: ...ICD Hardware In Circuit Debugger 10 5 0 Power Supply 11 6 0 RS 232 Communication Interface 12 7 0 PS 2 Communication Interface 13 8 0 ICD Connector 13 9 0 USB Communication 14 10 0 DS1820 Temperature...

Страница 4: ...C microcontrollers High Performance USB 2 0 On Board Programmer Hardware In Circuit Debug ger for step by step debug ging at hardware level PortExpanderprovideseasy I O expansion 2 additional ports us...

Страница 5: ...10 DIP switches to enable pull up pull down resistors 11 Port pins pull up pull down mode selection 12 I O port connectors 13 PIC microcontroller sockets 14 Touch panel controller 15 Port expander 16...

Страница 6: ...some of the MikroElektronika s compilers installed on your PC there is no need to reinstall the 3 DVK programmer as it will be automatically installed along with compiler installation 6WHS Turn on you...

Страница 7: ...ows how to correctly plug a microcontroller Figure 1 shows an unoccupied 40 pin DIP socket Place one end of the microcontroller into the socket as shown in Figure 2 Then put the microcontroller slowly...

Страница 8: ...ant manual provided in the EasyPIC6 development system package The 3 DVK programmer windowcontainsseveraloptions for microcontroller settings A number of buttons which will make the programming proces...

Страница 9: ...PGM pin selector as shown in Figure 3 3 Jumper J10 position when the PGM line is connected to the RB3 pin Jumper J10 position when the PGM line is connected to the RB4 pin Jumper J10 position when the...

Страница 10: ...ne to be executed next is highlighted in blue while the breakpoints are highlighted in red The Run command executes the program in real time until it encounters a breakpoint Figure 4 1 mikroICD Watch...

Страница 11: ...on the OFF ON switch respectively CN16 AC DC R55 3K R57 0 22 R56 1K E2 J6 10uF E3 330uF E1 U10 D12 4x1N4007 D13 D14 D15 330uF OFF ON C8 220pF VCC 5V VCC USB MC34063A L2 220uH D7 MBRS140T3 R14 2K2 LD42...

Страница 12: ...e PC and peripheral components In order to enable the USART module of the microcontroller to receive input signals with different voltage levels it is necessary to provide a voltage level converter su...

Страница 13: ...OSC2 RC0 RC1 RC2 RC3 RD0 RD1 OSC1 GND GND RD7 RD6 RD5 RD4 RC7 RC6 RC5 RC4 RD3 RD2 VCC MCLR RA0 RA1 RA2 RA3 RA4 RA5 RE0 RE1 RE2 VCC RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 DIP40 Figure 7 3 PS 2 connector conn...

Страница 14: ...ule Figure 9 1 USB communication disabled default position Figure 9 2 USB communication enabled USB connector VCC MCU VCC MCU X1 8MHz C6 22pF C7 22pF PIC18F4550 OSC2 RC0 RC1 RC2 RC3 VUSB RD0 RD1 OSC1...

Страница 15: ...20 is a temperature sensor that uses 1 wire standard for its operation It is capable of measuring temperatures within the range of 55 to 125 C and provides 0 5 C accuracy for temperatures within the r...

Страница 16: ...sitions Figure 11 2 The RA0 pin used asA D conversion input VCC MCU VCC MCU VCC MCU J15 R63 220R P1 10K P1 10K X1 8MHz C6 22pF C7 22pF PICxxxx OSC2 RC0 RC1 RC2 RC3 RD0 RD1 OSC1 GND GND RD7 RD6 RD5 RD4...

Страница 17: ...rrent varies from 1mA to 20mA depending on the type of LED diode The EasyPIC6 development system uses LEDs with current I 1mA The EasyPIC6 has 36 LEDs which visually indicate the logic state of each m...

Страница 18: ...g jumper J24 Just next to the push buttons there is a RESET button which is not connected to the MCLR pin The reset signal is generated by the programmer Figure 13 2 PORTB push button connection schem...

Страница 19: ...ins RD4 RD5 RD6 and RD7 Keypad MENU buttons are connected in a similar way to the PORTA buttons The only difference is in the button arrangement The keypad MENU buttons are arranged so as to provide e...

Страница 20: ...mode Alphanumeric digits are displayed in two lines each containing up to 16 characters of 7x5 pixels VCC MCU VCC MCU VCC MCU SW6 VCC LCD GLCD BACKLIGHT CN7 VCC MCU X1 8MHz D7 LED LED D6 D5 D4 D3 D2...

Страница 21: ...es each containing up to 16 characters of 7x5 pixels VCC MCU VCC MCU X1 8MHz C6 22pF C7 22pF COG D7 RB0 PE INTA PE INTB RB1 D7 COG D6 D6 COG D5 D5 COG D4 D4 D3 D2 D1 D0 R W COG E E COG RS RS VCC MCU G...

Страница 22: ...x16 alphanumeric LCD display you cannot use both displays simultaneously Potentiometer P3 is used for the GLCD display contrast adjustment Switch 8 on the DIP switch SW6 is used for turning on off dis...

Страница 23: ...s placed over a GLCD display The main purpose of this SDQHO LV WR UHJLVWHU SUHVVXUH DW VRPH VSHFL F GLVSOD SRLQW DQG WR IRUZDUG LWV FRRUGLQDWHV LQ WKH IRUP RI DQDORJ YROWDJH WR WKH PLFURFRQWUROOHU Swi...

Страница 24: ...able each connector pin to be connected to one pull up pull down resistor Whether port pins are to be connected to a pull up or pull down resistor depends on the position of jumpers J1 J5 Jumper for p...

Страница 25: ...own to the low logic level 0V in its idle state Jumper J17 used to determine the pin logic state provided by pressing push buttons should be set in the opposite position of jumper J2 Accordingly every...

Страница 26: ...will be used for SPI communication and thus cannot be used as I O pins Switches INTA and INTB on the DIP switch SW10 enable interrupt 0 3 6 HQDEOHV ELW SDUDOOHO H SDQVLRQ DQG PD EH FRQ JXUHG WR RSHUDW...

Страница 27: ...LQHVV SUR WV DQG EXVLQHVV LQIRUPDWLRQ EXVLQHVV LQWHUUXSWLRQ RU DQ RWKHU SHFXQLDU ORVV DULVLQJ RXW RI WKH XVH of this manual or product even if MikroElektronika has been advised of the possibility of s...

Страница 28: ...www mikroe com If you are experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com en support I RX KDYH DQ TXHVWLRQV FRPPHQWV...

Страница 29: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information MikroElektronika MIKROE 411...

Отзывы: