Search found 16 matches

by zhiyongwoo
10 Jul 2010 14:26
Forum: mikroC PRO for PIC General
Topic: Difference between "Fosc/4" & "Fosc/4 Internal Clock"
Replies: 1
Views: 3214

Difference between "Fosc/4" & "Fosc/4 Internal Clock"

Hi I am stuck with some technical terms when I am reading the TMR0 & TMR1 timer specification on PIC 16F1946 or PIC 18F4550. Please, anyone if you know the difference, you are welcome to put your comments here. My question is: Is one of the TMR0 clock source from Fosc/4 where the Fosc is driven by 4...
by zhiyongwoo
05 Jul 2010 22:56
Forum: mikroC PRO for PIC General
Topic: PIC 16F vs 18F
Replies: 5
Views: 3948

Re: PIC 16F vs 18F

Hi,

If you go to the help file and look at the menu "PIC Specific".

In the topic, under 16F Specifics, it stated something like..... the limitation of using 16F.......
by zhiyongwoo
05 Jul 2010 16:48
Forum: mikroC PRO for PIC General
Topic: PIC 16F vs 18F
Replies: 5
Views: 3948

PIC 16F vs 18F

Hi I have read the Help file from MikroC Pro 2009 compiler and it did encourage user to use 18F instead of 16F. Does anyone can explain to me in details why the compiler is only bring the benefit to 18F but not 16F? Is it because the compiler can not handle the page crossing when the code generate o...
by zhiyongwoo
04 Jul 2010 21:47
Forum: mikroC PRO for PIC General
Topic: Using GOTO in C
Replies: 6
Views: 2401

Re: Using GOTO in C

I see...... Now I understand a lot more.

Thank you very much.

Regards
Yong
by zhiyongwoo
04 Jul 2010 20:25
Forum: mikroC PRO for PIC General
Topic: Use the TABLE
Replies: 2
Views: 1219

Re: Use the TABLE

Excellent! I got you.

It really easy and very good idea. I never though about this.

Many thank!!!!

Regards
Yong
by zhiyongwoo
04 Jul 2010 20:21
Forum: mikroC PRO for PIC General
Topic: Using GOTO in C
Replies: 6
Views: 2401

Re: Using GOTO in C

That is a good idea!! Many thank. If I am not mistaken, this method still using CALL not GOTO. The thing I am quite concern is if I am using CALL then 1. it will use the Stack (If my memory serve me right). This will limit the number of CALL in future. 2. In most cases, I use GOTO in my ASM code wri...
by zhiyongwoo
04 Jul 2010 17:51
Forum: mikroC PRO for PIC General
Topic: Using GOTO in C
Replies: 6
Views: 2401

Re: Using GOTO in C

Yes, I did. I have look into the help file. It did mention the GOTO is only valid if the label is located within the same bracket. Obviously, if I want each function have its own block then they will have their own bracket in which the GOTO can not apply in this case. Please let me know if I make an...
by zhiyongwoo
04 Jul 2010 17:27
Forum: mikroC PRO for PIC General
Topic: Use the TABLE
Replies: 2
Views: 1219

Use the TABLE

Hi Can anyone tell me how to use TABLE function in MikroC Pro compiler? Say for example I would like to convert ADC reading capture from my thermistor and by using given TABLE from datasheet to find the appropriate temperature reading. Can someone show me in a simple structure form with some explana...
by zhiyongwoo
04 Jul 2010 17:22
Forum: mikroC PRO for PIC General
Topic: Using GOTO in C
Replies: 6
Views: 2401

Using GOTO in C

Hi Can anyone tell me how make the compiler use GOTO instead of CALL? Here is my example programme structure. Void main(){ //Start here while (1){ function(); function2(); function3(); } } The reason of using this method is to help me in managing my code in block. It is like you are writing programm...
by zhiyongwoo
10 Jun 2010 15:58
Forum: mikroC PRO for PIC General
Topic: Accessing single bit in unsigned Int variable (2 bytes)
Replies: 2
Views: 1326

Accessing single bit in unsigned Int variable (2 bytes)

Hi I do not understand why I can not use normal direct access into Int variable. Here is my code. unsigned int TempInt; //Combine two bytes into 1 16-bit integer TempInt = opADCStatusH; TempInt <<= 8; TempInt = TempInt + opADCStatusL; do{ if (TempInt.B0) //Error occurred here!!!!! { //Something some...
by zhiyongwoo
07 Jun 2010 10:56
Forum: mikroC PRO for PIC General
Topic: Is Pointers BUGS in MikroC Pro 3.8???
Replies: 5
Views: 2182

Re: Is Pointers BUGS in MikroC Pro 3.8???

Hi Aleksandar, Many thanks for your quick help but I think it is very importance to put my case into your help file. There are plenty of people like me thinking pointer has difference bytes properties. I have spend 5 hours in finding where the problem and finally your help arrived. Now, everything j...
by zhiyongwoo
07 Jun 2010 07:33
Forum: mikroC PRO for PIC General
Topic: Is Pointers BUGS in MikroC Pro 3.8???
Replies: 5
Views: 2182

Re: Is Pointers BUGS in MikroC Pro 3.8???

Hi Mario, Thanks for your comment. I am sure this is not the case because the WriteValueL is a short (1 byte variable) but pointer is int variable. I have to use Int for pointer because I need to point to Bank 1 (0x0100 - 0x01FF) above to write 1 byte. My problem is it automatically write another by...
by zhiyongwoo
06 Jun 2010 22:33
Forum: mikroC PRO for PIC General
Topic: Is Pointers BUGS in MikroC Pro 3.8???
Replies: 5
Views: 2182

Is Pointers BUGS in MikroC Pro 3.8???

Hi, I am having a difficult in using pointer in MikroC Pro. Here is my situation: 1. I would like to give a specify address and ask the pointer to point to. 2. I want to put a new value into the pointed address. I have try to write some code on this but with unknown reason, it also write to other ad...
by zhiyongwoo
06 Jun 2010 00:28
Forum: mikroC PRO for PIC General
Topic: Pointer
Replies: 0
Views: 2484

Pointer

Hi Can anyone tell me how to add pointer into my watchdog list? I seem can not find my pointer and therefore I can not add it into my watchdog list. So, does it mean mikroC does not allow user to view pointer variable? If can, please show me how to declare my pointer so that I can add into my watchd...
by zhiyongwoo
05 Jun 2010 22:26
Forum: mikroC PRO for PIC General
Topic: Error message 166 313 Too many actual parameters
Replies: 1
Views: 3221

Re: Error message 166 313 Too many actual parameters

Sorry everyone, I have solved the problem.

It was because I didn't declare the function properly before my subroutine.

Go to advanced search