Re: Leaves the mainloop???
The schematic shows it drives 2 P channel Mosfets which supply power to a resistor load. - the 10k and 6k on the collector drive the gate when the npn is on.
The odd thing about this is when it powers up with resistor load attached - it will not drive the base of the npn. Release load and re-apply load - it stays on and works..
I tried this code this w same results - it tries to turn on the npn but cant, green led flutters on and off - release the load - green led turns on steady - re-apply load - it drives the npn. WTH...
MAIN:
FET = 1
GREEN = 1
GOTO MAIN
END
Last edited by pescador; - 1st June 2023 at 12:27.
My dad never liked you...
Bookmarks