Author |
Message |
Topic: getc VS fgetc and putc VS fputc |
Kimi
Replies: 2
Views: 6076
|
Forum: General CCS C Discussion Posted: Fri Feb 25, 2005 9:16 am Subject: getc VS fgetc and putc VS fputc |
Hello
I have just finished modifying the code. just wanted to know if somebofy experienced a damatically decresed of code. I just earn only 0.5K...
It's not too much, but it's something.
Bye
... |
Topic: getc VS fgetc and putc VS fputc |
Kimi
Replies: 2
Views: 6076
|
Forum: General CCS C Discussion Posted: Fri Feb 25, 2005 3:41 am Subject: getc VS fgetc and putc VS fputc |
Hello...
In my program I have two serial ports, one hardware and the other one software. I'm using fputc, fgetc, fprintf and Streams to use both serial ports. Does anybody know if the code size usi ... |
Topic: Distance between points |
Kimi
Replies: 4
Views: 7424
|
Forum: General CCS C Discussion Posted: Thu Feb 24, 2005 5:02 am Subject: Distance between points |
Wouw! Yesterday I was trying to find a relationship between sides of the trieangle, but never take in consideration the Area. Thanks very much!
I will test it today!
Thanks!!!
Kimi |
Topic: Distance between points |
Kimi
Replies: 4
Views: 7424
|
Forum: General CCS C Discussion Posted: Wed Feb 23, 2005 11:19 am Subject: Distance between points |
Hello
I have 3 points with 3 coordinates each one (X,Y,Z). This coordinates are float points number.
Suppose P1, P2, and P3. I need to calculate the ortogonal distance (the shortest distance) bet ... |
Topic: Data Type Conversion |
Kimi
Replies: 3
Views: 7597
|
Forum: General CCS C Discussion Posted: Sat Feb 19, 2005 5:34 am Subject: Data Type Conversion |
It's difficult to explain the main reason, as English is not my native language...but one of the most important reasons is that a binary search is faster! |
Topic: Searching... Binary Search |
Kimi
Replies: 4
Views: 7946
|
Forum: General CCS C Discussion Posted: Sat Feb 19, 2005 2:53 am Subject: Searching... Binary Search |
but it's not working...don't know why... if somebody has a code...or and idea...please post it!
Thanks |
Topic: Searching... Binary Search |
Kimi
Replies: 4
Views: 7946
|
Forum: General CCS C Discussion Posted: Sat Feb 19, 2005 12:06 am Subject: Searching... Binary Search |
Hello... how are you
I have a litlle listo of elemtents stored in a external ram....lets say 26000 floatant numbers... (and I really have this number...jajaja). Also I have an index that sort them ... |
Topic: Data Type Conversion |
Kimi
Replies: 3
Views: 7597
|
Forum: General CCS C Discussion Posted: Fri Feb 18, 2005 10:14 am Subject: Data Type Conversion |
Hello
I need tomake a function that takes a float or a int32, and descompose it in 4 bytes.
And then another one, that takes 4 bytes and make the 32bits variable.
How can I do this?
I tried ... |
Topic: Atmel Dataflash |
Kimi
Replies: 10
Views: 16424
|
Forum: General CCS C Discussion Posted: Thu Feb 10, 2005 4:59 am Subject: Atmel Dataflash |
Well.... I have a 74LS245.. me be it's a good option to make the converter. Which IC do you use?. My dataflash doesn't have Ready/busy Pin...
I was thinking about doing this..
(SO) converter 3. ... |
Topic: Atmel Dataflash |
Kimi
Replies: 10
Views: 16424
|
Forum: General CCS C Discussion Posted: Wed Feb 09, 2005 8:52 pm Subject: Atmel Dataflash |
When trying to use the HArdware SPI I cannot even read the status byte of the dataflash...
Up to now, the software version is working more than the Hardware |
Topic: Atmel Dataflash |
Kimi
Replies: 10
Views: 16424
|
Forum: General CCS C Discussion Posted: Wed Feb 09, 2005 4:59 pm Subject: Atmel Dataflash |
Thanks
I didn't know that I have to put the SCK in high or low before setting CS. As the Status Read function is working, the rest fo the code should work okey.
PICC Version is 3.216, the PIC18F87 ... |
Topic: Atmel Dataflash |
Kimi
Replies: 10
Views: 16424
|
Forum: General CCS C Discussion Posted: Wed Feb 09, 2005 2:52 pm Subject: Atmel Dataflash |
I changed my main with this little main...
for (counter = 0; counter <=3; counter++) {
data = ReadDataFlashStatus();
fprintf (PC," %X ",data);
} //Receive 4 sattus bytes... ... |
Topic: Atmel Dataflash |
Kimi
Replies: 10
Views: 16424
|
Forum: General CCS C Discussion Posted: Wed Feb 09, 2005 12:58 pm Subject: Atmel Dataflash |
void wrSPI(unsigned int8 Shift)
{
unsigned int8 BitCnt = 8;
do
{
output_low(SCK);
delay_ms(2);
if(Shift & 0x80)
output_high(SDO);
else
output_l ... |
Topic: Atmel Dataflash |
Kimi
Replies: 10
Views: 16424
|
Forum: General CCS C Discussion Posted: Wed Feb 09, 2005 11:59 am Subject: Atmel Dataflash |
Hello.. I used some of the codes posted here for driving a 4Mbit dataflash. I can get the Status byte (so the SPI communication is good, and the Dataflash response). But when I tried to write or read ... |
Topic: Float Precision |
Kimi
Replies: 4
Views: 7529
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2005 1:44 pm Subject: Float Precision |
Thanks
Is there any usefull way to display the 4 bytes that compose the float into screen... first to check the operation, second to be able to send a float though the serial or spi port.
Thanks ... |
|