Bonjour à tous ,
j'essaye d’écrire un programme de PIC16F887 , avec MikroC :
mais Ca Marche pas .Code:(code) char a1=48; sbit LCD_RS at RD2_bit; sbit LCD_EN at RD3_bit; sbit LCD_D7 at RD7_bit; sbit LCD_D6 at RD6_bit; sbit LCD_D5 at RD5_bit; sbit LCD_D4 at RD4_bit; sbit LCD_RS_Direction at TRISD2_bit; sbit LCD_EN_Direction at TRISD3_bit; sbit LCD_D7_Direction at TRISD7_bit; sbit LCD_D6_Direction at TRISD6_bit; sbit LCD_D5_Direction at TRISD5_bit; sbit LCD_D4_Direction at TRISD4_bit; void interrupt(){ if(INTCON.INTF) { a1++; intcon.intf=0; } } void main() { INTCON = 0b10111000 ; TRISB=0xFF; Lcd_Init(); Lcd_Cmd(_LCD_CLEAR); Lcd_Cmd(_LCD_CURSOR_OFF); while(1) { Lcd_chr(1,1,a1); } } (/code)
Merci de m'aider à résoudre ce problème.
-----