Docsity

Familiarization With Embedded System Development Tools-Programming and Computer Logic Design-Lab Handout, Exercises of Digital Logic Design and Programming

Toggle sidebar
bg1
EXPERIMENT # 3: FAMILIARIZATION WITH EMBEDDED SYSTEM
DEVELOPMENT TOOLS
In this lab we start program by build a new project .We have written the program code
which is given in lab’s manual.
In this code we take the output on PORT D. In this program we generate the delay of 0.5
sec. After writing the whole program we make the hex file of program.
And make the jumper setting of PIC as given in lab’s manual.
We connected the Training Module’s programming interface with computer’s serial port.
While we don’t use trainer’s 5v supply.
We load the hex file into PIC Module and remove the programming cable.
Now we connect the 5v supply with PIC Training Module. Design a current sourcing
mode in which the Anode leg of the LED is connected to the micro-controller out put
PORT and the Cathode leg of the LED is connected to the ground through a current
limited resistor.
Then calculate the value of R (resistor) by using
R= (Vo-VLED)/ (ILED)
Where Vo is the output voltage of the micro-controller.
And also connect PORT pins of micro-controller with LED’s for checking the output. We
notice its output by using a LED.
This code ON the LED for 0.5 sec and OFF the LED for 0.5 sec. This shows that it
generates a delay of 0.5 sec. its means we can generate 50% duty cycle on PORT D by
using this code.
docsity.com

Partial preview of the text

Download Familiarization With Embedded System Development Tools-Programming and Computer Logic Design-Lab Handout and more Exercises Digital Logic Design and Programming in PDF only on Docsity!

EXPERIMENT # 3: FAMILIARIZATION WITH EMBEDDED SYSTEM

DEVELOPMENT TOOLS

In this lab we start program by build a new project .We have written the program code which is given in lab’s manual. In this code we take the output on PORT D. In this program we generate the delay of 0. sec. After writing the whole program we make the hex file of program. And make the jumper setting of PIC as given in lab’s manual. We connected the Training Module’s programming interface with computer’s serial port. While we don’t use trainer’s 5v supply. We load the hex file into PIC Module and remove the programming cable. Now we connect the 5v supply with PIC Training Module. Design a current sourcing mode in which the Anode leg of the LED is connected to the micro-controller out put PORT and the Cathode leg of the LED is connected to the ground through a current limited resistor. Then calculate the value of R (resistor) by using R = (Vo-VLED)/ (ILED) Where Vo is the output voltage of the micro-controller. And also connect PORT pins of micro-controller with LED’s for checking the output. We notice its output by using a LED. This code ON the LED for 0.5 sec and OFF the LED for 0.5 sec. This shows that it generates a delay of 0.5 sec. its means we can generate 50% duty cycle on PORT D by using this code.

docsity.com