CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 5 matches
CCS Forum Index
Author Message
  Topic: I2C Slave SDA pulled low after writing to SSPBUF
dtemplar

Replies: 1
Views: 5615

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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!
Razz
  Topic: Why does the compiler insert a NOP at the beginning of a fcn
dtemplar

Replies: 3
Views: 12989

PostForum: 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
Rolling Eyes

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 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group