Troubleshooting Pickit 2 Clone

Pickit 2 is a multipurpose tool : PIC programmer, debugger, UART and Logic analyzer provided by Microchip and the schematics is provided in Pickit 2 datasheet.
Schematics:

troubleshooting pickit 2 clone

Read More

Using Serial UART

UART is an essential interface to PC. Below shows how to use and set the configuration bits in C18. The purpose of the codes below is to loop back to the Hyperterminal the word “Hello” to make sure the settings of the PIC works accordingly. OpenUSART() function is provided by C18 and it is used to set the necessary registers in PIC18F series microcontroller.

Read More

Troubleshooting ICD 2 Clone

ICD 2 clone is a programmer and debugger for PIC microcontroller. It supports devices from 3.3V to 5V. In order to use it, it has to be connected through MPLAB.
Schematics:

Troubleshooting ICD 2 Clone

Read More

Simple Power Supply For PIC MCU

The power supply for PIC is either 5V or 3.3V. Let us begin with simple 5V regulated power supply. Figure 1 illustrates Proteus simulation for the 5V supply. Note that the supply voltage to the 7805 has to be at least 2V from the regulated voltage. Thus, in this case, the supply voltage has to be 7V and above.
In some cases, you might want to use it with PIC24F and also dsPIC devices that needs 3.3V. Thus, it is better to have both 3.3V and 5V. Read More

Using PIC18F4550 ADC in MCC18

ADC is essentially important as most of the sensors acquire data in analogue manner. Thus, for the microcontroller to process, these data are required to be converted to digital form. In PIC18F4550, the ADC span from port A to port B giving the developer 13 channels of ADC. Figure 1 and 2 shows the Registers related. Here, we would focus on ADCON1 register. Read More