Author |
Message |
Topic: Bluetooth module(s) |
kender
Replies: 2
Views: 7826
|
Forum: General CCS C Discussion Posted: Sun Jan 10, 2016 3:13 pm Subject: Re: Bluetooth module(s) |
Anybody have experience of BT modules with CCS, especially the new RN4020?
I do now [16 months later].
I can't recommend RN4020, folks... At least not with its current 1.23 firmware (released in ... |
Topic: Penalty for accessing constant strings stored in ROM |
kender
Replies: 1
Views: 7101
|
Forum: General CCS C Discussion Posted: Sat Jan 09, 2016 2:45 am Subject: Penalty for accessing constant strings stored in ROM |
Folks,
I've noticed that standard string functions ( strncmp(), for example) take longer to execute when one of the parameters is a constant string stored in Flash. I have the pass strings in RAM ... |
Topic: SIOW: how to send an ASCII string terminated with a CR ? |
kender
Replies: 1
Views: 9804
|
Forum: General CCS C Discussion Posted: Sun Nov 08, 2015 11:45 pm Subject: SIOW: how to send an ASCII string terminated with a CR ? |
I'm a big fan of our terminal program SIOW. But I can't seem to figure out how to send an ASCII string terminated with carriage return (CR). When I type 24 24 24 into Hex send and press enter, the C ... |
Topic: Timer0 doesn’t seem to count external pulses |
kender
Replies: 2
Views: 6132
|
Forum: General CCS C Discussion Posted: Mon Jul 27, 2015 2:28 pm Subject: Timer0 doesn’t seem to count external pulses |
Nevermind. It was a hardware problem. Nothing wrong with my timer code.
You, folks, are always an inspiration. |
Topic: Timer0 doesn’t seem to count external pulses |
kender
Replies: 2
Views: 6132
|
Forum: General CCS C Discussion Posted: Mon Jul 27, 2015 2:19 pm Subject: Timer0 doesn’t seem to count external pulses |
Folks,
I’m trying to use the Timer0 as a tachometer to keep track of a fan. I can see the square wave on the RA4/T0CKI pin with the oscilloscope. But the counter doesn’t seem to be incrementi ... |
Topic: Does USB 2.0 require termination resistors? |
kender
Replies: 5
Views: 20144
|
Forum: General CCS C Discussion Posted: Mon Sep 01, 2014 12:13 am Subject: Does USB 2.0 require termination resistors? |
Folks,
Does USB 2.0 (and PIC18F4550 in particular) require termination resistors? Here's what I've found so far.
USB 1.1 does require terminating resistors (like the 27R in
Any suggestion, in ... |
Topic: Problem between function pointers and [alleged] recursion. |
kender
Replies: 4
Views: 11519
|
Forum: General CCS C Discussion Posted: Thu Dec 26, 2013 4:45 pm Subject: Problem between function pointers and [alleged] recursion. |
As you probably already know,
giving a different function type to the second level functions by adding a dummy argument is a workaround for the
present example.
Yes, I have thought about dummy pa ... |
Topic: Problem between function pointers and [alleged] recursion. |
kender
Replies: 4
Views: 11519
|
Forum: General CCS C Discussion Posted: Wed Dec 25, 2013 8:51 pm Subject: Problem between function pointers and [alleged] recursion. |
Colleagues,
Here’s an example, where compiler suspects that the there may be recursion and generates an error “Recursion not permitted (function_name)”. But, the recursion doesn’t actually ... |
Topic: book for study |
kender
Replies: 7
Views: 11421
|
Forum: General CCS C Discussion Posted: Wed Dec 25, 2013 7:57 pm Subject: book for study |
I'll second Embedded C Programming and the Microchip PIC by Barnett, Cox and O'Cull |
Topic: was “Number of bits out of range” problem fixed? |
kender
Replies: 5
Views: 11328
|
Forum: General CCS C Discussion Posted: Mon Jul 01, 2013 9:56 pm Subject: was “Number of bits out of range” problem fixed? |
It had compiled with the change, which you've proposed.
At first, I thought that this change would undermine this use case. The order of the bit fields should corresponds to that in a register of ... |
Topic: was “Number of bits out of range” problem fixed? |
kender
Replies: 5
Views: 11328
|
Forum: General CCS C Discussion Posted: Mon Jul 01, 2013 6:15 pm Subject: was “Number of bits out of range” problem fixed? |
Colleagues,
This compiler error (or lack of feature) has come up in the past. For example in typedef union // AD7794 status register (read only) bit fields. See Table 16 in & ... |
Topic: Tap sensing with BMA180 accelerometer |
kender
Replies: 5
Views: 11137
|
Forum: General CCS C Discussion Posted: Wed Jul 04, 2012 8:00 pm Subject: Tap sensing with BMA180 accelerometer |
Ttelmah, you are spot-on. By default, most interrupts are enabled including new_data_int (aka conversion_complete). When I've disabled them and re-enabled only the tap interrupt, all worked as exp ... |
Topic: Tap sensing with BMA180 accelerometer |
kender
Replies: 5
Views: 11137
|
Forum: General CCS C Discussion Posted: Fri Jun 29, 2012 8:18 pm Subject: Tap sensing with BMA180 accelerometer |
Obvious response to your comments: Please don't assume that I'm stupid. Do me such a favor.
... and you're always welcome to post something that is not completely useless. That is, less useless th ... |
Topic: Tap sensing with BMA180 accelerometer |
kender
Replies: 5
Views: 11137
|
Forum: General CCS C Discussion Posted: Fri Jun 29, 2012 10:47 am Subject: Tap sensing with BMA180 accelerometer |
Folks,
By any chance, does anyone have a code snippet, which would show how to initialize BMA180 accelerometer for tap sensing? Doesn't matter whether it's SPI or I2C, I should be able to adapt it ... |
Topic: initializing const array of structs |
kender
Replies: 1
Views: 4130
|
Forum: General CCS C Discussion Posted: Wed May 23, 2012 5:53 pm Subject: initializing const array of structs |
I want to have an array of structs. It would be nice if I could make it a const, but that not required. I think the following initialization should work. At least it compiles.
struct
{
... |
|