![]() You can create an ISR like you would create a function and place the keyword ‘interrupt’ in between the return type and function name. Using Interrupts in your code can never be this easy. ![]() ![]() Now the individual bits are mapped on to their respective addresses. The reason is that the previous method used structures (more specifically bit-fields) to access the port pins. The same is true for all SFRs (INTCONbits.GIE is now just GIE). Now this saves a lot of time and gives more readability to the code.
0 Comments
Leave a Reply. |