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 9 matches
CCS Forum Index
Author Message
  Topic: # of stack levels for 16F877A
jallum

Replies: 2
Views: 5214

PostForum: General CCS C Discussion   Posted: Mon Aug 18, 2008 10:25 am   Subject: # of stack levels for 16F877A
Thanks, I'm glad someone was able to duplicate what I was seeing.

My interrupt functions do call built in functions, which would explain the need for 2 stack levels by the interrupt functions.

I ...
  Topic: # of stack levels for 16F877A
jallum

Replies: 2
Views: 5214

PostForum: General CCS C Discussion   Posted: Fri Aug 15, 2008 11:59 am   Subject: # of stack levels for 16F877A
I've got an unusual result in my statistics output file:

ROM used: 2585 (32%)
2982 (36%) including unused fragments

2 Average locations per line
6 Average locatio ...
  Topic: Master and slave I2C implemented on one PIC
jallum

Replies: 2
Views: 72117

PostForum: Code Library   Posted: Thu Mar 06, 2008 1:33 pm   Subject: Master and slave I2C implemented on one PIC
If you are trying to set up your PIC as master of an I2C bus using SW implementation, and slave of an altogether different bus (or even the same bus I suppose) using the HW SSP module, here is some co ...
  Topic: i2c_isr_state() return value not incrementing?
jallum

Replies: 9
Views: 11420

PostForum: General CCS C Discussion   Posted: Thu Mar 06, 2008 12:58 pm   Subject: i2c_isr_state() return value not incrementing?
swapping the order of the two #use i2c statements seems to do the trick and solve all my problems.

I believe i2c_isr_state() was somehow getting the state from the master i2c which was always 0, be ...
  Topic: i2c_isr_state() return value not incrementing?
jallum

Replies: 9
Views: 11420

PostForum: General CCS C Discussion   Posted: Thu Mar 06, 2008 11:21 am   Subject: i2c_isr_state() return value not incrementing?
First thing I tried may shed some light:

Uncommenting the #use i2c(master) and compiling creates a very different hex file from the above source.

But uncommenting the #use i2c(master) and placin ...
  Topic: i2c_isr_state() return value not incrementing?
jallum

Replies: 9
Views: 11420

PostForum: General CCS C Discussion   Posted: Thu Mar 06, 2008 11:10 am   Subject: i2c_isr_state() return value not incrementing?
Thanks PCM Programmer and Ttelmah for the ideas. It appears that whether I have "slow" or "stream=I2CS" in the #use i2c for the slave, the compiler generates the same hex file (I'm ...
  Topic: i2c_isr_state() return value not incrementing?
jallum

Replies: 9
Views: 11420

PostForum: General CCS C Discussion   Posted: Wed Mar 05, 2008 7:56 pm   Subject: i2c_isr_state() return value not incrementing?
http://www.imagehosting.com/out.php/i1615920_print000.png

There's an example of what I'm seeing on the scope. Note the address shown on the scope, "30" is the 7 bit address display. If I ...
  Topic: i2c_isr_state() return value not incrementing?
jallum

Replies: 9
Views: 11420

PostForum: General CCS C Discussion   Posted: Wed Mar 05, 2008 7:27 pm   Subject: i2c_isr_state() return value not incrementing?
For a question like this, you've got to post the slave program, the master
program, and the compiler version. The programs must be complete, and
compilable with no errors.

I was afraid you'd ask ...
  Topic: i2c_isr_state() return value not incrementing?
jallum

Replies: 9
Views: 11420

PostForum: General CCS C Discussion   Posted: Wed Mar 05, 2008 5:49 pm   Subject: i2c_isr_state() return value not incrementing?
Hello, I'm new to CCS C and I2C but so far I have been able to get several things working. I am having problems implementing the SLAVE hardware on my 16f877A. The chip is also being used as the master ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group