Electronic Components Datasheet Search
  English  ▼

X  

93LC56 Datasheet(PDF) 18 Page - Microchip Technology

Part # 93LC56
Description  Lowpower 3-wire non-volatile memories
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

93LC56 Datasheet(HTML) 18 Page - Microchip Technology

Back Button 93LC56 Datasheet HTML 14Page - Microchip Technology 93LC56 Datasheet HTML 15Page - Microchip Technology 93LC56 Datasheet HTML 16Page - Microchip Technology 93LC56 Datasheet HTML 17Page - Microchip Technology 93LC56 Datasheet HTML 18Page - Microchip Technology 93LC56 Datasheet HTML 19Page - Microchip Technology 93LC56 Datasheet HTML 20Page - Microchip Technology 93LC56 Datasheet HTML 21Page - Microchip Technology 93LC56 Datasheet HTML 22Page - Microchip Technology  
Zoom Inzoom in Zoom Outzoom out
 18 / 22 page
background image
DS00560D-page 18
© 1994 Microchip Technology Inc.
Using the 93LC56 and 93LC66
0125
0020
0800
retlw
0
;
0126
0127
;****************************************************************
0128
;
Receive data routine
0129
;
This routine reads one byte of data from the part
0130
;
into the ‘datai’ register.
0131
;****************************************************************
0132
RX
0133
0021
006D
clrf
datai
; clear input buffer
0134
0022
0C08
movlw
.8
; set # bits to 8
0135
0023
0031
movwf
count
0136
0024
0403
bcf
status,0
; make sure carry bit is low
0137
0025
036D
RXLP
rlf
datai
; rotate the buffer left 1 bit
0138
0026
091A
call
BITIN
; read 1 bit
0139
0027
040D
bcf
datai,0
; assume the input bit was low
0140
0028
06EA
btfsc
eeprom,di
; check the bit
0141
0029
050D
bsf
datai,0
; set high if necessary
0142
002A
02F1
decfsz
count
; 8 bits done?
0143
002B
0A25
goto
RXLP
; no, do another
0144
002C
0800
retlw
0
0145
;
0146
;*************************************************************
0147
;
BITOUT routine
0148
;
This routine takes one bit of data in ‘do’ and
0149
;
transmits it to the serial EE device
0150
;*************************************************************
0151
BITOUT
0152
002D
07CA
btfss
eeprom,do
; check state of data bit
0153
002E
0A31
goto
bitlow
; low, goto bitlow
16c5x/7x Cross-Assembler V4.12 Released
Mon Jun 06 10:49:20 1994
Page 4
Line
PC
Opcode
0154
002F
05C6
bsf
port_b,datin
; high, set datain high
0155
0030
0A32
goto
clkout
; and clock it
0156
;
0157
0031
04C6
bitlow
bcf
port_b,datin
; output a logic low
0158
0032
05A6
clkout
bsf
port_b,sclk
; set clock line high
0159
0033
0000
nop
0160
0034
04A6
bcf
port_b,sclk
; return clock line low
0161
0035
0800
retlw
0
0162
;
0163
;****************************************************************
0164
;
Transmit Data Subroutine
0165
;
This routine takes the byte of data stored in the
0166
;
‘datao’ register and transmits it to the serial EE device.
0167
;****************************************************************
0168
TX
0169
0036
0212
movf
bits,w
; set the number of bits to xmit
0170
0037
0031
movwf
count
0171
;
0172
TXLP
0173
0038
04CA
bcf
eeprom,do
; assume bit 7 is low
0174
0039
06F0
btfsc
txbuf,7
; is bit 7 clear?
0175
003A
05CA
bsf
eeprom,do
; no, set data bit =1
0176
003B
092D
call
BITOUT
; transmit 1 bit to serial EE
0177
003C
0370
rlf
txbuf
; rotate txbuf left
0178
003D
02F1
decfsz
count
; all bits done?
0179
003E
0A38
goto
TXLP
; no, do another bit
0180
003F
0800
retlw
0
; yes, jump out
0181
;
0182
;****************************************************************
0183
;
POWER-UP ROUTINE
0184
;
This is the program entry point, which in this case simply
0185
;
sets the port_a I/O lines and directs control to the
0186
;
erase/write enable routine.
0187
;*****************************************************************
0188
PWRUP
8-116



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com