Hi,I am an oldie??
I have an 18M2 and Hex switch coded 1-2-4-8 Positive Logic.
I need to set up the 18M2 as follows:-
Port B B0 to B3 as Input to read code switch
Port B4 as Input for count input to count pulses 5 Secs Duration every 2 Hours
Port B5 as Output.
I need to store a variable for Code switch setting
I need to store a variable for the Input pulses on B4
I need to compare the 2 Variables and make B5 high.
I am finding this a little hard and need a little bit of code
to help out
Thank you
electron
I have an 18M2 and Hex switch coded 1-2-4-8 Positive Logic.
I need to set up the 18M2 as follows:-
Port B B0 to B3 as Input to read code switch
Port B4 as Input for count input to count pulses 5 Secs Duration every 2 Hours
Port B5 as Output.
I need to store a variable for Code switch setting
I need to store a variable for the Input pulses on B4
I need to compare the 2 Variables and make B5 high.
I am finding this a little hard and need a little bit of code
to help out
Thank you
electron