PIC12C672 MICROCHIP [Microchip Technology], PIC12C672 Datasheet - Page 78

no-image

PIC12C672

Manufacturer Part Number
PIC12C672
Description
8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12C672-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12C672-04/SM
Manufacturer:
MIC
Quantity:
141
Part Number:
PIC12C672-04/SM
Manufacturer:
MICROCHIP
Quantity:
1 000
Part Number:
PIC12C672-04/SM
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC12C672-04/SM
Quantity:
540
Part Number:
PIC12C672-04/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC12C672-10E/SM
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC12C672/JW
Manufacturer:
MICKO
Quantity:
2 100
Part Number:
PIC12C672/JW
Manufacturer:
CY
Quantity:
1 650
PIC12CE5XX
;
; NOPs have been added to meet the timing specs for the memory at 4 MHz
; and low voltage.
; operating within 4.5-5.5V may be able to remove some of the NOPs.
;
; This code is specifically written for the interface hardware of the
; 12CE51x parts.
;***************************************************************************
;***************************
;***************************************************************************
; Communication for EEPROM based on I2C protocol, with Acknowledge.
;
; Byte_Write: Byte write routine
;
;
;
;
; Read_Current:
;
;
;
;
; Read_Random:
;
;
;
;
; Note: EEPROM subroutines will set bit 7 in PC_OFFSET register if the
;
;
;***************************************************************************
;
; OPERATION:
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;***************************************************************************
;
; These functions consume:
; 77 words Programming Memory
; 5 file registers which are overlayable.
; other functions as long as they are mutually exclusive in time.
; udata_ovr in the linker manual.
; 1 stack level (the call to the function itself.
; call any lower level functions).
;
;
DS40172A-page 78
Byte Write:
Read Random:
Read Current
Inputs:
Outputs:
Inputs:
Outputs:
Inputs:
Outputs:
EEPROM acknowledged OK, else that bit will be cleared.
can be checked instead of refering to the value returned in W
load EEADDR and EEDATA
then CALL BYTE_WRITE
Load EEADDR
then CALL READ_RANDOM
data read returned in EEDATA
no setup necessary
CALL READ_CURRENT
data read returned in EEDATA
See AN571 for the unmodified routines.
EEPROM Address
EEPROM Data
Return 01 in W if OK, else return 00 in W
Read EEPROM at address currently held by EE device.
NONE
EEPROM Data
Return 01 in W if OK, else return 00 in W
Read EEPROM byte at supplied address
EEPROM Address
EEPROM Data
Return 01 in W if OK, else return 00 in W
Applications running at slower clock rates and those
EEPROM Subroutines
EEADDR
EEDATA
EEDATA
EEADDR
EEDATA
Preliminary
That is, they can share with
**************************
These functions do not
This bit
See
1997 Microchip Technology Inc.

Related parts for PIC12C672