MikroC Basic Learning


 

 

INTRODUCTION

PIC SUPPORTED

BASIC CIRCUIT

PROGRAMMING

EXAMPLE OF PROJECT

SOFTWARE

SURATKHABAR

CHATROOM

 

Project

HMC Wheelchair

Electronic Circuit

 

Other Link

Jazarie Enterprize

Jazarie Forum

MicroC Learning

Deen Web

Microchip

 

 

 

 

BASIC CIRCUIT

VOLTAGE REGULATOR (5V)

LM7805 is voltage regulator that generate 5V(max current = 1A). It need supply voltage from 7V to 24V to generate 5V.

DIOD 1N1004 is used as protection to LM7805 from different direction of current.

CAPASITOR (10uF) used to make sure input and output voltage of LM7805 is in stabil. Sometimes the input supply line may be noisy. To help smooth out this noise and get a better 5 volt output, a capacitor is usually added to the circuit, going between the 5 volt output and ground (GND).

LED use as an indicator to tell that circuit works. 220ohm is used to protect LED from broken.

PIC MICROCONTROLLER BASIC CIRCUIT

PIC18F452 is one of the microcontroller that produce by Microchip company. It has 40 pin and consist 5 port (u will understand after read the datasheet). to activate this circuit we need to give 5V to Vdd and GND to Vss. MCLR must be given 5V to activate and 0V to reset.

Crystal will be used as an clock to PIC. the circuit its like above. i always use 20Mhz crystal.

EXAMPLE OF LED BLINKING CIRCUIT

In this example PORTD is used as an output. so two LED is connected at PORTD.F0 and PORTD.F1 pins. Blinking of these LEDs is depend on programming.

correction R1 and R2 is equal to 120ohm