Quantcast
Channel: PIC24, what's wrong with my program?
Viewing all articles
Browse latest Browse all 18

Re: PIC24, what's wrong with my program? (Cypress)

$
0
0
ric
How is it meant to get to your main code loop?
Your startup code runs straight into your interrupt code/
 




ric,
 
I had placed the loop just below the "BCLR TRISB,#6" before the timer setup, but that just resulted in the pin inside the loop going high and nothing happening on the interrupt-controlled pin.  I thought that was due to an infinite loop preventing the interrupt from initializing and the timer from being set up, but I wasn't even sure about that.  Honestly, I have very little assembly experience, and I'm trying to teach myself.  That's why my code might seem nonsensical.  Where should I place the main loop? Any help would be greatly appreciated. 

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>