Some IF THEN statement are weird to me
Code:
if (PORTA.0 = 0 && sone = 0) then
Should be
Code:
if (PORTA.0 = 0) AND (sone = 0) then
OR
Code:
if (PORTA.0 = 0) && (sone = 0) then
There's few missing info.
Config Fuse setting.
Internal OSC or external?
wich speed?
Schematic?