Author |
Message |
Topic: I2C Slave SDA pulled low after writing to SSPBUF |
dtemplar
Replies: 1
Views: 5615
|
Forum: General CCS C Discussion Posted: Thu Jun 30, 2005 4:43 am Subject: I2C Slave SDA pulled low after writing to SSPBUF |
Hello Guys,
I am trying to make a library that would require me to implement I2C slave on the PIC16F876A without using the CCS-C functions (since these functions will be used on the main program)
... |
Topic: Help! "Too many elements in an ENUM" |
dtemplar
Replies: 3
Views: 12152
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2004 11:06 pm Subject: Help! "Too many elements in an ENUM" |
This is actually a code from a program designed for MCC18 compiler.
Here's the last thing i tried, i removed the comma after the last element and replaced the assigned 16-bit constants (0xFC17, 0xFE ... |
Topic: Help! "Too many elements in an ENUM" |
dtemplar
Replies: 3
Views: 12152
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2004 9:20 pm Subject: Help! "Too many elements in an ENUM" |
enum TIMER_CONSTANTS
{
TMR1_200us = 0xFC17,
TMR1_100us = 0xFE0B,
FRC_FAST = TMR1_100us,
FRC_SUM = 1,
TMR0_5mSEC = 0xF3C9,
GEN_1 ... |
Topic: Why does the compiler insert a NOP at the beginning of a fcn |
dtemplar
Replies: 3
Views: 12989
|
Forum: General CCS C Discussion Posted: Mon Feb 16, 2004 9:06 pm Subject: Why does the compiler insert a NOP at the beginning of a fcn |
Thanks guys!
|
Topic: Why does the compiler insert a NOP at the beginning of a fcn |
dtemplar
Replies: 3
Views: 12989
|
Forum: General CCS C Discussion Posted: Mon Feb 16, 2004 4:31 am Subject: Why does the compiler insert a NOP at the beginning of a fcn |
I have my code somewhat like this:
#org 508, 520 auto=on
void _fcn()
{
#asm
code1
code2
...
#asm
}
and I get this disassembly:
0x508 NOP
0x50A code1
0x50 ... |
|