Author |
Message |
Topic: int to float |
kontakt
Replies: 3
Views: 5202
|
Forum: General CCS C Discussion Posted: Fri Jul 13, 2012 1:03 am Subject: int to float |
Thank you, that was my first idea, but I can not believe that there is not better/nicer sloution |
Topic: int to float |
kontakt
Replies: 3
Views: 5202
|
Forum: General CCS C Discussion Posted: Thu Jul 12, 2012 10:14 am Subject: int to float |
How can I make a float number from to integer:
float val;
int val1=12, val2=3;
I would like to make: val=12.3 |
Topic: CAN-bus receive problem with PIC18F66K80 |
kontakt
Replies: 7
Views: 18286
|
Forum: General CCS C Discussion Posted: Mon Jun 18, 2012 4:10 am Subject: CAN-bus receive problem with PIC18F66K80 |
I setted up the loopback mode and it works fine, that is why I set back to normal mode and tried to send a data. I can measure on the Tx line this message but it can I measure on the Rx pin also. Is i ... |
Topic: CAN-bus receive problem with PIC18F66K80 |
kontakt
Replies: 7
Views: 18286
|
Forum: General CCS C Discussion Posted: Fri Jun 15, 2012 1:04 am Subject: CAN-bus receive problem with PIC18F66K80 |
I found something:
The can_putd() had a wrong setting, because the
int1 tx_ext=0;
That is why it sends message with standard ID. If it is TRUE I can receive the message.
The new question is ... |
Topic: CAN-bus receive problem with PIC18F66K80 |
kontakt
Replies: 7
Views: 18286
|
Forum: General CCS C Discussion Posted: Thu Jun 14, 2012 2:25 am Subject: CAN-bus receive problem with PIC18F66K80 |
I would like to use CAN-bus with PIC18F66K80. I turned on the loopback mode but it does not receive anything. I use external 20MHz resonator. The only modify is the can_set_baud to 500kbps on the can- ... |
Topic: Dallas DS18B20, 1 wire bus, +/-, multi device, Light codes. |
kontakt
Replies: 12
Views: 113654
|
Forum: Code Library Posted: Thu Jan 27, 2011 8:21 am Subject: Dallas DS18B20, 1 wire bus, +/-, multi device, Light codes. |
The first problem is ok, i had to write through the int8 FoundROM[9][8]; to int8 FoundROM[32][8]; because i have 32 sensors. It works fine up to 27 sensors. I tried to get out some sensors and connect ... |
Topic: Dallas DS18B20, 1 wire bus, +/-, multi device, Light codes. |
kontakt
Replies: 12
Views: 113654
|
Forum: Code Library Posted: Thu Jan 27, 2011 7:58 am Subject: Lot of DS18 sensor |
Hello,
I tried to use this TempLogger code and it works up to 8 sensors. When I connected 22 sensors (DS18B20 each) it saw them but from 9. sensor it can not write the RomCode and its temp value. I ... |
|