Legacy tools: Microchip ICD3 in-circuit debugger-programmer |
(1) Dual_MUX_4 (2) Counter_BCD_1digit (3) Adder_BCD_1digit
Prototype specifications | Planning | Development and Test & Measurements |
Let us adapt the circuit represented in Fig. 1 to the PICDEM2 board for the target chips: PIC18F4520. Specifications and ideas in LAB9.
![]() |
Fig. 1. Symbol and truth table. |
Prototype specifications | Planning | Development and Test & Measurements |
This project is planned step by step in LAB9.
We will use the Windows 7 virtual machine with an older installation of MPLAB-X IDE and XC8 compiler. We choose the programmer tool simply as an option in the project.
Project location:
C:\CSD\LEGACY\Dual_MUX_4\PICDEM2p\(files)
Prototype specifications | Planning | Development and Test & Measurements |
This project is developed in LAB9.
The same example (hardware and software source C code) for three microcontrollers:
PIC18F4520 --> Dual_MUX_4 (zip)
ATmega8535 --> Dual_MUX_4 (zip)
PIC16F877A --> Dual_MUX_4 (zip). A chip replacement for the PIC16F873A may the PIC16F883 also available in Proteus)
Example 1: Board Picdem2+, target microcontroller: PIC18F4520, tools: MPLAB X + XC8 + Proteus + PicKit 3 in circuit debugger/programmer.
![]() |
PICDEM2 simulated in Proteus-VSM Board with PIC18F4520 Demo default for the PIC16F877 (old board) |
ICD3 programmer
PICkit3
(1) Dual_MUX_4 (2) Counter_BCD_1digit (3) Adder_BCD_1digit
Prototype specifications | Planning | Development and Test & Measurements |
Let us adapt the circuit represented in Fig. 1 to the PICDEM2 board for the target chips: PIC18F4520.
![]() |
Fig. 1. Symbol and function table as studied in Chapter 2. |
Prototype specifications | Planning | Development and Test & Measurements |
This project is planned step by step in LAB10.
Prototype specifications | Planning | Development and Test & Measurements |
This project is developed step by step in LAB10.
Example 1: Board Picdem2+, target microcontroller: PIC18F4520, tools: MPLAB X + XC8 + Proteus + Pickit3 or ICD3 debugger/programmer.
We can use the prototyping area for soldering push-buttons, switches and LED.
Project location:
C:\CSD\LEGACY\Counter_BCD_1digit\PICDEM2p\(files)
![]() |
Fig. 2. Prototype built on a PICDEM2 board. |
The complete project Counter_BCD_1digit.zip.
Example 2: Board Explorer 8, target microcontroller: PIC18F4520, tools: MPLAB X + XC8 + Proteus + PicKit 3 in circuit debugger/programmer.
The same project but changing the pins to adapt to port connections as shown in Fig. 1 and Fig. 2.
Project location:
C:\CSD\LEGACY\Counter_BCD_1digit\Exp8\(files)
![]() |
Fig. 1. Microcontroller pins for Explorer 8 board. Button S1 will generate external CLK interrupts. Button S2 will be CE_L control input. Schematic for COSC and MCRL_L are also represented pasted from the board's user manual. |
![]() ![]() |
The schematic connections are different thus hardware functions read_inputs() and write_outptuts() have to be modified accordingly. This is the advantage of programming the application using our style, only minor adaptations are necessary when changing prototyping platforms. This is the adapted project counter_BCD_1digit.pdsprj and counter_BCD_1digit.c.
The design can be also emulated in hardware using for instance ICD 3 tool monitoring variables, breakpoints, watch windows, etc.
![]() |
Fig. 2. Prototype built on Explorer 8 board. |
Instrument such Analog Discovery 2 or VB8012 may be used to drive CLK signal using the waveform generator and measuring outputs connecting the logic analyser.
(1) Dual_MUX_4 (2) Counter_BCD_1digit (3) Adder_BCD_1digit
Prototype specifications | Planning | Development and Test & Measurements |
Let us adapt the circuit represented in Fig. 1 to the PICDEM2 board for the target chips: PIC18F4520.
![]() |
Fig 1. Symbol of the 1-digit BCD adder indicating the port pins where to connect input and outputs. |
Prototype specifications | Planning | Development and Test & Measurements |
This project is planned step by step in P9.
Prototype specifications | Planning | Development and Test & Measurements |
This project is developed step by step in P9.
Example 1: Board Picdem2+, target microcontroller: PIC18F4520, tools: MPLAB X + XC8 + Proteus + + legacy PICkit3 in-circuit debugger-programmer.
![]() |
Fig. 1. PICDEM2+ board to be used with a PIC18F4520 chip. Expansion connectors or prototyping area can be used to connect switches and LED. |
Example 2: Board Explorer 8, target microcontroller: PIC18F4520, tools: MPLAB X + XC8 + Proteus + legacy PICkit3 in-circuit debugger-programmer.