| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
93LC56 bảng dữ liệu(PDF) 16 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
93LC56 bảng dữ liệu(HTML) 16 Page - Microchip Technology |
|
16 / 22 page ![]() DS00560D-page 16 © 1994 Microchip Technology Inc. Using the 93LC56 and 93LC66 16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:20 1994 Page 1 Line PC Opcode 0001 LIST P=16C54,c=132 0002 ;**************************************************************** 0003 ; 3-Wire Sequential Read Program (93 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 read 8 consecutive addresses 0008 ; in the ‘sequential read’ mode. This means that the opcode 0009 ; and address are sent for the first address only. After 0010 ; the first address is read, the Chip Select line is left 0011 ; high and clocks for the remaining 7 bytes are sent to the 0012 ; device. The device will automatically increment the address 0013 ; pointer in this mode, allowing the user to read as many 0014 ; consecutive addresses as needed. This program will repeat 0015 ; forever. 0016 ; 0017 ; This program communicates to the serial EE in the 0018 ; x16 mode, and ASSUMES THE USER HAS SET THE ORG PIN 0019 ; ON THE DEVICE TO Vcc. 0020 ; 0021 ; Timing is based on using the PIC16C54 in ‘XT’ mode 0022 ; using a 4MHz crystal. Clock speeds to the serial EE 0023 ; will be approximately 50 kHz for this setup. 0024 ; 0025 ; PIC16C54 to Serial EE Connections: 0026 ; 0027 ; PIC16C54 Serial EE 0028 ; —————— —————— 0029 ; Pin 10 (RB4) —> Chip Select 0030 ; Pin 11 (RB5) —> Clock 0031 ; Pin 12 (RB6) —> Data In 0032 ; Pin 13 (RB7) —> Data Out 0033 ; ORG = Vcc 0034 ; 0035 ;************************************************************ 0036 ; Register Assignments 0037 ;************************************************************ 0038 0003 status equ 3h ; status register 0039 0005 port_a equ 5h ; port 5 (port_a) 0040 0006 port_b equ 6h ; port 6 (port b) used comm lines to serial EE 0041 000A eeprom equ 0ah ; bit buffer 0042 000C addr equ 0ch ; address register 0043 000D datai equ 0dh ; stored data input reg. 0044 000E datao equ 0eh ; stored data output reg. 0045 0010 txbuf equ 10h ; transmit buffer 0046 0011 count equ 11h ; bits transmitted so far 0047 0012 bits equ 12h ; bits to transmit 0048 0013 bytcnt equ 13h ; byte counter for read routine 0049 0015 loops equ 15h ; delay loop counter 0050 0016 loops2 equ 16h ; delay loop counter 0051 0017 hbyte equ 17h ; high byte for input data 16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:20 1994 Page 2 Line PC Opcode 0052 0018 lbyte equ 18h ; low byte for input data 0053 ;************************************************************ 0054 ; Bit Assignments 0055 ;************************************************************ 0056 0007 di equ 7 ; eeprom input 0057 0006 do equ 6 ; eeprom output 0058 0007 datout equ 7 ; data out line (port_b) 0059 0006 datin equ 6 ; data in line (port_b) 0060 0005 sclk equ 5 ; clock line (port_b) 8-114 |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |