08m Help

Rickharris

Senior Member
well thank you for everyone's help it is greatly appreciated. I'm still a little confused on the SETINT command. How and where exactly do I use it to activate a pattern every time a push the button?
The Setint command will look for an input whilst the rest of the programme is still running (to all intents and purposes)

Having read through this thread I can't help thinking that it is time for you to read and re-read the manuals. - Experiment with just 3 or 4 LEDs until you get the PIC side working and then apply your electronic knowledge to scale up the system to drive many LEDs.

Although the forum members will help and support you they are unlikely to write al your programme for you.
 

westaust55

Moderator
You use the SETINT command near the start of the program.
Then you MUST also have a subroutine called Interrupt:

The program structure might be like this (in pseudo code):

Code:
Init:                             ;do the initialisation stuff

                                   : when all is ready

SETINT  input,mask  ; input defines which input pin you are using and
                                   ; mask determines whether the interrupt is when the input is high or low
Main:                         ;start of the main program loop

;Do whatever you want here

GOTO Main

Interrupt:                    ; here when the selected input changes to the desired state (high or low)

; do whatever you need based on the switch/input activation

SETINT  input,mask  ; same line as just prior to the main to reactivate interrupts

RETURN
 
Top