mikroElektronika EasyPIC5 Скачать руководство пользователя страница 15

MM

iikk

rr

oo

IICC

DD

  ((

IINN

--CC

IIRR

CC

UU

IITT

  DD

EE

BB

UU

GG

GG

EE

RR

))

MikroICD (IN-CIRCUIT DEBUGGER)

MikroICD is a highly effective tool for Real-Time debugging on hardware level. The mikroICD debug-
ger enables you to execute a program on PIC microcontroller and view variable values, special func-
tion registers (SFRs) and EEPROM while the program is running.
MikroICD can be used with any PIC compiler manufactured by MikroElektronika (

mikroC

mikroBa-

sic

or 

mikroPascal

). You just have to select the appropriate build type (Release or ICD Debug), build

a project, program the MCU and run debugger.

The mikroICD debugger uses on-board programmer to communicate with the compiler and supports
common debugger commands:

Start Debugger

[F9]

Run/ Pause Debugger

[F6]

Toggle Breakpoints

[F5]

Run to cursor

[F4]

Step Into

[F7]

Step Over

[F8]

Stop Debugger    

[Ctrl+F2]

Note: 

For more information on how to use mikroICD debugger please refer to the mikroICD User’s Man-
ual. You can also find it in Help documentation inside any of the before mentioned compilers.

1

16

6

Figure 17

On-Board USB programmer
with mikroICD

Содержание EasyPIC5

Страница 1: ......

Страница 2: ...tor 14 mikroICD Hardware In Circuit Debugger 16 LEDs 17 Reset Circuit 19 Push Buttons 20 7 segment Displays 22 2x16 Character LCD 23 Graphic LCD 24 Touch Panel 25 RS 232 Communication Module 26 USB Co...

Страница 3: ...Ds on ports A B C D and E and enables digits on 7 segment LED display DIP switch SW9 turns on off touch panel controller PS 2 and LCD and GLCD backlights 14 EasyPIC5 supports microcontrollers in DIP8...

Страница 4: ...erate properly on the EasyPIC5 board For detailed installation instructions refer to the Installing USB driv ers manual Step no 4 Connect the EasyPIC5 to PC using USB cable Please use one of the USB p...

Страница 5: ...s to be interfaced with external circuits and a broad range of peripheral devices The user can therefore concentrate on software development only Figure 1 illustrates the EasyPIC5 development system T...

Страница 6: ...t pins Each pull up pull down resistor is individually enabled DIP switch SW6 is used to enable disable LEDs connected to the microcontroller ports Each group of 8 port LEDs has its own switch Four lo...

Страница 7: ...ommonly used as a selector between two possible connections via 3 pin connector As illustrated in Figure 4 the middle connector pin can be connected to the left or right pin depending on the jumper s...

Страница 8: ...8F1220 uses DIP18A socket while PIC16F628A uses DIP18B socket All 8 pin microcontrollers use DIP8 socket The exception is PIC10F family which uses 10F MCU socket Note Since all packages have parallel...

Страница 9: ...ese are normally used for connecting external peripherals to the board or as points for digital logic probe connecting All ports are connected to LEDs and push buttons which allows you to easily test...

Страница 10: ...EasyPIC5 board produces 5V using LM7805 voltage regulator The external power supply can be AC or DC while its voltage ranges between 8 and 16V In this case jumper J6 should be set in the left hand pos...

Страница 11: ...Low Voltage and High Voltage Some of the PIC MCUs are shipped with Low Voltage programming mode enabled by default PICflash is a High Voltage programmer only and it can program MCUs regardless of whe...

Страница 12: ...on as shown in Figure 13 Jumper J7 allows the use of the MCLR pin as a RESET or a digital I O pin It can be RE3 RA5 or RA3 pin depending on MCU in use When J7 is in lower position the hardware reset i...

Страница 13: ...ed by OSC2 is connected to DIP8 DIP14 and DIP20 sockets There are identification marks next to each MCU socket on a silkscreen indicating which oscillator should be used Quartz crystal is placed in th...

