background image

9

EasyPIC6 Development System

MikroElektronika

page

There are two ways of programming PIC microcontrollers: Low Voltage and High Voltage programming modes. The 

3,&ÀDVK

 programmer uses 

solely High Voltage programming mode during its operation. This mode requires voltage higher than the microcontroller’s power supply voltage 
(the range between 8V to 14V, depending on the type of the microcontroller in use) to be brought to the MCLR/Vpp pin in order so that the 
process of programming/debugging may be performed.   

7KH/RZ9ROWDJHSURJUDPPLQJPRGHFDQEHHQDEOHGGLVDEOHGXVLQJFRQ¿JXUDWLRQELWVRIWKHPLFURFRQWUROOHU,IWKH/RZ9ROWDJHSURJUDPPLQJ

mode is enabled, the programming process is initiated by applying a logic one (1) to the PGM pin. Unlike this mode, the High Voltage programming 
mode is always enabled and the programming process starts by applying a high voltage to the MCLR/Vpp pin.

All PIC microcontrollers have the Low Voltage programming mode enabled by default. In some rare cases, in order to enable the microcontroller 
to be programmed in the High Voltage programming mode, it is necessary to apply a logic zero (0) to the PGM pin, which prevents the 
microcontroller from entering the Low Voltage programming mode. Depending on the microcontroller in use, it is possible to select one of the 
following pins RB3, RB4 and RB5 to be used as the PGM pin. Jumper J10 is used as the 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 PGM line 
is connected to the 
RB5 pin.

Jumper J10 default position 
when RB3, RB4 and RB5 
pins are not connected to 
the PGM line.

)LJXUH

Various positions of jumper J10

Jumpers J8 and J9 are used for selecting the socket to receive the 
programming signal. Figure 3-5 shows the position of jumpers J8 
and J9 depending on DIP sockets in use. 

)LJXUH

The position of jumpers J8 and J9

Microcontroler is plugged 
into one of the following 
sockets: DIP40, DIP28 
DIP18A or DIP18B. 
(Default position)

Microcontroller is plugged 
into one of the following 
sockets: DIP20, DIP14 or 
DIP8.

The function of the MCLR (Master Clear) pin depends on the position 
of jumper J7. When placed in the left-hand position, the MCLR pin 
has default function, i.e. is used as MCLR/Vpp. Otherwise, when the 
jumper is placed in the right-hand position, the MCLR pin is available 
as an I/O pin.

)LJXUH

The position of jumper J7 

MCLR used as an 
I/O pin.

MCLR used as the 
MCLR/Vpp pin.

MCU-PGD

Multiplexer

PGD

PROG

USB

VCC

D+

GND

D-

Build-in

with mikroICD

programmer

MCU-PGC

PGC

MCLR

Programming lines

User interface

MCLR

R

R

R

DATA

)LJXUH

Programmer schematic

During programming, a multiplexer disconnects 
the microcontroller pins used for programming 
from the rest of the board and  connects them to 
the

3,&ÀDVK

 programmer. After the programming 

is complete, these pins are disconnected from the 
programmer and may be used as input/output 
pins.

Содержание 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...

Отзывы: