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 61 matches
CCS Forum Index
Author Message
  Topic: Don't understand the Error Message
nehallove

Replies: 3
Views: 5755

PostForum: General CCS C Discussion   Posted: Thu May 02, 2013 5:34 pm   Subject: Don't understand the Error Message
>>> Warning 203 "main.c" Line 346(1,1): Condition always TRUE
>>> Warning 205 "main.c" Line 352(1,1): Unsigned variable is never less tha ...
  Topic: Optimization Level Doesn't change ...
nehallove

Replies: 3
Views: 5083

PostForum: General CCS C Discussion   Posted: Fri Mar 29, 2013 1:20 pm   Subject: Optimization Level Doesn't change ...
Thank you very much. I was putting that in main.h. But when i put it in main.c it works. All other fuses are in main.h and it works. It is weird that why it doesn't work in main.h.
  Topic: Optimization Level Doesn't change ...
nehallove

Replies: 3
Views: 5083

PostForum: General CCS C Discussion   Posted: Thu Mar 28, 2013 7:05 pm   Subject: Optimization Level Doesn't change ...
compiler version is
IDE version 4.139
  Topic: Optimization Level Doesn't change ...
nehallove

Replies: 3
Views: 5083

PostForum: General CCS C Discussion   Posted: Thu Mar 28, 2013 7:01 pm   Subject: Optimization Level Doesn't change ...
I have some issues with the code which led me the to think that it might be optimization issues.

I tried to set the optimization to zero or some other value by putting following syntax in main.h f ...
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Mon Mar 11, 2013 5:04 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
I changed the fuses as below but still the same.

#include <16LF1937.h>
#device *=16 ICD=TRUE
#device adc=16


#FUSES INTRC_IO
#FUSES NODEBUG
#FUSES NOWDT //No Watch ...
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Mon Mar 11, 2013 3:23 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
I also removed the force hardware on master side.
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Mon Mar 11, 2013 3:11 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
Hi I used the code in ex_slave.c and use that code modify the routine a little bit since it reads the memory. But still the same thing. First byte is wrong on reading. Even on oscilloscope it show 0x6 ...
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Fri Mar 08, 2013 8:33 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
oh sorry i accidentally cut the line while copying on my reply i do use the address.

i2c_start()
i2c_write(0xB1);
x[0] = i2c_read();
x[1] = i2c_read();
x[2] = i2c_read(0);
i2c_stop()

and ...
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Fri Mar 08, 2013 8:17 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
Thanks PCM Programmer.

By putting i2c_read(0) on the last byte reading stopped the pulling of data and clock bus. But

i2c_start()
x[0] = i2c_read();
x[1] = i2c_read();
x[2] = i2c_read(0);
...
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Fri Mar 08, 2013 5:34 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
//Fuses

#include <16LF1937.h>
#device *=16 ICD=TRUE
#device adc=16


#FUSES HS
#FUSES NODEBUG
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT_SW // ...
  Topic: I2C Slave Tx doesn't work, both data and clock pulled low
nehallove

Replies: 11
Views: 16489

PostForum: General CCS C Discussion   Posted: Fri Mar 08, 2013 3:52 pm   Subject: I2C Slave Tx doesn't work, both data and clock pulled low
I have master PIC18f25k20 and slave 16f1937.

compiler version 4.0139

slave code:
//This is main.h

//#include <16F1825.h>
#include <16LF1937.h>
#device *=16 ICD=TRUE
#device ad ...
  Topic: Re: Int_Global routine for i2c doesn't work
nehallove

Replies: 2
Views: 6388

PostForum: General CCS C Discussion   Posted: Fri Mar 08, 2013 3:44 pm   Subject: Re: Int_Global routine for i2c doesn't work
Thank you very much Ttelmah.
  Topic: Re: Int_Global routine for i2c doesn't work
nehallove

Replies: 2
Views: 6388

PostForum: General CCS C Discussion   Posted: Wed Mar 06, 2013 7:16 pm   Subject: Re: Int_Global routine for i2c doesn't work
Hi I am trying to use global routine for different interrupts in the same routine. But when i try following i2c clock goes low and it freezes. Collected data at slave is multiple values of same data. ...
  Topic: Re: External oscillator setting and issue with UART
nehallove

Replies: 1
Views: 3383

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2013 5:59 pm   Subject: Re: External oscillator setting and issue with UART
Hi All,

System Configuration:
- PIC16F1825
- External Oscillator 3.6864 MHz


We try to use baud rate 115200. For that we can't use internal oscillator, so we are using external oscillator of ...
  Topic: passing pointer array doesn't work
nehallove

Replies: 8
Views: 11336

PostForum: General CCS C Discussion   Posted: Wed Sep 19, 2012 6:18 pm   Subject: passing pointer array doesn't work
Thank you that works perfectly Smile
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group