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 31 matches
CCS Forum Index
Author Message
  Topic: defining software uart in function
Fusillade

Replies: 9
Views: 18088

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2018 6:34 am   Subject: defining software uart in function
Explained here:

https://www.ccsinfo.com/faq.php?page=multiple_rs232
  Topic: i2c issue after a long absence
Fusillade

Replies: 12
Views: 22245

PostForum: General CCS C Discussion   Posted: Mon Apr 23, 2018 7:11 am   Subject: i2c issue after a long absence
So the absolute maximum bus capacitance that can be used with 47K, is 25pF total, to actually be 'in spec' for 100K I2C. Now when you consider that most chips will have something like 5pF pin capacita ...
  Topic: i2c issue after a long absence
Fusillade

Replies: 12
Views: 22245

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2018 3:34 pm   Subject: i2c issue after a long absence


I think with the clock speed, I can push it down to 40KHz. I'll try
slow=40000 (I think that is BRG=63h). The device is only accessed once
per minute anyway.

FORCE_SW mode doesn't use the B ...
  Topic: i2c issue after a long absence
Fusillade

Replies: 12
Views: 22245

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2018 1:45 pm   Subject: i2c issue after a long absence
and with 47K, I'd be lowering the clock rate even further. So:
#use i2c(master, sda=TEMP_SDA, scl=TEMP_SCL, slow=50000, FORCE_SW)

Honestly, 47K, is so high that I'd doubt if the bus can meet the r ...
  Topic: i2c issue after a long absence
Fusillade

Replies: 12
Views: 22245

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2018 10:23 am   Subject: i2c issue after a long absence
There is one critical difference in #USE I2C.

Back at 4.121, software I2C was the default even if the hardware pins were used. With V5 compilers this was changed, and hardware I2C will be used if t ...
  Topic: i2c issue after a long absence
Fusillade

Replies: 12
Views: 22245

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2018 9:04 am   Subject: i2c issue after a long absence
1. Tell us the full part number of the PIC that you're currently using and
also the one that you used in the past.

2. Tell us the Vdd voltage of the PIC (then and now), and the i2c pull-up
vo ...
  Topic: i2c issue after a long absence
Fusillade

Replies: 12
Views: 22245

PostForum: General CCS C Discussion   Posted: Thu Apr 19, 2018 3:40 pm   Subject: i2c issue after a long absence
I last used my CCS compiler in Oct of 2012. Program has been running great for 5 1/2 years. A customer needs a special modification so I renewed my license, download the latest version of CCS PCWH, up ...
  Topic: Compiler 4.047 to Compiler 4.121
Fusillade

Replies: 1
Views: 3918

PostForum: General CCS C Discussion   Posted: Thu Jun 28, 2012 4:37 pm   Subject: Compiler 4.047 to Compiler 4.121
I have a program that was written in 2008 and was compiled with v4.047. The program runs fine and has been for 4 years; however, a customer would like me to make a small data change. As it turns out, ...
  Topic: I2C Clock Stretching
Fusillade

Replies: 8
Views: 17890

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 2:36 pm   Subject: I2C Clock Stretching
If your PIC is an I2C slave, then you have no control over clock stretching as only the master provides the clock on an I2C bus.

Also, there is no clock polarity like there can be for SPI. Since th ...
  Topic: I2C Clock Stretching
Fusillade

Replies: 8
Views: 17890

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 1:14 pm   Subject: I2C Clock Stretching
If you use #use i2c without providing the pins for the hardware I2C or using I2Cx directive to force using an internal MSSP, then it defaults to software I2C which could very well be subject to all so ...
  Topic: I2C Clock Stretching
Fusillade

Replies: 8
Views: 17890

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 9:19 am   Subject: I2C Clock Stretching
When setting up a PIC as an i2c slave, it appears that #use i2c(...) defaults to clock stretching as the only option available related to clock stretching is NO_STRETCH.

Is the i2c bus clock held l ...
  Topic: Turn off SCSO
Fusillade

Replies: 4
Views: 5872

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 3:23 pm   Subject: Turn off SCSO
Yes, great!

Thank you very much!!!
#fuses SOSC_DIG did it! Nice, awesome!

At least I did one thing right today. Laughing
  Topic: Turn off SCSO
Fusillade

Replies: 4
Views: 5872

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 3:14 pm   Subject: Turn off SCSO
Have you tried the following?

#fuses SOSC_DIG
  Topic: help me to add interrupt
Fusillade

Replies: 6
Views: 6351

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 10:56 am   Subject: help me to add interrupt
Fusillade

ooo , when i try to compile the program u give it to , there's an error .
for the #typedef enum ... the errors are invalid pre-processor directive . what was the problem ?

Try

#def ...
  Topic: timer1 with interrupt
Fusillade

Replies: 7
Views: 10106

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 6:36 am   Subject: timer1 with interrupt
PCM PRogrammer,

Yes, my program is massive and not effective. as of right now, I am a very very very new and learn every line in coding so effectiveness isn't there at all. I do take your mocking ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group