Upload
trinhkiet
View
223
Download
2
Embed Size (px)
Citation preview
Pin Module. Set the pins as inputs or output accordingly:
Enable IOCBP0 (Rise edge interrupt on pin PORTB0):
Set Port A as Inputs (TRISA Register):
Set Port B as Inputs (TRISB0) This is the interrupt pin:
Set Port C as Outputs (TRISC):
In the Easy Setup Label select the pins that have been already setup in the register label, and select positive in the IOC box in the RB0 row:
When everything is ready click on Generate to create the main structure of your program:
Save configuration program:
Return to your project and you should have some new files in the Source File folder and in the Header Files: