
Originally Posted by
Kalind
I need to know how to write the code to switch on/off a relay when a temperature setpoint is reached. The output pin im using is RC1 of a 16f873. Please, someone help me!!
Code:
main:
if temp > setpoint then
portc.1 = 1
else
portc.0 = 0
endif
goto main
You write code by typing at the keyboard.
Bookmarks