English
Language : 

JA32050 Datasheet, PDF (18/19 Pages) List of Unclassifed Manufacturers – 8-Bit MCU,ADC,LCD Controller
!
sta TMR1C
CHARGE_TIME:
lda TMR0L ; ;;;;charge time loop; leave the loop when time up
cmp #$b0
bne CHARGE_TIME
TMR1_OFF:
lda #$fe
and TMR1C
sta TMR1C
; charge done, disable the timer0 "1111,1110"
lda #$00
sta TMR1L
;; clear timer1 content for next charging
JA32050
DISCHARGE_ON:
lda #$ef
and PA
sta PA
TMR0_ON:
lda #$00
sta TMR0L
sta TMR0H
lda #$01
ora TMR0C
sta TMR0C
;"1110,1111", assert low signal to start discharging
; clear timer0 content
; enable timer0 for discharge time counting
COMPO:
lda #$40
WAIT:
bit PA
bne WAIT
;"0100,0000"
;checking if PA6 is zero or not
TMR0_OFF:
lda #$fe
; charge done, disable the timer1 "1111,1110"
and TMR0C
sta TMR0C
jsr DLY1
jmp CHARGE_HI ;run again
;-----------------------------------------
LCD_CLEAR:
lda #$00
ldx #$00
ldy #$0e
; ;14 times
NEXT_BYTE:
sta SEG0,x
inx
dey
bne NEXT_BYTE
rts
;---------- subroutine DLY1 ------------
DLY1:
lda #$ff
sta DELAY
; DELAY = 256
Preliminary
TELΚ886-3-5770755
FAXΚ886-3-5770756
19-18
E-mailΚsales@jaztek.com.tw
Ver.0.0
Web-siteΚwww.jaztek.com.tw