PIC EK Lab Operation Guide (for PIC18F4550)
5
Lab2.Speaker2
a).Hardware Connection
b).
OBJECTIVES
1.To understand the operation of an IO.
2.To interface and drive a Buzzer/Speaker.
c). Experimental Principle and Results
RC2=1
,the transistor
T1
(S8050) is saturated and “
ON
”, and the Speaker will be
activated;
RC2=0
,the
transistor
T1
(S8050) is “
OFF
”, and the speaker will be stop chirping. When running this application,
the
buzzer sounds intermittently.