toggle pin
Posted: Sun Jul 26, 2026 3:37 pm
hi all
im working on toggling a port on and off, so far so good however im trying to use 2 switches so i can pick either of the frequencys i want that run for a predetermined time, the first runs as intended for 10 seconds at 40Hz,however when pressing the second swtch RA5 the software runs at the correct frequency of 52Hz but just keeps running instead of stopping at 15 seconds as intended, this has been tested on hardware, any feedback would be gratefully appreciated as to why it wont shut off after 15 seconds thanks in advance
im working on toggling a port on and off, so far so good however im trying to use 2 switches so i can pick either of the frequencys i want that run for a predetermined time, the first runs as intended for 10 seconds at 40Hz,however when pressing the second swtch RA5 the software runs at the correct frequency of 52Hz but just keeps running instead of stopping at 15 seconds as intended, this has been tested on hardware, any feedback would be gratefully appreciated as to why it wont shut off after 15 seconds thanks in advance