SCR gate controller circuit

I have no clue what your post is about. You should describe the problem or if you've done that in an other thread include a link to it.

Code must be enclosed by code tags (use the hash sign button in the editor), else it gets changed by the forum system.

In your code you have at least two major problems:

  1. Variables used in interrupt and standard context must be declared "volatile" (d).

  2. Your scrPins aren't declared as outputs.