It is currently 20 Oct 2018 09:24

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: PIC with TC72 slave
PostPosted: 22 Mar 2018 15:36 
Offline

Joined: 22 Mar 2018 14:53
Posts: 2
Hi,

I am trying to interface TC72 temperature sensor with PIC16F887 and display the temperature on LCD.
I get the incorrect results?
Can someone help me?

Regards


Last edited by Iva94 on 29 May 2018 20:47, edited 3 times in total.

Top
 Profile  
 
PostPosted: 28 Mar 2018 16:05 
Offline
User avatar

Joined: 05 Mar 2018 09:44
Posts: 423
Location: Belgrade
Hi,

Code seems ok, i really dont see anything that could be causing that issue.
Unfortunately, i dont have T72 to test if this happens outside of the simulation.


Kind regards,
Petar


Top
 Profile  
 
PostPosted: 29 Mar 2018 14:03 
Offline

Joined: 24 Aug 2014 17:55
Posts: 148
Location: Sheffield
Here's the link to the datasheet if you have not already downloaded it, note the data from the TC72 is in two's compliment form.
Bit 7 of the temperature register MSB is a sign bit.

ww1.microchip.com/downloads/en/DeviceDoc/21743a.pdf

I did write code for this a long time ago but it's dissapeared into the ether...
Regards

_________________
"When the bugs strike it's no good bashing your head against a brick wall, you might damage the wall"


Top
 Profile  
 
PostPosted: 30 Mar 2018 10:46 
Offline
User avatar

Joined: 05 Mar 2018 09:44
Posts: 423
Location: Belgrade
Hi,

I`ll look the datasheet and let you know if i find something.

Kind regards,
Petar


Top
 Profile  
 
PostPosted: 05 May 2018 10:45 
Offline

Joined: 22 Mar 2018 14:53
Posts: 2
I try all this solutions, but it still doesn't work. :cry:

Thank you all.
Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: