Remote-processing RPC-150 Manuale Utente Pagina 23

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 26
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 22
CHAPTER 9 SPEAKER
RPC-150 Page 21
Figure 9-1 Speaker pin location
Figure 9-2 Interface schematic
DESCRIPTION
Pin 16 on the card edge connector is the speaker output
from the 64180 C PU chip. This port can be used to
drive a speaker. The SO UN D com mand is use d to
generate a frequency.
Connecting a speaker
Refer to figure 9-2 below for circuit connections to a
speaker. T he series resistor determines the volume. the
Capacitor sets the lower frequency limit. Generally,
values from 100 uF to 470 uF ar e adequate. The
speaker may be any value but those with 50 ohms or
greater produce higher sound output.
WARNING: Do not connect pin 16 directly to a
speaker, ground, or + 5V, even
momentarily, as damage to the CPU
will result.
SYNTAX
SOUND frequency[,time]
Where: frequency = 20 to 15000 Hz
time = time in seconds
SOUND stops executing when CAM BASIC is not
running a program. The output will be at frequency until
SOUND is executed without a parameter or the optional
time is timed out.
frequency is not exact. It is, however, accurate enough
for most alarm or audio feedback applications.
NOTE: When SOUND is used with a time parameter,
program execution is suspended until it is timed
out.
Program ming ex ample
The following example produces tones from 200 to 5000
hz and back down again in 500 hz increm ents.
10 FOR N = 200 TO 5000 STEP 500
20 SOUND N,.5
30 NEXT
40 FOR N = 5000 TO 200 STEP -500
50 SOUND N,.5
60 NEXT
70 GOTO 10
To stop program execution, press the < esc> key.
Vedere la pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26

Commenti su questo manuale

Nessun commento