| | #23 (permalink) Top |
| User Data registr.: 14-05-2005 Residenza: bergamo
Messaggi: 1.278
|
ciao,scusami ancora un momento,ho un dubbio che la mia scheda cinese abbia qualche problema,non riesco a effettuare nessun interrupt,quindi è meglio se parto da piccole prove x capire il motivo secondo te questo codice che effettua un interrupt quando schiaccio rb0...è corretto? void interrupt(){ if((OPTION_REG.INTEDG == 1) && (INTCON.F1 == 1)) { portb.f4=1; } if(OPTION_REG.INTEDG = 0) { INTCON.INTF=0; } } void main() { trisa=0; trisb=0b00000001; porta=0; portb=0; OPTION_REG.INTEDG = 1; INTCON.INTE=1; INTCON.GIE=1; while(1){ portb.f3=1; delay_ms(1000); portb.f3=0; delay_ms(1000); } } grazie
__________________ NUOVO DRONE TAGLIATO AL LASER CO2 https://www.youtube.com/watch?v=cBgCVNyPH5c&t=7s GRUPPO LASER https://www.facebook.com/groups/1880460478909243/ |
| | |
| Bookmarks |
| |
Discussioni simili | ||||
| Discussione | Autore discussione | Forum | Commenti | Ultimo Messaggio |
| modificare linguaggio menù mc3030 | ravenlinux2000 | Radiocomandi | 0 | 24 aprile 07 21:03 |
| info | francescospina | Elimodellismo in Generale | 0 | 26 ottobre 06 12:41 |
| Linguaggio E Versioni Simulatore Reflex Xtr | ctenos | Simulatori | 1 | 30 novembre 05 17:02 |