PDA

View Full Version : Above the main problem



pescador
- 30th May 2023, 23:28
I need to set a pin low on intialization or it floats or drives high. I set the pin low before the main, but the program seems to continue to go thru the code above the main even though my last line is goto main.

I tested this by putting a flash led above the main and it flashes after it enters the main

What I am I not doing to prevent this?

thanks ahead of time....

16F15324

INLVLA = %11111

OUTPUT PORTA.4 ' FET

FET VAR PORTA.4 ' FET

low fet

main

goto main

pescador
- 31st May 2023, 01:12
lets simplify


Is it possible for the program to come out of the main loop other than a reset?

main

code

goto main

Ioannis
- 31st May 2023, 20:04
Yes it can.

Can you describe what you really want to do?

Ioannis