Author |
Message |
Topic: Split Float to 2 INT |
vasiliok
Replies: 11
Views: 31548
|
Forum: General CCS C Discussion Posted: Thu Mar 31, 2022 1:11 am Subject: Split Float to 2 INT |
Thanks for reply Ttelmah and PCM programmer!
You forced me to read and think!
Corrected my code. Getting integer part and 1 digit of fractional part correctly now.
float intpart;
signed in ... |
Topic: Split Float to 2 INT |
vasiliok
Replies: 11
Views: 31548
|
Forum: General CCS C Discussion Posted: Wed Mar 30, 2022 11:21 pm Subject: Split Float to 2 INT |
Hello!
Could you please tell me what I'm doing wrong?
float intpart;
unsigned int16 T1_trupmn;
signed int16 T1_sveikoji;
float DS_T1;
DS_T1 = -10.96; // Temperature
T1_trupmn=& ... |
Topic: interrupts disabled during call @ADDFF |
vasiliok
Replies: 6
Views: 29084
|
Forum: General CCS C Discussion Posted: Wed Feb 23, 2022 11:13 am Subject: interrupts disabled during call @ADDFF |
Yes. The 'FF' here is float. So it is a floating point addition used both
inside and outside the interrupt....
Thanx for explanation! |
Topic: interrupts disabled during call @ADDFF |
vasiliok
Replies: 6
Views: 29084
|
Forum: General CCS C Discussion Posted: Wed Feb 23, 2022 10:52 am Subject: interrupts disabled during call @ADDFF |
I've got such an error when used "a = a+0.5" in the interrupt.
Probably using float variable in the interrupt is not a good idea
CCS 5.081 version. |
Topic: ADS1115 CAN16 bits driver - delay !? |
vasiliok
Replies: 9
Views: 35764
|
Forum: General CCS C Discussion Posted: Wed Jun 16, 2021 12:30 am Subject: ADS1115 CAN16 bits driver - delay !? |
I have completed a bit the code of topic starter comrade joseph20480
#define address1 0x90 // first ADC module
#define address2 0x92 // second ADC module (if you have one?)
#def ... |
Topic: Using UART for SDI-12 interface |
vasiliok
Replies: 6
Views: 28411
|
Forum: General CCS C Discussion Posted: Thu Jun 10, 2021 5:36 am Subject: Using UART for SDI-12 interface |
Yes. Rx and Tx connected together via opto coupler circuit.
You receive what you send + you receive sensor reply. |
Topic: Using UART for SDI-12 interface |
vasiliok
Replies: 6
Views: 28411
|
Forum: General CCS C Discussion Posted: Wed Jun 09, 2021 11:21 pm Subject: Using UART for SDI-12 interface |
Hello!
I've tried software UART and it works perfectly!
But I use Rx line and interrupt from hardware UART (to get Rx interrupt working), while Tx line is from software UART
Code piece in .h ... |
Topic: Visual Studio Code and the CCS compiler |
vasiliok
Replies: 15
Views: 26757
|
Forum: General CCS C Discussion Posted: Tue May 25, 2021 7:14 am Subject: Visual Studio Code and the CCS compiler |
jeremiah, Ttelmah, thanks!
Yes, about VS Code! |
Topic: Visual Studio Code and the CCS compiler |
vasiliok
Replies: 15
Views: 26757
|
Forum: General CCS C Discussion Posted: Fri May 21, 2021 4:41 am Subject: Visual Studio Code and the CCS compiler |
Visual Studio Code doesn't have a plugin for PICC CCS.
There should be the way to make VSC run pcwhd compiler (aka build project) with args to compile exact file but I can't find how to do this :c ... |
Topic: RC522 RFID module SPI |
vasiliok
Replies: 68
Views: 266165
|
Forum: General CCS C Discussion Posted: Tue May 11, 2021 9:35 am Subject: RC522 RFID module SPI |
Thanks for reply and good ideas!
I think what happens is reading the poll, clears the bit, and it then takes a
'scan time' to re-trigger.
Personally if I want to find a tag is present, I always ... |
Topic: RC522 RFID module SPI |
vasiliok
Replies: 68
Views: 266165
|
Forum: General CCS C Discussion Posted: Mon May 10, 2021 8:24 am Subject: RC522 RFID module SPI |
Ttelmah, ok! |
Topic: RC522 RFID module SPI |
vasiliok
Replies: 68
Views: 266165
|
Forum: General CCS C Discussion Posted: Mon May 10, 2021 7:32 am Subject: RC522 RFID module SPI |
I have an interesting situation.
When I continiously reading RFID TAG it reads successfully every second time.
Anyone faced the same thing?
Or your reader reads TAG every time? Sure if TAG is near ... |
Topic: Quick and Simple RS232 string values parser 'El Parser' |
vasiliok
Replies: 1
Views: 29081
|
Forum: Code Library Posted: Fri Nov 10, 2017 2:06 am Subject: Quick and Simple RS232 string values parser 'El Parser' |
Hi All!
There is a great need to transfer values from the PC application to the microcontroller using the RS232 interface in a clear and understandable text format. Something remotely similar to JS ... |
Topic: Getting PICkit 3 working with CCS IDE |
vasiliok
Replies: 1
Views: 35781
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Thu Oct 19, 2017 6:13 am Subject: Getting PICkit 3 working with CCS IDE |
Hello!
It was hard :-) Spent some time to figure out how to configure.
You need to go to Options > IDE > Tools and put new line there. Check the box and add:
Name: PicKit3 (whatever, yo ... |
Topic: NXP's PCA9685 driver |
vasiliok
Replies: 15
Views: 139690
|
Forum: Code Library Posted: Thu Oct 05, 2017 5:32 am Subject: NXP's PCA9685 driver |
Thanx a lot, dezso!
Your code works perfectly! |
|