i use external interrupt in my programm, and i want to use WRITE command
but i must turn interrupt off or mask it before use WRITE command.
so, how can i do that?? should i put WRITE command at the beginning of the software? i mean before Main loop, or is there any simple methode to do it ??
pic16f84
WRITE_PRO:
---
----
WRITE 3,4
---
--
goto WRITE_PRO
OPTION_REG =%11000000
INTCON =%10010000
ON INTERRUPT GOTO INT
MAIN:
---
----
GOTO MAIN
Did i do the right or the wrong ??? because i want to put WRITE_PRO at any posion not at the beginning as i did
Bookmarks