MAX6675 need more than 200 millisecs for the temperature convertion. You are polling too fast so you don't get any response. Place a delay of 250 msecs to allow convertion.
edit:My note was reffered to code seen in post#5. I just see that you added delay 500 in your code in post #7, so my answer is obsolete.
My new suggestion are :
add INCLUDE "modedefs.bas" on top of your code
and modify your SHIFTIN command adding:
shiftin MXSO, MXSCLK, MSBPRE, [MXTemp\16] 'read the data to MXTemp
and see if it works.
Al.
Last edited by aratti; - 11th December 2010 at 11:51.
All progress began with an idea
Bookmarks