DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN560 데이터 시트보기 (PDF) - Microchip Technology

부품명
상세내역
제조사
AN560
Microchip
Microchip Technology Microchip
AN560 Datasheet PDF : 22 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
Using the 93LC56 and 93LC66
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
01FF
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
000A
000B
000C
000D
000E
0006
0007
0006
0005
0004
0000
0A2F
0000
0A2F
0C6E
0036
0000
0000
0000
0000
0000
0000
02F6
0A03
02F5
0A01
0800
0C8F
do
equ 6
; eeprom output
datout equ 7
; data out line (port_b)
datin equ 6
; data in line (port_b)
sclk equ 5
; clock line (port_b)
chpsel equ 4
; chip select line (port_b)
;
;*************************************************************
org 01ffh
begin goto PWRUP ; set the reset vector
org 000h
goto PWRUP
;
;*************************************************************
;
DELAY ROUTINE
;
This routine takes the value in ‘loops’
;
and multiplies it times 1 millisecond to
;
determine delay time.
;*************************************************************
WAIT
;
top
movlw .110
; timing adjustment variable
movwf loops2
top2
nop
; sit and wait
nop
nop
nop
nop
nop
decfsz loops2
; inner loops complete?
goto top2
; no, go again
;
decfsz loops
; outer loops complete?
goto top
; no, go again
retlw 0
; yes, return from sub
;
;**************************************************************
;
Start Bit Subroutine
;
this routine generates a start bit
;
(Chip select and DI high when clock goes high)
;**************************************************************;
BSTART
movlw b’10001111'
16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:06 1994 Page 3
Line PC Opcode
0103 000F 0006
0104
tris port_b
; set port b for output
; except for the data out line
8
0105 0010 04C6
bcf
port_b,datin ; set datain and chipselect lines
0106 0011 0486
bcf
port_b,chpsel ; low just to check operation
0107 0012 04A6
bcf
port_b,sclk ; make sure clock starts low too.
0108 0013 0000
nop
0109
;
0110 0014 0586
bsf
port_b,chpsel ; set chip select line high
0111 0015 05C6
bsf
port_b,datin ; set data in line high
0112 0016 0000
nop
0113 0017 05A6
bsf
port_b,sclk ; set the clock line high to
0114
; generate the start bit
0115 0018 0000
nop
0116 0019 0000
nop
0117 001A 04A6
bcf
port_b,sclk ; set clock low again
0118 001B 0800
retlw 0
0119
;
0120
;*************************************************************
0121
;
BITOUT routine
0122
;
This routine takes one bit of data in ‘do’ and
0123
;
transmits it to the serial EE device
0124
;*************************************************************
© 1994 Microchip Technology Inc.
8-105
DS00560D-page 7

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]