Advance Information
UM-TM57PA20&40_E
8 Bit Microcontroller
20
tenx technology, inc.
Preliminary
Rev 1.3, 2009/10/19
F
BZ
= (8192KHz/2) / 32 / (9+1) = 12.8 (KHz)
BUZZER example code:
movlw
10000000b
movwr
0bh
; enable BUZZER output to PD1 (BUZ_OUT)
movlw
11001001b
; (fosc/2)/32 (BUZ_PSC)
movwr
10h
; Period=9 (BUZ_PROD)
movlw
80h
movwr
0ch
; enable BUZZER counting (BUZ_EN)
:
:
movlw
00h
movwr
0ch
; disable BUZZER counting (BUZ_EN)