Quote Originally Posted by wildpikachu View Post
(Im using a PIC16F628A, PBP version 2.45 and microcode studio plus version 2.1.0.7)
???????????????????????????????????
2 words...Up.....Grade.....

First question: how do I setup Timer1 to start at a preset value of 1000 and a prescaler value of 1:2
Second question: how do i setup the PIC16F628A? i have found the "@ DEVICE" stuff but it wont work in microcode studio.
Third question: How to get the interrupt working as the interrupt must be enabled immediately after timer1 starts and disabled immediately after timer1 stops, the time frame could be anywhere from 2.5ms to 120ms
.........................
any help would be greatly appreciated as I'm a bit of a novice with this and this is my first time using PBP and Microcode Studio Plus
Quite frankly, I think you're in over your head........for the moment anyways......
Why not put together a small circuit with an LED first and make it blink, call it Mr. Blinky.
Then add a switch, and make it blink with the switch...
Then add some code to make the LED blink with a timer somehow
Then add some code to do.............whatever......
As far as the "@ DEVICE stuff" goes....
http://www.picbasic.co.uk/forum/showthread.php?t=543