Hi Friends,
I want to run a loop(for..while...) for pre determined time in HI-TECH C.
For example,I want to run some while loop for 10mS.
How can I do This?
Thank in advance.
Search found 246 matches
- Tue Aug 13, 2013 8:05 pm
- Forum: Microcontrollers
- Topic: Run a Loop for specific time in HI-TECH C
- Replies: 5
- Views: 6812
- Tue Aug 13, 2013 7:51 pm
- Forum: Microcontrollers
- Topic: HI-TECH C "can't generate code for this expression" Error.
- Replies: 11
- Views: 11787
Re: HI-TECH C "can't generate code for this expression" Error.
This is my .C file
- Mon Aug 12, 2013 8:44 pm
- Forum: Microcontrollers
- Topic: HI-TECH C "can't generate code for this expression" Error.
- Replies: 11
- Views: 11787
Re: HI-TECH C "can't generate code for this expression" Error.
Friends, As Semiconductor said,I change Display() function and problem is solved. Thanks :) Now I can use data type int for arguments. This is modified code. void Display_Segments(int d0,int d1){ RA0=1; RA1=1; getDigit(d0); getDigit(d1); } void interrupt ISR(){ if(T0IF==1){ tmrofc++; } if(INTF==1){ ...
- Mon Aug 12, 2013 7:57 am
- Forum: Microcontrollers
- Topic: HI-TECH C "can't generate code for this expression" Error.
- Replies: 11
- Views: 11787
Re: HI-TECH C "can't generate code for this expression" Error.
Can't give argument type. I tried like this , void Display(float s){ unsigned char d0=0; unsigned char d1=0; d0=(int)s%10; d1=(int)(s*10)%10; RA0=1; RA1=1; getDigit(d0); getDigit(d1); } I relived, Error [987] C:\Users\Nandika\Desktop\PIC_Project\HC-SR04_Distance\HTC\main.c; 38.22 arguments redeclare...
- Sun Aug 11, 2013 11:56 pm
- Forum: Microcontrollers
- Topic: HI-TECH C "can't generate code for this expression" Error.
- Replies: 11
- Views: 11787
HI-TECH C "can't generate code for this expression" Error.
Hello Friends, I'm using HI-TECH C PIC10/12/16 MCUs version 9.81 in MPLAB IDE. I'm using PIC16F84A. In my coding has interrupt service routine like this. void interrupt ISR(){ if(T0IF==1){ tmrofc++; } if(INTF==1){ float s=0;//distance in m float ticks=0; float time=0; ticks=(float)((tmrofc*256)+TMR0...
- Sat Mar 16, 2013 8:31 pm
- Forum: Embedded Systems
- Topic: Digital Clock with only PIC16F628A
- Replies: 15
- Views: 19093
Re: Digital Clock with only PIC16F628A
Nice work Rksk...
- Wed Feb 27, 2013 6:08 pm
- Forum: Electronics & Electrical Engineering
- Topic: Residual Current of a BJT
- Replies: 4
- Views: 5829
Re: Residual Current of a BJT
>> >> Another problem in ICEV In this situation B-E junction become reverse bias. it is not as I could see, check and review it back. Anyway I'm not familiar with this particle, somebody experienced will answer your question. If 48h gone without a proper answer, you could answer it at stackexchange...
- Wed Feb 27, 2013 5:58 pm
- Forum: Electronics & Electrical Engineering
- Topic: Residual Current of a BJT
- Replies: 4
- Views: 5829
Re: Residual Current of a BJT
Thank Neo...
It's really useful link.
I'm trying to understand well.
It's really useful link.
I'm trying to understand well.
- Mon Feb 25, 2013 2:17 pm
- Forum: Electronics & Electrical Engineering
- Topic: Residual Current of a BJT
- Replies: 4
- Views: 5829
Residual Current of a BJT
Hello Friends, I did a practical for residual current of a BJT as procedure of guide book.But,I some things are hard to understand. We use a PNP Ge transistor.Because,A Si transiator has small residual current.therefore we cant measure it using normal multimeter or oscillescope. First,We measure E-C...
- Mon Feb 18, 2013 7:03 pm
- Forum: Embedded Systems
- Topic: What is the suitable compiler?
- Replies: 2
- Views: 3661
Re: What is the suitable compiler?
Thank you Neo,
I couldn't do it.because I were not set MPASM in properly.
Now it's OK.
I couldn't do it.because I were not set MPASM in properly.
Now it's OK.