Author |
Message |
Topic: 16F1825 - EUSART alternate pin selection |
meereck
Replies: 2
Views: 5082
|
Forum: General CCS C Discussion Posted: Wed Nov 09, 2011 3:22 am Subject: 16F1825 - EUSART alternate pin selection |
Thanks, it works. |
Topic: 16F1825 - EUSART alternate pin selection |
meereck
Replies: 2
Views: 5082
|
Forum: General CCS C Discussion Posted: Tue Nov 08, 2011 9:28 am Subject: 16F1825 - EUSART alternate pin selection |
Hello,
can anybody tell me how to switch the EUSART for alternate pins C4 and C5?
I have just tested that the basic "#use uart" sets it to A0 and A1 as default.
(which seems weird to me s ... |
Topic: #ifdef does not work |
meereck
Replies: 2
Views: 5066
|
Forum: General CCS C Discussion Posted: Tue Oct 11, 2011 6:18 am Subject: #ifdef does not work |
God, of course you are right.
I overlooked it.
Thanks |
Topic: #ifdef does not work |
meereck
Replies: 2
Views: 5066
|
Forum: General CCS C Discussion Posted: Tue Oct 11, 2011 6:07 am Subject: #ifdef does not work |
Hi,
I am struggling with a basic statement:
//#define USE_MID_VARS 1
int test()
{
#ifdef USE_MID_VARS
return 1;
#elif
return 2;
#endif
}
Throws &q ... |
Topic: How to recognize that CCS Compiler is used |
meereck
Replies: 5
Views: 6866
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2011 5:58 pm Subject: How to recognize that CCS Compiler is used |
I think he wants a way to make universal source code, so that he can
compile it with CCS or another compiler, and it will compile in either
compiler, without having to do any edits.
You are total ... |
Topic: How to recognize that CCS Compiler is used |
meereck
Replies: 5
Views: 6866
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2011 2:23 am Subject: How to recognize that CCS Compiler is used |
Hi all.
Is there any way how to generally recognize that the code is being compiled by the CCS compiler?
Such as
#if defined(CCS_C)
Apart from
#if defined(__PCM__) and others.
... |
Topic: Bootloader problem |
meereck
Replies: 1
Views: 3231
|
Forum: General CCS C Discussion Posted: Mon Feb 07, 2011 10:16 am Subject: Bootloader problem |
I have been using the MCHPFSUSB USB bootloader for 18F2455.
and I used the following snippet in the CCS source code:
// START OF bootloader definition
#define LOADER_END 0x7FF
#define LOADER_S ... |
Topic: Tinybootloader+PIC16F883 |
meereck
Replies: 2
Views: 6844
|
Forum: General CCS C Discussion Posted: Tue Jan 18, 2011 3:52 pm Subject: Tinybootloader+PIC16F883 |
oops, didnt realize that.
I have always been using 18F PICs, not 16F, so you got the point!
thanks
Meereck |
Topic: Tinybootloader+PIC16F883 |
meereck
Replies: 2
Views: 6844
|
Forum: General CCS C Discussion Posted: Tue Jan 18, 2011 9:50 am Subject: Tinybootloader+PIC16F883 |
I have been using the following syntax for tiny bootloader definition:
#define MAX_FLASH getenv("PROGRAM_MEMORY")
#define LOADER_SIZE 0xFF //tinybld size + a bit more (20 ... |
Topic: enum is weird |
meereck
Replies: 2
Views: 3572
|
Forum: General CCS C Discussion Posted: Thu Aug 05, 2010 7:31 am Subject: enum is weird |
Hi, thanks for a hint.
Yes, you are right, SLEEP_FULL is defined now in the device header file - 18F2420.h.
Cheers
Meereck |
Topic: enum is weird |
meereck
Replies: 2
Views: 3572
|
Forum: General CCS C Discussion Posted: Tue Aug 03, 2010 6:47 am Subject: enum is weird |
The following code worked well with older v4 compilers:
typedef enum {SLEEP_FULL,SLEEP_PING} DEVICE_STATE;
DEVICE_STATE DeviceState=SLEEP_FULL;
it fails during compilation in v4.108 w ... |
Topic: Rising and falling Interrupt |
meereck
Replies: 5
Views: 5984
|
Forum: General CCS C Discussion Posted: Sun Jun 06, 2010 12:50 pm Subject: Rising and falling Interrupt |
You can use PORTB interrupt (int_rb) for detecting level changes.
Most PICs support that interrupt. |
Topic: Switch statement going to wrong case... |
meereck
Replies: 29
Views: 23400
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 9:37 am Subject: Switch statement going to wrong case... |
// OT START
// I don't think that posting a part of .lst file takes too much time and effort.
// The knowledge of potential compiler bug might be useful for all of us including CCS.
// OT END |
Topic: PIC16F887 and steering mode |
meereck
Replies: 19
Views: 30582
|
Forum: General CCS C Discussion Posted: Tue May 18, 2010 2:05 am Subject: PIC16F887 and steering mode |
thanks a lot,
I am gonna test it out during the weekend.
Cheers
Meereck |
Topic: PIC16F887 and steering mode |
meereck
Replies: 19
Views: 30582
|
Forum: General CCS C Discussion Posted: Sat May 15, 2010 3:49 pm Subject: PIC16F887 and steering mode |
I am writing a test program for 16F1826.
I might have misunderstood something but the device header file does not contain any definitions for CCP_PULSE_STEERING_A or similar keywords.
I don't think ... |
|