Author |
Message |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Mon Dec 22, 2014 8:18 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
Thank you for help, problem solved |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2014 11:14 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
You have a valid point but it does not explain why UART is not getting set properly. This was working with 4.057 .....
BTW what happened with strcpy in between 4.057 and 5.xxx ? I dont see it anym ... |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2014 10:44 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
Just to clarify, I understand RX is rate coming from other device, but I am setting baud on PIC to 19200 and I do not see it happening. Same code works compiled with 4.057 but not with 5.xxx Something ... |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2014 6:52 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
Big pardon.... here it is "stripped":
// *********************************************************************************************************//
// This is RX80M Project by Vadim ... |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2014 5:54 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
Thank you for response,
main.h :
#define DEV_PIC18F26K20
#include <18F26K20.h>
#device adc=8
#fuses INTRC_IO,NOWDT,NOPROTECT,PUT,NOCPD,NOLVP,NOMCLR,BROWNOUT
#use delay(clock=7995 ... |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2014 2:45 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
I'll bet your clock isn't getting set correctly and that's the reason why you're receiving garbled characters from the PIC and that the PIC's RDA interrupt seems to have stopped working.
What is th ... |
Topic: After upgrading to 5.019 RDA Interrupt no longer works |
vafonkin
Replies: 15
Views: 26559
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2014 1:05 pm Subject: After upgrading to 5.019 RDA Interrupt no longer works |
I recently upgraded to 5.019 and I am experiencing weird issue - with no code changes made and everything working and compiles with 4.x ccs-c compiler, RDA interrupt no longer works at all.
Any ide ... |
Topic: Problems with math calculations |
vafonkin
Replies: 6
Views: 11890
|
Forum: General CCS C Discussion Posted: Mon Apr 16, 2012 5:12 am Subject: Problems with math calculations |
Can anyone tell me why following code does not calculate properly? Result should be 711, when CCS gives 938. MPLab C30, when using long double gives correct result for the same code:
#define TO_R ... |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2012 1:06 pm Subject: tan() function results on different MCUs |
I want to ask for a little help from community - I do not have a lot of processors available but want to get a test results for the following function for different PICs:
tan()
atan()
atan2()
... |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2012 6:39 am Subject: Intersection of two paths given start points and bearings? |
I believe there are some approaches around:
1. Cordic
2. Lookup tables
3. Some other high math functions
It is probably possible to find intersection by solving simple line formula:
ax + by + ... |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2012 6:01 am Subject: Intersection of two paths given start points and bearings? |
It appears triginimetric functions provide incorrect results starting with 4th decimal point. It cannot be used for navigation formula due to lack of precision.
.
I need to calculate intersection po ... |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2012 2:28 pm Subject: Intersection of two paths given start points and bearings? |
try converting your coordinates in UTM, then it's straightforward and easy even for a 12f to do the mat;
UTM coordinates are in cm, so your 10km would be expressed in 1.000.000cm domain, always pos ... |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2012 8:49 am Subject: Intersection of two paths given start points and bearings? |
16F886 ... obviously not enough of power.
Will move to new processor and test it out there.
Thanks a lot!
73!
KB1RLI |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2012 7:40 am Subject: Intersection of two paths given start points and bearings? |
Which PIC MCU processor do you use? |
Topic: Intersection of two paths given start points and bearings? |
vafonkin
Replies: 16
Views: 30233
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2012 6:15 am Subject: Intersection of two paths given start points and bearings? |
10 meters for required accuracy would be fine. I cannot compile/get valid results from following foxLocation function. It implements Haversine and PIC MCU appears cannot handle it. I tried to split co ... |
|