Você está na página 1de 4

INFORMATION TECHNOLOGY

Report of Microprocessors and Controllers Laboratory Exercises

NAME OF THE EXPERIMENT (Testing the Renesas M16C microcontroller I/O


logic levels)

Written by (Olanigan Ibrahim)

Group: # MPC 2-1


Period: # (1)
Date of the experiment: 2/9/2010
Date of hand-in: 6/9/2010

Group members: Olanigan Ibrahim


Oladele Oriyomi
Banstola Bijay
Tefera Tsegaye

Teacher’s Marks:
Prelab grade:___________________
Handed In:_____________________ On time:_____
Checked:_______________________ Grade:_______

Teacher’s Comments:_____________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________

Page 1 of 4
INFORMATION TECHNOLOGY
Report of Microprocessors and Controllers Laboratory Exercises

TASK ONE
Program one of the M16C port to output high and another port to output low. Use digital voltmeter to
measure the VOH and VOL values of the corresponding ports.

SOLUTION

Port one (P1) of the microcontroller was programmed to function as output and pin zero of the port
(p1_0) is set to LOW and pin one is set to HIGH. A digital voltmeter was used to measure the Voltage
Output High (VOH) and the Voltage Output Low (VOL), which are:

VOH VOL
4.87V 5.0mV

FLOW CHART

Page 2 of 4
INFORMATION TECHNOLOGY
Report of Microprocessors and Controllers Laboratory Exercises

TASK TWO
Program one of the M16C port as input. Measure the range of VIH and VIL of M16C by
programming the microcontroller so that it can respond to input levels (e.g. switch on/off a LED in
reference to a specified input port). To measure the range of VIH, feed input voltage starting from
VCC (+5V) and slowly decrease until the input level changes. To measure the range of VIL, feed input
voltage starting from 0V and slowly increase until the input level changes. Also decide the range of
threshold voltage VT.

SOLUTION

Port zero of the microcontroller was programmed to function as input. LED0 was used to monitor
voltage input levels, which are the Voltage Input High (VIH) and the Voltage Input Low (VIL). Pin
JA2-4 was used as ground (GND) and JA3-17 was used as input voltage pin.
Voltage levels were measured between these pins using the voltmeter. Voltage Input High (VIH) was
measured by decreasing the input voltage from 5V to the voltage at which the LED goes OFF, which
was found to be 2.483V.
Voltage Input Low (VIL) was measured by increase the input voltage from 0V to the voltage at which
the LED goes ON, this value was found to be 2.473V.

VIH VIL
2.483V 2.473V

Therefore, the threshold voltage, VT falls within the range of 2.473V and 2.483V.
VT = 2.473V - 2.483V

From the logic family diagram, given by the instructor, it was deduced that the microcontroller used
belongs to CMOS family.

FLOW CHART

Page 3 of 4
INFORMATION TECHNOLOGY
Report of Microprocessors and Controllers Laboratory Exercises

Page 4 of 4

Você também pode gostar