8-5
FREQUENCY
GENERATOR
Figure 8-4. Infrared Remote Control Application Block Diagram
Figure 8-5. Data Encoding Example
This program example was designed to run on an 8XC196MD demo board. It uses an EPA timer
(t
imer 1) and compare channel (COMP3) to provide the timebase for the ones and zeros.
$debug
$nolist
$include (c:\ecm\196m
c\mc.inc)
$list
;
;********************
*******************
; PROGRAM FREQ.A96
;
; This program transm
its a block of data serially
; by gating the frequ
ency generator on and off.
;
; The carrier frequen
cy is programmed for 40 kHz.
; Ones are represente
d by a long (2 ms) carrier burst
; followed by a long
(2 ms) pause (no carrier).
; Zeros are represent
ed by a short (1 ms) carrier burst
A2704-02
Filter and
Detector
Output Signal
8XC196
Device
P7.7
V
CC
A2703-01
Zero = 2 ms One = 4 ms
40 kHz