Search found 23 matches

by host88
16 May 2009 20:55
Forum: mikroC PRO for PIC General
Topic: dimo limit error
Replies: 25
Views: 8272

did you pay for the compiler?
If you did, just download from mikroe.com website and reinstall everything.
by host88
15 May 2009 02:22
Forum: mikroC PRO for PIC General
Topic: lcd_init not working on 18f2550
Replies: 5
Views: 7501

oh wow. Thanks a lot.
I learn something about mikroc pro today.
by host88
14 May 2009 23:04
Forum: mikroC PRO for PIC General
Topic: lcd_init not working on 18f2550
Replies: 5
Views: 7501

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...
by host88
18 Apr 2009 18:42
Forum: mikroC General
Topic: newb here, timer and counter
Replies: 3
Views: 1799

thank you guys, it's certainly helpful.
I have something to work but still not sure about few things. Right now, I'll have to figure out how to get the correct time (multiplying prescaler with tmr etc etc).
by host88
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...
by host88
22 Mar 2009 22:52
Forum: mikroC General
Topic: bootloader and USB Connection
Replies: 22
Views: 17022

Thanks for the tutorial w7ami, I've been looking for this.
This thread should be moved to the FAQ.
by host88
04 Dec 2008 08:48
Forum: mikroC General
Topic: 18f4550 with microchip bootloader Hellppp
Replies: 7
Views: 2859

just tested the interrupt part, no problem.
by host88
04 Dec 2008 07:25
Forum: mikroC General
Topic: 18f4550 with microchip bootloader Hellppp
Replies: 7
Views: 2859

darn it nobody helped :shock:

oh yea, I got it working
I haven't try the interrupt thing, but everything else is working great.

Too tired to write the step now, pm me for more info.
I'll do a write up soon.
by host88
02 Dec 2008 23:41
Forum: mikroC General
Topic: 18f4550 with microchip bootloader Hellppp
Replies: 7
Views: 2859

anyone??
by host88
02 Dec 2008 20:49
Forum: mikroC General
Topic: 18f4550 with microchip bootloader Hellppp
Replies: 7
Views: 2859

OMMAR1943 wrote:yr prog.is demo?
you mean the compiler?
no, it's full version.
by host88
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)

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();
} 

by host88
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...
by host88
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...
by host88
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...
by host88
14 Nov 2008 19:38
Forum: mikroC General
Topic: external interrupt with 18f4550 -- SOLVED
Replies: 3
Views: 2437

anyone?

What pull up resistor should I use? 10k? 5k?
tie it to the ground or +5vcc?

Go to advanced search