SN8P2604A
8-Bit Micro-Controller
4.5.1 SYSTEM CLOCK MEASUREMENT
Under design period, the users can measure system clock speed by software instruction cycle (Fcpu). This way is
useful in RC mode.
¾
Example: Fcpu instruction cycle of external oscillator.
B0BSET
P0M.0
; Set P0.0 to be output mode for outputting Fcpu toggle signal.
@@:
B0BSET
B0BCLR
JMP
P0.0
P0.0
@B
; Output Fcpu toggle signal in low-speed clock mode.
; Measure the Fcpu frequency by oscilloscope.
Note: Do not measure the RC frequency directly from XIN; the probe impendence will affect the RC
frequency.
SONiX TECHNOLOGY CO., LTD
Page 54
Version 0.3