did you pay for the compiler?
If you did, just download from mikroe.com website and reinstall everything.
Search found 23 matches
- 16 May 2009 20:55
- Forum: mikroC PRO for PIC General
- Topic: dimo limit error
- Replies: 25
- Views: 8272
- 15 May 2009 02:22
- Forum: mikroC PRO for PIC General
- Topic: lcd_init not working on 18f2550
- Replies: 5
- Views: 7503
- 14 May 2009 23:04
- Forum: mikroC PRO for PIC General
- Topic: lcd_init not working on 18f2550
- Replies: 5
- Views: 7503
lcd_init not working on 18f2550
I am using easypic5 board, 20mhz crystal and 18f2550. The lcd_init comand doesn't work, it says: 22 324 Undeclared identifier 'Lcd_Init' in expression 24 324 Undeclared identifier 'Lcd_Cmd' in expression Here's my code: sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit LCD_D4 at RB0_bit; sbit LCD...
- 18 Apr 2009 18:42
- Forum: mikroC General
- Topic: newb here, timer and counter
- Replies: 3
- Views: 1799
- 18 Apr 2009 07:14
- Forum: mikroC General
- Topic: newb here, timer and counter
- Replies: 3
- Views: 1799
newb here, timer and counter
I have a simple project using 18f4550. I am using a 16x2 lcd display and I want the display to change 5 minutes later after I pressed a button (doesn't matter what button). During that 5 minutes, I want to still be able to use my pic to do other things (turning on and off led for example) I know I n...
- 22 Mar 2009 22:52
- Forum: mikroC General
- Topic: bootloader and USB Connection
- Replies: 22
- Views: 17044
- 04 Dec 2008 08:48
- Forum: mikroC General
- Topic: 18f4550 with microchip bootloader Hellppp
- Replies: 7
- Views: 2859
- 04 Dec 2008 07:25
- Forum: mikroC General
- Topic: 18f4550 with microchip bootloader Hellppp
- Replies: 7
- Views: 2859
- 02 Dec 2008 23:41
- Forum: mikroC General
- Topic: 18f4550 with microchip bootloader Hellppp
- Replies: 7
- Views: 2859
- 02 Dec 2008 20:49
- Forum: mikroC General
- Topic: 18f4550 with microchip bootloader Hellppp
- Replies: 7
- Views: 2859
- 02 Dec 2008 16:44
- Forum: mikroC General
- Topic: 18f4550 with microchip bootloader Hellppp
- Replies: 7
- Views: 2859
Here's my code:
(blinking led on portD)
(blinking led on portD)
Code: Select all
void interrupt(){
asm nop
}
void main_tread() {
PORTD = 0;
TRISD = 0;
while(1){
PORTD = ~PORTD;
delay_ms(1000);
}
}
void main () org 0x800 {
main_tread();
}
- 02 Dec 2008 07:14
- Forum: mikroC General
- Topic: 18f4550 with microchip bootloader Hellppp
- Replies: 7
- Views: 2859
18f4550 with microchip bootloader Hellppp
I need to use usb bootloader by microchip for my pic 18f4550. I followed the direction here: http://www.mikroe.com/forum/viewtopic.php?t=7370 mlk file : //ROM MEMORY #pragma SetRomSize(32767) #pragma SetPage(PAGE0, 0x000808, 0x7FFF) #pragma SetPage(PAGE1, 0x000800, 0x830) Code: void interrupt(){ asm...
- 14 Nov 2008 22:37
- Forum: mikroC General
- Topic: external interrupt with 18f4550 -- SOLVED
- Replies: 3
- Views: 2437
I solved the problem. I need to add INTCON2.RPBU = 0 //All PORTB pull-ups are disabled. I have no idea why I need that, but it works. :lol: Anyway, here's the final code. Somebody might need it. unsigned int flag_RB; void interrupt() { if (INTCON.RBIF == 1) { unsigned short x; x = PORTB; flag_RB = 1...
- 14 Nov 2008 20:22
- Forum: mikroC General
- Topic: external interrupt with 18f4550 -- SOLVED
- Replies: 3
- Views: 2437
I changed the code a little bit unsigned int flag_RB; void interrupt() { if (INTCON.RBIF == 1) { unsigned short x; x = PORTB; flag_RB = 1; INTCON.RBIF = 0; } } void main() { TRISB = 0b11111111; CMCON = 7; TRISD = 0b00000000; PORTD = 0b00000000; PORTB=0; INTCON.RBIE = 1; // Port Change Interrupt Enab...
- 14 Nov 2008 19:38
- Forum: mikroC General
- Topic: external interrupt with 18f4550 -- SOLVED
- Replies: 3
- Views: 2437