Страница 14: ...pins can also be used as digital input output pins In order to implement this feature the EasyPIC5 has jumpers enabling MCU to be connected to either oscillator or digital I O pins Refer to the schem...

Страница 15: ...tronika mikroC mikroBa sic or mikroPascal You just have to select the appropriate build type Release or ICD Debug build a project program the MCU and run debugger The mikroICD debugger uses on board p...

Страница 16: ...be enabled or disabled using switches of the DIP switch SW6 The exception is PORTE which has four LEDs and shares the same switch with PORTA Port LEDs are enabled when the corresponding switch of the...

Страница 17: ...s Figure 19 illustrates the connection between LEDs and PORTB Resistors are serially connected to the LEDs in order to limit their current In this case the resistor value is 1K 1 18 8 Figure 19 LEDs c...

Страница 18: ...d there is one red button on the far left marked as RESET As its name suggests it is used for MCU reset As seen in Figure 21 the microcontroller MCLR pin is connected to the programmer instead of bein...

Страница 19: ...PORTE is shown in Figure 22 Jumper J17 deter mines whether a button press will bring logic zero 0 or logic one 1 to the appro priate pin When the button is released the pin state is determined by pul...

Страница 20: ...ler senses a logic zero 0 Otherwise the pin state will always be a logic one 1 Referring to Figure 25 switch J2 is set to pull down so that pull down resistor pulls the microcontroller pin RB4 to 0V B...

Страница 21: ...he EasyPIC5 has four 7 segment displays set up to operate in multiplex mode Data lines are connected to PORTD while each display is enabled by four PORTA bits 2 22 2 Figure 26 7 segment displays Figur...

Страница 22: ...messages in two lines containing up to 16 alphanumer ic characters each The character LCD communicates with the microcontroller via 4 bit data bus Figure 29 illustrates its connection to the microcont...

Страница 23: ...D can be used to display messages in the form of drawings and bitmaps The most com monly used graphic LCD has the screen resolution of 128x64 pixels The GLCD contrast can be adjusted using the potenti...

Страница 24: ...en a soft touch causes some changes on the output signal It is used in various user friendly devices in combination with graphic LCD Connector CN13 enables this device to be con nected to on board tou...

Страница 25: ...r such as MAX232 must be used In order to provide more flexible system the microcontroller is connected to the MAX232 via the DIP switches SW7 and SW8 The DIP switch SW7 is used to connect Rx line to...

Страница 26: ...pport such as PIC18F2450 or PIC18F4550 Note that this USB connector cannot be used for programming In order to make con nection between the microcontroller and USB connector the J12 jumper group shoul...

Страница 27: ...mouse The PS 2 communication is of half duplex type It means that the microcontroller can be connected to a keyboard to capture pressed keys or to a PC to act as a keyboard CLK line is used for clock...

Страница 28: ...he range between 55 C and 125 C with 0 5 C accuracy It must be properly placed in the 3 pin socket provided on the EasyPIC5 with its rounded side directed to the right as marked on the board refer to...

Страница 29: ...he operation of analog to digital converter ADC Both potentiometers outputs have voltage in the range of 0 5V These two analog signals can be connected to different analog input pins simultaneously Th...

Страница 30: ...at jumpers J15 and J16 do not select the same pin Otherwise the development system can be permanently damaged 3 31 1 Figure 43 A D Converter input circuit diagram Pull up down resistors on PORTA analo...

Страница 31: ...s and two additional pins connected to VCC and GND These connectors can be used to connect the system to external peripherals such as Serial Ethernet Compact Flash MMC SD ADC DAC CAN RTC RS 485 etc If...

Страница 32: ...D D I I R R E E C C T T P P O O R R T T A A C C C C E E S S S S C C O O N N N N E E C C T T O O R R S S 3 33 3 Figure 46 PORTB connection circuit diagram...

Страница 33: ...CD with software Cables USB cable Documentation User manual for EasyPIC5 driver installation guide Installing USB drivers manual for PICflash programmer and manual for mikroICD System specifications U...

Страница 34: ......

Отзывы: