Hello again. I'm trying to have a 16f630 receive serial data from a MAX6675. I read the SERIN section in the help topic but I still can't understand how to set it up. here are the datasheets for the chips and my code as well:
http://www.datasheetarchive.com/pdf-...-301/8892.html
http://pdf1.alldatasheet.com/datashe...IP/16F630.html
Code:INCLUDE "modedefs.bas" 'Setup MAX6675 - Thermocouple MAXData var porta.5 ' MAXpin7 MAXcs var porta.4 ' MAXpin6 MAXClock var porta.2 ' MAXpin5 MAXResult var word THC var word ' degrees Celsius (* power of 10) THF var word 'stores degrees F Main: low MAXcs ' select chip serin maxdata, N2400,maxclock, [MAXResult\16] ' get data high MAXcs ' start new data apture THC= (MAXResult/32) ' Deg. C THF= (((THC*18)/10)+32) 'Conversion to Deg. F lcdout $fe, 1 lcdout "Temperature: ", dec THF, "F"] 'display temp. on LCD pause 20 'give time between read cycles for MAX6675 to work right goto Main


						
					
				
				
				
				
			

Bookmarks