HT66F03T3/68F03T3 MCU with 315MHz/433MHz ASK Transmitter
5
RLC CA2_TMP ;count value of one cycle * 32 ,so
RLC CA1_TMP ;one cycle is CA1_TMP Divided by 32
RLC CA2_TMP ;
RLC CA1_TMP ;
RLC CA2_TMP ;divide 32
;generate one 2.5ms cycle wave
;20us*CA2_TMP=5ms (1/200=5ms)
;tmr1 2.5ms=> 100us*CA2_TMP*2.5/5
;so tmr1= CA2_TMP/2
CLR C
RRC CA2_TMP
RRC CA1_TMP
MOV A,CA1_TMP ;load counter value
MOV GEN1_TMR_TMP,A
MOV A,CA2_TMP
MOV GEN1_TMR_TMP,A
set tmr1c.4 ;; start tmr1 to generate
JMP $
END
Layout Notes
Component Placement
The first consideration for component placement are their signal lines which must be as
short as possible.
In addition to the antenna matching components, the RF PAOUT pin area should avoid
being occupied with components which may influence proper RF operation.
Routing
As right angles more easily accumulate charge, they will have larger discharges which
will influence PCB stability. It is recommended to conduct all routing using 45 degree
bevels or curves.
The distance between tracks should not be less than 6 mils.
The distance between the wires and the apertures should not be less than 6 mils.
The distance between two linked apertures should not be less than 6 mils.
The width of the VCC and GND tracks should not be less than 12 mils.
Each IC power source must have a decoupling capacitor located adjacent to the IC.
The power supply of the RF and the MCU should be independent so as to avoid
interference.
The RF antenna trace should not have a ground plane so as not to affect performance,
as shown in the figure.
Antenna
A typical application is shown in the figure below.
A market available 50 SMA plug dipole patch antenna
λ/4 length of copper wire, single-core wire, twisted wire
Cost Down applications
RF antenna Trace width=35mil,FR4 PCB material of 1mm thickness