Electronic Components Datasheet Search |
|
93LC56 Datasheet(PDF) 6 Page - Microchip Technology |
|
93LC56 Datasheet(HTML) 6 Page - Microchip Technology |
6 / 22 page DS00560D-page 6 © 1994 Microchip Technology Inc. Using the 93LC56 and 93LC66 16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:06 1994 Page 1 Line PC Opcode 0001 LIST P=16C54,c=132 0002 ;**************************************************************** 0003 ; 3-Wire Byte Write Program (106 bytes) 0004 ; 0005 ; This program demonstrates how to interface a 0006 ; Microchip PIC16C54 to a 93LC56 or 93LC66 Serial EE 0007 ; device. This program will execute the erase/write enable 0008 ; command, write to 8 consecutive addresses, and then 0009 ; execute the erase/write disable command. This 0010 ; sequence will repeat forever. 0011 ; 0012 ; After each byte is written, time must be given to the 0013 ; device for it to complete the write cycle before 0014 ; the next command can be sent. The easiest solution 0015 ; is to consult the data book for the maximum write 0016 ; cycle time and just wait that long before the next 0017 ; command is sent. This program demonstrates that 0018 ; solution. 0019 ; 0020 ; Another, more efficient method of determining when the 0021 ; write cycle is complete is called ‘data polling.’ This 0022 ; method is demonstrated in the program “3wdpoll.” 0023 ; 0024 ; This program communicates to the serial EE in the 0025 ; x16 mode, and ASSUMES THE USER HAS SET THE ORG PIN 0026 ; ON THE DEVICE TO Vcc. 0027 ; 0028 ; Timing is based on using the PIC16C54 in ‘XT’ mode 0029 ; using a 4Mhz crystal. Clock speeds to the serial EE 0030 ; will be approximately 40 kHz for this setup. 0031 ; 0032 ; PIC16C54 to Serial EE Connections: 0033 ; 0034 ; PIC16C54 Serial EE 0035 ; —————— —————— 0036 ; Pin 10 (RB4) —> Chip Select 0037 ; Pin 11 (RB5) —> Clock 0038 ; Pin 12 (RB6) —> Data In 0039 ; Pin 13 (RB7) —> Data Out 0040 ; ORG=Vcc 0041 ; 0042 ;************************************************************ 0043 ; Register Assignments 0044 ;************************************************************ 0045 0005 port_a equ 5h ; port 5 (port_a) 0046 0006 port_b equ 6h ; port 6 (port b) comm lines to serial EE 0047 000A eeprom equ 0ah ; bit buffer 0048 000C addr equ 0ch ; address register 0049 000D datai equ 0dh ; stored data input reg. 0050 000E datao equ 0eh ; stored data output reg. 0051 0010 txbuf equ 10h ; transmit buffer 16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:06 1994 Page 2 Line PC Opcode 0052 0011 count equ 11h ; bits transmitted so far 0053 0012 bits equ 12h ; bits to transmit 0054 0013 bytcnt equ 13h ; byte counter for write routine 0055 0015 loops equ 15h ; delay loop counter 0056 0016 loops2 equ 16h ; delay loop counter ; 0057 ;************************************************************ 0058 ; Bit Assignments 0059 ;************************************************************ 0060 0007 di equ 7 ; eeprom input 8-104 |
Similar Part No. - 93LC56 |
|
Similar Description - 93LC56 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
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 |