MCP9800DM-DL2 Microchip Technology, MCP9800DM-DL2 Datasheet - Page 16

BOARD DEMO 2 FOR MCP9800

MCP9800DM-DL2

Manufacturer Part Number
MCP9800DM-DL2
Description
BOARD DEMO 2 FOR MCP9800
Manufacturer
Microchip Technology

Specifications of MCP9800DM-DL2

Sensor Type
Temperature
Sensing Range
-55°C ~ 125°C
Interface
I²C, SMBus
Sensitivity
±0.5°C
Voltage - Supply
2.7 V ~ 5.5 V
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
MCP9800
Processor To Be Evaluated
MCP9800, MCP101, PIC10F202, 24LC16B
Interface Type
I2C
Lead Free Status / RoHS Status
Not applicable / Not applicable
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide
DS22027A-page 12
BSTOP
Output:
Return Value:
Code Example:
SEND_ACK
Description:
Arguments:
Output:
Return Value:
Code Example:
SEND_NACK
Description:
Arguments:
Output:
Return Value:
Code Example:
BYTEOUT
Description:
Arguments:
Output:
Return Value:
Remarks:
Code Example:
BYTEIN
Description:
Arguments:
Output:
Return Value:
Code Example:
None.
0
call
Generate an I
None.
None.
0
call
Generate an I
None.
None.
0
call
Output an entire byte to the I
WREG
Data byte to be transmitted to the I
pollflag<0>
Flag indicating whether or not currently polling (1 if polling, 0 otherwise).
None.
0 if an Acknowledge was received.
-1 if an Acknowledge was not received and pollflag<0> is set.
If an Acknowledge was not received and pollflag<0> is cleared, this sub-
routine sets the current state to ERR1_STATE and goes to sleep. This
state is used to indicate that an Acknowledge error occurred.
movlw 0x7F
call
Input an entire byte from the I
None.
buffer
Data byte read from the I
0
call
call
movfw buffer
BSTOP
SEND_ACK
SEND_NACK
BYTEOUT
BYTEIN
SEND_NACK
2
2
C bus Acknowledge condition.
C bus Not Acknowledge condition.
2
C bus.
; Generate Stop
; Send ACK to continue reading
; Send NACK to end operation
; Load 0x7F into WREG
; Output byte
; Input byte
; Send NACK to end operation
; Copy data to WREG
2
2
C bus.
C bus.
2
C bus.
© 2007 Microchip Technology Inc.

Related parts for MCP9800DM-DL2