Search found 22 matches

by viniciusov
03 Apr 2017 19:43
Forum: mikroC PRO for PIC General
Topic: EEPROM READ WRONG VALUE IN LO BYTE
Replies: 6
Views: 2451

Re: EEPROM READ WRONG VALUE IN LO BYTE

don't forget to add 1 byte to store a string ie : string of 16 cars needs a buffer of 17 bytes to store the terminator zero. paulfjujo, I have doubts around this and the explanation can help our friend Pumper too. When you say that strings must end with a terminator zero. It's the same as write? st...
by viniciusov
03 Apr 2017 16:19
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

Re: PIC doesn't execute any instruction after 0x1000h

I tried to change my LCD texts and store all of them in RAM memory but it didn't work. I tried to modify my code again... and the same: the compiler assign address up to 0x1000 (or near). More than this I get an empty space instead the adress, as showed int the Proteus image (attached before). No ma...
by viniciusov
02 Apr 2017 20:26
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

Re: PIC doesn't execute any instruction after 0x1000h

hello, you are using txt2ram(txt6) to display text on LCD i suppose this function copy texte stored in Flash code-> to RAM space did you check the maxima size of te RAM buffer receiveiving txt6 or others textes.. (wich must have a zero terminator for string) in case of overflow , you can be stuck h...
by viniciusov
31 Mar 2017 20:15
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

Re: PIC doesn't execute any instruction after 0x1000h

I realize too that sometimes the program runs after 0x1000... until 0x1008, 0x1010, 0x1012...
Always near the 0x1000 but it gets stucked or reboot itself.
:?
by viniciusov
31 Mar 2017 19:15
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

Re: PIC don't execute any instructions after 0x1000h

... . I don't know about this 4k paging. Can you explain me what is this?. i wrote "maybe " ... and ? it is only a supposition . I never met this case by myself. and don't see anything about 4K limit. what is your most important function size .. by the tools statistic statistic function sorted by s...
by viniciusov
31 Mar 2017 16:10
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

Re: PIC doesn't execute any instruction after 0x1000h

Hi, can you please send whole project folder in .zip archive? Regards, Danilo Hello danilo, I appreciate your help but sorry, I can't share the whole project or code. I think that is something about the PIC paging, as said before. But this is the first time that I try to compile a long code and I d...
by viniciusov
31 Mar 2017 14:22
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

Re: PIC don't execute any instructions after 0x1000h

hello, maybe similar problem as https://forum.mikroe.com/viewtopic.php?f=88&t=69785 4K paging ? Thanks for your comment paulfjujo. I don't know about this 4k paging. Can you explain me what is this? I tried to use ORGALL 0x1000 but when I use this directive the main code can't call the Interrupt .
by viniciusov
31 Mar 2017 04:08
Forum: mikroC PRO for PIC General
Topic: PIC doesn't execute any instruction after 0x1000h
Replies: 14
Views: 6418

PIC doesn't execute any instruction after 0x1000h

Hello guys, Here I am with my biggest project so far (more than 600 lines). I'm using the mikroC Pro for PIC to compile the code and use it in my pic 18f46k22 but I'm facing a little problem. The mikroc compile fine the code but I can see in the Proteus simulation that the program don't execute any ...
by viniciusov
13 Mar 2017 15:19
Forum: mikroC PRO for PIC General
Topic: PWM with LCD Issue
Replies: 1
Views: 1446

PWM with LCD Issue

Hello guys, Did anyone hear about some issue when using the PWM library with a LCD module? I'm trying to adjust my LCD backlight here. So I thought about use the PWM library to control the LCD bightness. My LCD was working fine and it was displaying all charachters properly but when I try to Start t...
by viniciusov
10 Mar 2017 19:56
Forum: mikroC General
Topic: Demo Limit
Replies: 23
Views: 62027

Re: Demo Limit

dusan.poluga wrote:Hi,

This is a strange issue.
Can you send me your project so i can try?

Regards,
I tried to send you the project by private message but I couldn't find any option to attach files there.
So I'd rather not post here.
by viniciusov
09 Mar 2017 19:01
Forum: mikroC General
Topic: Demo Limit
Replies: 23
Views: 62027

Re: Demo Limit

Hi, There is a easy way to calculate the maximum hex size from the known information is by this formula: PIC18: ((2000*16)/8)/1024 = 3.9Kb hex size is the 2k limit PIC16: ((2000*14)/8)/1024 = 3.4Kb hex size is the 2k limit Regards, Thanks for your help but I still don't get it: I have .hex files he...
by viniciusov
09 Mar 2017 13:23
Forum: mikroC General
Topic: Demo Limit
Replies: 23
Views: 62027

Re: Demo Limit

dusan.poluga wrote:Hi,

For PIC18 one program word is 2 bytes.
And for PIC16 it is 14bits.
So you can calculate the memory space depending on the 2K word limit.

Regards,
But how I calculate?
Do I have to see the .hex file size (in bytes) then divide it by 2, is this correct?
by viniciusov
07 Mar 2017 19:00
Forum: mikroC PRO for PIC General
Topic: Weird 16x02 LCD behavior
Replies: 15
Views: 10445

Re: Weird 16x02 LCD behavior

IstvanK and paulfjujo,

Thanks very much guys!
I added these delays and I rewired everything. Now it's working fine!

I'm so glad for your help!
by viniciusov
07 Mar 2017 15:54
Forum: mikroC General
Topic: Demo Limit
Replies: 23
Views: 62027

Re: Demo Limit

Hello...

I know about this 2k words Demo Limit.
But is there a way to count how many words my code is generating? If yes, how can I do it?
(I tried to use the search tool but I couldn't find an explanation about how exactly can I count the output words).
by viniciusov
07 Mar 2017 15:31
Forum: mikroC PRO for PIC General
Topic: Weird 16x02 LCD behavior
Replies: 15
Views: 10445

Re: Weird 16x02 LCD behavior

Ok IstvanK. I'll try.
Thanks for helping too.

Soon I'll post the results.

Go to advanced search