Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

need code for inerfacing 80c51 with tc-74 tiny temprature sensor...

Status
Not open for further replies.

avi co10

Newbie level 3
Joined
Nov 13, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
i'm new in this site and by far it seems as a very capable way for providing me with the information i need so here it is
my request is I need a code in c++ c51 or asm it really doesnt matter for interfacing a tc-74 tiny temprature sensor with a 80c51 microcontroller please please help me!!! my email is:avi2323@gmail.com
datasheet fo tc-74:ww1.microchip.com/downloads/en/devicedoc/21462c.pdf
datasheet for 80c51:www.nxp.com/acrobat.../80C51_FAM_HARDWARE_1.pdf
thank you.
 

thanks man but i dont think it is interfaced with 80c51..
 

If you have the device then you can try it. Just understand the TC74 commands and try out I2C code given with 8051

Code:
I2C1_Init(100000);      // initialize I2C communication
       Delay_100ms();
       I2C1_Start();           // issue I2C start signal
       I2C1_Wr(0x9A);          // send byte via I2C  (device address + W)
       I2C1_Wr(cmd_byte);   //register select in the TC74
       
       I2C1_Repeated_Start();  // issue I2C signal repeated start
       I2C1_Wr(0x9B);          // send byte via I2C  (device address + R)
       temp = I2C1_Rd(0);    // Read the data (NO acknowledge)
       I2C1_Stop();            // issue I2C stop signal
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top