Author |
Message |
Topic: Triggering an interrupt in firmware |
Battery David
Replies: 13
Views: 13231
|
Forum: General CCS C Discussion Posted: Tue May 13, 2014 10:21 am Subject: Triggering an interrupt in firmware |
Sadly, I'm using the internal oscillator. |
Topic: Triggering an interrupt in firmware |
Battery David
Replies: 13
Views: 13231
|
Forum: General CCS C Discussion Posted: Mon May 12, 2014 12:32 pm Subject: Triggering an interrupt in firmware |
This is something I have been wondering. I have a customer who wants tests for every possible thing and I have ISRs for things like oscillator failure. How do you test for something like that? I'll ju ... |
Topic: CCS support for 16f1613 - begins in 5.025... |
Battery David
Replies: 16
Views: 22916
|
Forum: General CCS C Discussion Posted: Thu Apr 03, 2014 10:19 am Subject: CCS support for 16f1613 - begins in 5.025... |
I just got an e-mail product brochure on the 16F1613. They say it has fault-detecting features.
It seems to be the best thing since (insert your favorite invention here) |
Topic: Problem with FLOAT & IF-ELSE LOOP |
Battery David
Replies: 4
Views: 9300
|
Forum: General CCS C Discussion Posted: Tue Mar 25, 2014 10:58 am Subject: Problem with FLOAT & IF-ELSE LOOP |
There's also a MISRA rule that you should never use '==' with floats. If you want to check if it's 5.0, use:
if(( voltsPreviousVal > 4.95 ) && (voltsPreviousVal < 5.05 ... |
Topic: identify colored spot in space - architecture |
Battery David
Replies: 15
Views: 19006
|
Forum: General CCS C Discussion Posted: Wed Sep 11, 2013 5:37 pm Subject: identify colored spot in space - architecture |
Hamamatsu makes a selection of RGB sensors that I have looked at before. Really, all I have done is read the data sheet and run some quick numbers to see if they would do what I wanted, they seem good ... |
Topic: byte? |
Battery David
Replies: 6
Views: 7940
|
Forum: General CCS C Discussion Posted: Tue Oct 23, 2012 12:24 pm Subject: byte? |
I was poked in the ribs by a "real" programmer once to get me to be explicit on every variable type. Since an 'int' could be different on different parts, I now always do full declarations:
... |
Topic: I2C problem: SDA and SCL Lines goes low |
Battery David
Replies: 18
Views: 27458
|
Forum: General CCS C Discussion Posted: Thu Oct 18, 2012 3:12 pm Subject: I2C problem: SDA and SCL Lines goes low |
I recently wrote I2C slave code and added the i2c_read(2) at the same place. I had to do a tech support request to CCS to get it worked out. It isn't in the manual yet, they said it would be in soon. |
Topic: Bad configuration bits |
Battery David
Replies: 4
Views: 5481
|
Forum: General CCS C Discussion Posted: Thu May 03, 2012 12:18 pm Subject: Bad configuration bits |
I found a problem with 4.132 and stepped back to 4.131. CCS told me they have fixed my issue in the next update. It didn't have to do with configuration bits but you need to let them know what you are ... |
Topic: if statement is not working! |
Battery David
Replies: 7
Views: 7642
|
Forum: General CCS C Discussion Posted: Thu May 03, 2012 12:15 pm Subject: if statement is not working! |
Where are the defn's for UART_BUFFER_RX2[x]? |
Topic: MPLAB-X |
Battery David
Replies: 18
Views: 24464
|
Forum: General CCS C Discussion Posted: Wed May 02, 2012 9:26 am Subject: MPLAB-X |
The version I used was 1.00.
I will watch for 1.20 and try it again.
Thank you for the comments. |
Topic: MPLAB-X |
Battery David
Replies: 18
Views: 24464
|
Forum: General CCS C Discussion Posted: Mon Apr 30, 2012 12:02 pm Subject: MPLAB-X |
jeremiah, I tried it a few months ago and it couldn't handle paths with spaces. Has that been resolved? |
Topic: Software UART - hex printing |
Battery David
Replies: 2
Views: 4057
|
Forum: General CCS C Discussion Posted: Fri Apr 20, 2012 2:57 pm Subject: Software UART - hex printing |
Please see this post first:
http://www.ccsinfo.com/forum/viewtopic.php?t=47549 |
Topic: ccs and MPlab |
Battery David
Replies: 9
Views: 10630
|
Forum: General CCS C Discussion Posted: Thu Apr 05, 2012 6:59 am Subject: ccs and MPlab |
I tried using MPLabX but, when I found out that it couldn't tolerate spaces in file names or directory paths, I went back to old-fashioned MPLab. This was a shock since spaces have been allowed since ... |
Topic: ccs and MPlab |
Battery David
Replies: 9
Views: 10630
|
Forum: General CCS C Discussion Posted: Tue Apr 03, 2012 8:05 am Subject: ccs and MPlab |
Nidal,
When I use MPLab with CCS I still use very old-school methods. My root.c file has this at the top:
#include <18F26K20.h>
#include "C:\_Data\PIC\PIC18F26K20_registers.h&q ... |
Topic: Gyro XV 3500CB angular rate sensor , i really need some help |
Battery David
Replies: 20
Views: 33995
|
Forum: General CCS C Discussion Posted: Tue Jan 31, 2012 8:14 am Subject: Gyro XV 3500CB angular rate sensor , i really need some help |
Did you know there's a web forum for the manufacturer of the module?
http://www.sureelectronics.net/forum/index.php |
|