Download Certified by

Transcript
Other size capacitors were tried and worked, but a large deviation from this value caused
problems when downloading programs from the PC into RAM.
The clock that was used had a frequency of 11.0592 MHz. This signal was taken to
XTAL2 (pin 18) on the 8052, with XTAL1 (pin 19) taken to ground. This setup is not valid
for the "Micro-mint" version of the 8052.
A special bit that is contained within the port 1 bits is the PWM bit (P1.2, pin 3).
"Pulse Width Modulation" statements can be used to generate a square wave signal at a given
frequency and duty cycle. This can be used to drive a speaker that could sound an alarm or
produce a "beep" after each key stroke of a hex key pad (if used). It should be noted that the
frequency and duty cycle of these pulses can be varied very easily within a program to meet a
specific tone requirement. This bit can still be used for input and output applications.
The format for the pulse width modulation statement is:
PWM A,B,C
where A is the on time of the pulse in clock cycles, B is the off time of the pulse in clock cycles,
and C is the total length of the pulse.
51