Author |
Message |
Topic: return to start of main() from ISR |
eng.alamin
Replies: 2
Views: 3829
|
Forum: General CCS C Discussion Posted: Mon Aug 30, 2010 5:01 pm Subject: return to start of main() from ISR |
Hello Guys
I would like to know is it possible to return from interrupt routine directly to the head of the main() function (not to the place where the interrupt occurred).
For example I wrote ... |
Topic: problem with( CONST float )declaration + KALMAN filter code |
eng.alamin
Replies: 2
Views: 5458
|
Forum: General CCS C Discussion Posted: Sun Nov 29, 2009 3:33 pm Subject: problem with( CONST float )declaration + KALMAN filter code |
thank you Sir |
Topic: problem with( CONST float )declaration + KALMAN filter code |
eng.alamin
Replies: 2
Views: 5458
|
Forum: General CCS C Discussion Posted: Sun Nov 29, 2009 2:20 pm Subject: problem with( CONST float )declaration + KALMAN filter code |
Hello
I have this IMU driver I wanted to implement in CCS but a list of
error 48 "Expecting ( "
error 43 : " Expecting a declaration"
Error 27 : "Expression must ... |
Topic: Driver file mmcdos.c and how to write in existing file |
eng.alamin
Replies: 0
Views: 2508
|
Forum: General CCS C Discussion Posted: Fri Dec 05, 2008 4:47 pm Subject: Driver file mmcdos.c and how to write in existing file |
hello guys
I am using MMCDOS.C driver to read and write in sd card.
My sd card is 256 MB FAT Format.
I stored text file named GPS.TXT.
Fortunately I successfully can open this file and read i ... |
Topic: pic18f4550 code memory problem |
eng.alamin
Replies: 2
Views: 4353
|
Forum: General CCS C Discussion Posted: Mon Oct 27, 2008 3:18 pm Subject: pic18f4550 code memory problem |
thanx man u allways there when i need you thank you i just download winpic and it worked |
Topic: pic18f4550 code memory problem |
eng.alamin
Replies: 2
Views: 4353
|
Forum: General CCS C Discussion Posted: Mon Oct 27, 2008 2:01 pm Subject: pic18f4550 code memory problem |
hello
I am using ic-prog to program pic18f4550 but the problem is it only load 1000 address of my code while its supposed to be 3FF8.
I don't know what is problem.
please help |
Topic: GPS coordinate to Google earth coordinate |
eng.alamin
Replies: 3
Views: 5830
|
Forum: General CCS C Discussion Posted: Wed Oct 08, 2008 12:02 pm Subject: GPS coordinate to Google earth coordinate |
Well I'll try to make myself clear
I have float lat = 2514.2388 ;
I want x = 25 ;
y = 14.2388 ;
I try this x = (int) lat /100
to make x = 25 ;
but it not ... |
Topic: GPS coordinate to Google earth coordinate |
eng.alamin
Replies: 3
Views: 5830
|
Forum: General CCS C Discussion Posted: Wed Oct 08, 2008 10:57 am Subject: GPS coordinate to Google earth coordinate |
Hello, when I am using mplab C18 I use this method to convert latitude and longitude value from GPS coordinate to google earth coordinate:
float gpstogoogle (float gps)
{
int de ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Wed Sep 10, 2008 5:37 am Subject: problem with pic18f4550 in mathematics {solved} |
Try one simple change. Instead of '%f' for the float output, use '%7.2f'. There was a fault with some compilers at about this time, where if you used %f, without any 'size' data, it gave a screwy outp ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Tue Sep 09, 2008 5:41 pm Subject: problem with pic18f4550 in mathematics {solved} |
Identation was cleaned up a bit, but could be better.
I tried the program in v4.077 and got the following output:$ 2447.2073 2447.20 NThis is the expected output.
What is the version number o ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Tue Sep 09, 2008 4:43 pm Subject: problem with pic18f4550 in mathematics {solved} |
will will will this is where iam i guess there is some improvement
this is my code :
this is experimentally code only
string
this is the code
#include <18f4550.h>
# ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Tue Sep 09, 2008 2:41 pm Subject: problem with pic18f4550 in mathematics {solved} |
hello sir
this is my code after some modification
but output is
0.00000 N
this is code
#include <18f4550.h>
#include <stdlib.h>
#include <MATH.H>
#fuses HS,NOWDT, ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Tue Sep 09, 2008 2:14 pm Subject: problem with pic18f4550 in mathematics {solved} |
I could be wrong but:-
All though your code needs alot of reworking I think this is your initial problem, which you seem to have not fixed and carried over to your new code :-
"lon = buffer ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Mon Sep 08, 2008 6:48 pm Subject: problem with pic18f4550 in mathematics {solved} |
if you can make it in one line it will be cool
thanks for this method (bufferYou didn't use it or the switch statement would have been replaced by one line...
yes sir it will decrease ... |
Topic: problem with pic18f4550 in mathematics {solved} |
eng.alamin
Replies: 24
Views: 20887
|
Forum: General CCS C Discussion Posted: Mon Sep 08, 2008 6:15 pm Subject: problem with pic18f4550 in mathematics {solved} |
will thanks for your words i guess it's hard to learn something this days without get some humiliation .
i just moved from picbasic pro to pic c without any proper education
that why i have thos ... |
|