Hi,
I had a lecture on interups for the PIC16 series and I really didnt understand a thing, from start to finish, in an hour lecture. Its all going to be in my exam so I need to know it inside out.
Can anyone recommend a site where I can try to learn about interups in the easiest to understand way possible?
Also I have attached my sheet of paper from the class. If I could go through the lines trying to understand what is going on it would really help me out.
One of the first things it says is this:
movlw b'00000111' // Set timer to max (1:256 = TMR0 value)
movwf OPTION
How is moving the binary of "00000111" setting the timer to max?
movlw b'10100000' // Enable interrupt (bit7) and timer
movwf INTCON // For use with TMR0 (bit 5)
How does the binary of "10100000" enable the interupt bit 7?
Thank you for any help you can give.
James
I had a lecture on interups for the PIC16 series and I really didnt understand a thing, from start to finish, in an hour lecture. Its all going to be in my exam so I need to know it inside out.
Can anyone recommend a site where I can try to learn about interups in the easiest to understand way possible?
Also I have attached my sheet of paper from the class. If I could go through the lines trying to understand what is going on it would really help me out.
One of the first things it says is this:
movlw b'00000111' // Set timer to max (1:256 = TMR0 value)
movwf OPTION
How is moving the binary of "00000111" setting the timer to max?
movlw b'10100000' // Enable interrupt (bit7) and timer
movwf INTCON // For use with TMR0 (bit 5)
How does the binary of "10100000" enable the interupt bit 7?
Thank you for any help you can give.
James