ay0438 Microchip Technology Inc., ay0438 Datasheet - Page 6

no-image

ay0438

Manufacturer Part Number
ay0438
Description
32-segment Cmos Lcd Driver
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ay0438-1/L
Manufacturer:
MICOCH
Quantity:
775
Part Number:
ay0438-1/P
Manufacturer:
MIC
Quantity:
20 000
Part Number:
ay0438-I
Quantity:
9
Part Number:
ay0438-I/L
Manufacturer:
Microchip Technology
Quantity:
1 987
Part Number:
ay0438-I/L
Manufacturer:
INTERSIL
Quantity:
6 231
Part Number:
ay0438-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
ay0438-I/L
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
ay0438-I/L001
Quantity:
5
Part Number:
ay0438-I/L001
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ay0438-I/P001
Manufacturer:
MIC
Quantity:
20 000
Part Number:
ay0438/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
ay0438/P001
Manufacturer:
HITACHI
Quantity:
235
Part Number:
ay0438T-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
AY0438
;
;
start
wait
KeyReleased
;
;Send8, sends the 8 bits in the W register
Send8
sendloop
DS70010I-page 6
retlw
retlw
retlw
retlw
clrf
bsf
movlw
movwf
bcf
bcf
btfsc
goto
bcf
movf
clrf
call
call
movf
call
call
movf
call
call
movf
call
call
bsf
bcf
btfss
goto
goto
movwf
movlw
movwf
bcf
rrf
btfsc
bsf
bsf
bcf
decfsz
goto
return
end
B'01111101'
B'00000111'
B'01111111'
B'01101111'
PORTB
STATUS,RP0
B'11111000'
PORTB
OPTION,RBPU
STATUS,RP0
UPDATELCD
wait
LOAD
LSD,w
PCLATH
DecodeValue
Send8
SCNDSD,w
DecodeValue
Send8
THRDSD,w
DecodeValue
Send8
MSD,w
DecodeValue
Send8
LOAD
LOAD
UPDATELCD
KeyReleased
wait
temp
.8
count
DATAIN
temp
STATUS,C
DATAIN
CLK
CLK
count
sendloop
;decode for 6
;decode for 7
;decode for 8
;decode for 9
;set portb 0,1&2 as outputs
;
;
;enable pull-up for switch
;see if update switch is low
;no then wait
;make sure load is disabled
;get least significant value
;PCH = 0
;decode the value
;serially output the seg values
;get 2nd significant digit
;decode it
;serially output it
;get 3rd significant digit
;decode it
;get Most significant value
;decode it
;serially send it
;toggle the LOAD line
;to enable the latches
;wait for key to be released
;repeat loop.
;save in temp
;init count
;to 8
;make sure DATAIN is low
;rotate value through carry
;if bit clear then skip
;else set data bit
;toggle clock
;
;see if 8 done
;no then do all
;else return
/
/
/
1995 Microchip Technology Inc.

Related parts for ay0438