Search found 33 matches

by r.zaimovic
05 Aug 2015 21:48
Forum: mikroC PRO for PIC General
Topic: Unresolved extern 'Mul_16x16_U'
Replies: 4
Views: 1811

Re: Unresolved extern 'Mul_16x16_U'

I was running v6.6.2. Still, I uninstall software, install 6.6.1, update to 6.6.2, install Network Ethernet Library and it seems to be ok now.
Thanks aCko
by r.zaimovic
05 Aug 2015 21:02
Forum: mikroC PRO for PIC General
Topic: Unresolved extern 'Mul_16x16_U'
Replies: 4
Views: 1811

Unresolved extern 'Mul_16x16_U'

Hello I just install Network Ethernet Library from Libstock. When I try to compile following code with latest version of MikroC Pro compiler I get error: 0 360 Unresolved extern 'Mul_16x16_U' __Lib_NetEthEnc28j60.c but with MikroC Pro 6.4.0 everything is ok. #include "__NetEthEnc28j60.h" sfr sbit Ne...
by r.zaimovic
03 Aug 2015 01:19
Forum: mikroC PRO for PIC General
Topic: ENC28J60 Pattern match filter
Replies: 0
Views: 2661

ENC28J60 Pattern match filter

Hello Is anyone have working example of how to set Pattern Match rx filter on ENC28j60? I've been struggling with this few days without success. I use little modified example from ENC28j60 datasheet. Here is my code: #define Spi_Ethernet_HALFDUPLEX 0x00 #define Spi_Ethernet_FULLDUPLEX 0x01 #define E...
by r.zaimovic
05 Aug 2014 22:00
Forum: mikroC PRO for PIC General
Topic: Memory assignment
Replies: 3
Views: 1648

Re: Memory assignment

Code did not work correctly. Same thing is happening with latest version of compiler. however problem is solved after deleting all files from project folder except source files. I save those files just in case and I can send it if me wish to take a look.
by r.zaimovic
03 Aug 2014 20:05
Forum: mikroC PRO for PIC General
Topic: Memory assignment
Replies: 3
Views: 1648

Memory assignment

Hello MikroElektronika

I came across weird behavior in my program and after some examination found that one array occupied less memory than it should (please see attachment).

Can you explain me this please?

I am using 18F8722 and MikroC Pro 6.0.0
by r.zaimovic
26 Jun 2012 23:02
Forum: mikroC PRO for PIC General
Topic: I can't use UART2_Write_Text properly
Replies: 6
Views: 1906

Re: I can't use UART2_Write_Text properly

Try to put 100ms delay after initialization uart module.
by r.zaimovic
19 Jun 2012 19:19
Forum: mikroC PRO for PIC General
Topic: Modbus Communications...
Replies: 191
Views: 40996

Re: Serial RS232 snag...

Hello Sy, You may do something like this: Activate interrupt on UART receive. For 18F series it is: RC1IE_bit = 1; // usart receive interapt ukljucen TX1IE_bit = 0; // usart transmit interapt iskljucen RC1IF_bit = 0; // usart receive flag UART1_Init(19200); Delay_ms(200); PEIE_bit = 1; GIE_bit = 1; ...
by r.zaimovic
10 Jun 2012 21:58
Forum: mikroC PRO for PIC General
Topic: Integral constant expected
Replies: 13
Views: 4277

Re: Integral constant expected

You have another option to implement automatic baud rate detection, and some PICs already have that feature.
by r.zaimovic
10 Jun 2012 21:31
Forum: mikroC PRO for PIC General
Topic: Integral constant expected
Replies: 13
Views: 4277

Re: Integral constant expected

From MikroC Pro for PIC help: Calculation of the UART baud rate value is carried out by the compiler, as it would produce a relatively large code if performed on the library level. Therefore, compiler needs to know the value of the parameter in the compile time. That is why this parameter needs to b...
by r.zaimovic
26 May 2012 16:11
Forum: mikroC PRO for PIC General
Topic: Parallel eeprom 28C256 writing issue
Replies: 3
Views: 2577

Re: Parallel eeprom 28C256 writing issue

Last function for write is working in case someone need it. I did not test first one.
Problem was software write protection. Although eeprom is purchased new, software wp was on.
Once I execute sequence for turn off swp I was able to write eeprom.
by r.zaimovic
24 May 2012 23:03
Forum: mikroC PRO for PIC General
Topic: Parallel eeprom 28C256 writing issue
Replies: 3
Views: 2577

Re: Parallel eeprom 28C256 writing issue

I still have no success with writing to eeprom. Today I order new part, but I think this one is ok because I can reprogram it with standalone programmer. I don't have logic analyzer to inspect what is going one but I tried with Proteus to simulate my code and in attachment are results. As far as I c...
by r.zaimovic
20 May 2012 20:43
Forum: mikroC PRO for PIC General
Topic: Parallel eeprom 28C256 writing issue
Replies: 3
Views: 2577

Parallel eeprom 28C256 writing issue

Hi I have problems with writing data to parallel eeprom AT28C256. Reading data from eeprom is working. This is functions I used to access 62256 SRAM memory and they are working fine for this type of memory. Datasheet for 28C256 say that this memory is accessed like static ram. Eeprom is connected to...
by r.zaimovic
04 Apr 2012 20:31
Forum: mikroC PRO for PIC General
Topic: Pointers to functions and recursion error
Replies: 29
Views: 7194

Re: Pointers to functions and recursion error

I just try it in real life and it works fine. This example is for 16F887 with TIMER0 interrupt enabled. Don't use xtal bigger than 8MHz if you want to detect led blinking. First function is toggling led on PORTA.F0 and second is toggling led on PORTA.F1, proving that both function are executed. int ...
by r.zaimovic
04 Apr 2012 11:23
Forum: mikroC PRO for PIC General
Topic: Pointers to functions and recursion error
Replies: 29
Views: 7194

Re: Pointers to functions and recursion error

Please try this. int demoA(void); int demoB(void); #pragma funcall main demoA, demoB #pragma funcall demoA demoB int (*pFirstCall)(void); int (*pSecCall)(void); int result; int DemoB(void) { return 1111; } int demoA(void) { return 1234 + (*pSecCall)(); } void interrupt_low(void) { result = (*pFirstC...
by r.zaimovic
04 Apr 2012 00:48
Forum: mikroC PRO for PIC General
Topic: Multiple Interrupts?
Replies: 14
Views: 3221

Re: Multiple Interrupts?

If one only disables Timer0 interrupts leaving the timer running, then the following prevents servicing Timer0 interrupt if (TMR0IE_bit && TMR0IF_bit) True. Made a mistake. On the other hand, one does not have to test more than just interrupt flags in ISR if one uses the if..else structure inside I...

Go to advanced search