Search found 37 matches
- 23 Nov 2011 09:59
- Forum: mikroC General
- Topic: What's the difference with MikroC Pro and MPLab?
- Replies: 12
- Views: 12959
Re: What's the difference with MikroC Pro and MPLab?
Hello, in my point of view both compilers are good, each of them have their positive and negative sides. What I like in MikroC that your functions are very well presented to you easy to use, in MPLAB maybe your have to write many of those functions what MikroC offers. On the other side what i don't ...
- 23 Nov 2011 09:51
- Forum: mikroC General
- Topic: Please Help "Soft_Uart Transmission Program"
- Replies: 2
- Views: 1359
Re: Please Help "Soft_Uart Transmission Program"
Hello,
please set your port as input with TRISH. If its port B then TRISHB = 1;
and correct your code to this:
Best regards,
Balazs
please set your port as input with TRISH. If its port B then TRISHB = 1;
and correct your code to this:
Code: Select all
void interrupt()
{
if(INTCON.INT0IF == 1)
{
INTCON.INT0IF=0;
Soft_Uart_write(3);
}
}
Balazs
- 23 Nov 2011 09:43
- Forum: mikroC General
- Topic: "Unknown Error Message"
- Replies: 1
- Views: 1165
Re: "Unknown Error Message"
Hello,
can you post your whole code, please. Try putting the interrupt function above your main and set your clock to 16Mhz not 016Mhz. Maybe some of these reasons are causing your problem.
Best regards,
Balazs.
can you post your whole code, please. Try putting the interrupt function above your main and set your clock to 16Mhz not 016Mhz. Maybe some of these reasons are causing your problem.
Best regards,
Balazs.
- 13 Oct 2011 19:24
- Forum: Development Boards
- Topic: MikroMMB for dsPIC33 bootloader
- Replies: 7
- Views: 2511
Re: MikroMMB for dsPIC33 bootloader
Hello, I just received my mikromedia for dsPIC33(1 day old), and started uploading the sample programs. I realized that that there are bugs in program(I think). When i reseted multiple times the reference touch no longer was available and the program just jumped through it, and the touch screen wasn...
- 10 May 2011 16:27
- Forum: mikroC PRO for PIC General
- Topic: PIC 18F SPI + I²C ?
- Replies: 3
- Views: 1626
Re: PIC 18F SPI + I²C ?
Hi, you can do Software RTC with the help of a timer, but the problem with it is that if you have a power break or some other problem with you system and it restarts you lose your information(the real time).You could store the time in the PIC inside memory but it's not a good thing because, if you o...
- 10 May 2011 16:12
- Forum: mikroC PRO for PIC General
- Topic: String to double
- Replies: 3
- Views: 1268
Re: String to double
Hi,
check atof library function, you can convert string to float.
Regards, Balazs.
check atof library function, you can convert string to float.
Regards, Balazs.
- 27 Apr 2011 09:23
- Forum: mikroC PRO for PIC General
- Topic: UARTlibraries are missing!!
- Replies: 7
- Views: 3867
Re: UARTlibraries are missing!!
Hi,
you have to import the UART library.
In Mikroc View -> Library Manager -> UART
Regards, Balazs.
you have to import the UART library.
In Mikroc View -> Library Manager -> UART
Regards, Balazs.
- 22 Apr 2011 09:15
- Forum: mikroC PRO for PIC General
- Topic: Storing in ROM...
- Replies: 3
- Views: 1095
Re: Storing in ROM...
Hi, read in your uC datasheet about your uC's internal ROM. I assume that you problem is that the ROM has 1 byte (8 bit) array's where you can store only 0-255. I see you have larger values than 255, you should somehow figure out a way to convert them, and store them that way. Search the forum for o...
- 21 Apr 2011 21:05
- Forum: mikroC PRO for PIC General
- Topic: sms extracing problem
- Replies: 11
- Views: 3392
Re: sms extracing problem
Hi,
you do it with a for(), you know the position where your phone number starts and where it ends, and you copy it to another char buffer.
Example: for(i=startnumber;i<endnumber;i++) phone=msg;
Regards, Balazs.
you do it with a for(), you know the position where your phone number starts and where it ends, and you copy it to another char buffer.
Example: for(i=startnumber;i<endnumber;i++) phone=msg;
Regards, Balazs.
- 21 Apr 2011 18:48
- Forum: mikroC PRO for PIC General
- Topic: sms extracing problem
- Replies: 11
- Views: 3392
Re: sms extracing problem
Hi, your doing major mistakes. The interrupt function must be named interrupt not interruptme, you cannot call functions in interrupt like lcd_out() and others.... I don't have that much time to do your problem but i advice you to start with smaller project, and search the forum how do interrupts wo...
- 21 Apr 2011 08:43
- Forum: mikroC PRO for PIC General
- Topic: extract bit from 8bit variables(char, short int)??
- Replies: 3
- Views: 1322
Re: extract bit from 8bit variables(char, short int)??
Hi, you have a char variable for example: 0x61 in hex, 01100001 in binary. If you want to extract a bit from this you should do an & operation. Example 0110000 1 & 0000000 1 = 0000000 1 , and you have you first bit. Another for example 110 00 000 & 000 11 000 = 000 00 000, you checked 2 bits from a ...
- 20 Apr 2011 13:17
- Forum: mikroC PRO for PIC General
- Topic: TMR0 & INTERRUPT PROBLEMS
- Replies: 4
- Views: 2028
Re: TMR0 & INTERRUPT PROBLEMS
Hi, first thing what i don't see is an endless loop in the main function... the second thing, don't name it frqint, just void interrupt() where you don't do endless loops. So here is the thing, you have an interrupt function where every time a signal occurs you want to increment a counter, so you on...
- 20 Apr 2011 12:58
- Forum: mikroC PRO for PIC General
- Topic: Problem interfacing with HD44780A00 LCD with 16F84A
- Replies: 6
- Views: 3372
Re: Problem interfacing with HD44780A00 LCD with 16F84A
Hi, this code is correct and working well. The problem is with your real circuit, make sure you connected everything as you done in proteus, especially at your LCD. Check if your LCD is the same, as in the program, maybe you have some other and the pins are in a different order. Maybe you bought an ...
- 20 Apr 2011 12:48
- Forum: mikroC PRO for PIC General
- Topic: sms extracing problem
- Replies: 11
- Views: 3392
Re: sms extracing problem
Hi, you should do the receiving in interrupt, ill post a part of a code how i done it. void setInterrupt(){ INTCON.GIE = 1; INTCON.GIEH = 1; INTCON.PEIE = 1; INTCON.GIEL = 1; INTCON.TMR0IE = 0; INTCON.INT0IE = 0; INTCON.RBIE = 0; INTCON.TMR0IF = 0; INTCON.INT0IF = 0; INTCON.RBIF = 1; PIE1.RCIE = 1; ...
- 19 Apr 2011 21:03
- Forum: mikroC PRO for PIC General
- Topic: Problem interfacing with HD44780A00 LCD with 16F84A
- Replies: 6
- Views: 3372
Re: Problem interfacing with HD44780A00 LCD with 16F84A
Hi,
if you haven't solved your problem yet, add your proteus file so i can check it. I noticed you don't have +5V, instead you have a generator, what could be a problem.
Regards, Balazs.
if you haven't solved your problem yet, add your proteus file so i can check it. I noticed you don't have +5V, instead you have a generator, what could be a problem.
Regards, Balazs.