ok. i'm trying to get my hands dirty with PIC assembly (using MPLAB).
I'm trying timer interupt. i want toggle LED every 1000 operations and this how i think about it:
1. Use Timer1 Overflow interrupt.
2. load Timer1 with initial value of 65535 - 1000 = 64535 and let it run, and thus it will run 1000 times and overflow.
I'm just wondering if this is the best way to go. any help/ideas?
Regards,
I'm trying timer interupt. i want toggle LED every 1000 operations and this how i think about it:
1. Use Timer1 Overflow interrupt.
2. load Timer1 with initial value of 65535 - 1000 = 64535 and let it run, and thus it will run 1000 times and overflow.
I'm just wondering if this is the best way to go. any help/ideas?
Regards,