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 27 matches
CCS Forum Index
Author Message
  Topic: Problem with FAT32 write to MMC
farouk_baya

Replies: 13
Views: 20118

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2015 10:31 am   Subject: Problem with FAT32 write to MMC
Hello,

I'm using the same code with ISIS simulation. I have the file created but the data are "0000000000000".

Anybody have an idea?

Thanks.
  Topic: FAT32 MMC SD (the new old topic)
farouk_baya

Replies: 3
Views: 9367

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2015 10:09 am   Subject: FAT32 MMC SD (the new old topic)
Hello;
I'm working in a project with MMC SD and I use the ex_fat.c file but the simulation in isis doesn't work.

The used schematic is as follows:


//////////////////////////////////////////// ...
  Topic: Sleep mode 18f25k20
farouk_baya

Replies: 7
Views: 11043

PostForum: General CCS C Discussion   Posted: Tue Jan 20, 2015 8:15 am   Subject: Sleep mode 18f25k20
Thanks a lot Smile
  Topic: Sleep mode 18f25k20
farouk_baya

Replies: 7
Views: 11043

PostForum: General CCS C Discussion   Posted: Fri Jan 16, 2015 12:02 pm   Subject: Sleep mode 18f25k20
I added the DEBUG to the fuses but I have the same result.

I use PICKIT3 as programmer (not debugger) but I have always the same result.

I use also:


#ASM ASIS
sleep
#ENDASM


But no re ...
  Topic: Sleep mode 18f25k20
farouk_baya

Replies: 7
Views: 11043

PostForum: General CCS C Discussion   Posted: Fri Jan 16, 2015 9:06 am   Subject: Sleep mode 18f25k20
Hello;
I want to put the 18f25k20 in sleep mode.
I use the following code.


#include "18f25k20.h"
#device PIC18f25k20
#fuses MCLR,INTRC_IO,PUT,NOWDT,NOLVP,NOBROWNOUT,BORV18,NOPROTEC ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Wed Dec 24, 2014 8:44 am   Subject: SMBus / I2C Problem
I get the correct i2c adresse but when reading data from the sensor I get always MSB = 0xFF and LSB = 0xFF.
I think the problem can be about the i2c speed.
the configuration is as follows:
Cpu clo ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Tue Dec 23, 2014 12:15 pm   Subject: SMBus / I2C Problem
Yes thanks Smile .

A very bad fault but ..
Hopefully now I can get the slave with the I2C scanner and I get something, not correct value, but I will try to find something.

Thank you
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Tue Dec 23, 2014 11:33 am   Subject: SMBus / I2C Problem
I tried the posted code but I have always 0x00 and 0x00 for the read values. And I should be sure of my hardware which is as follows:

I'm using 3K0 ohm pull-up resistors. So when I check the voltag ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Tue Dec 23, 2014 8:23 am   Subject: SMBus / I2C Problem
Thanks.

Do you think that I should make some configuration before getting the temperature value or it's normal to get directly the temperature value?
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 2:22 pm   Subject: SMBus / I2C Problem
Thank you.
So here is my code:



// get the temperature of the object
float get_temperature(int OBJECT_AMBIENT_TEMPERATURE, int fahrenheit_celsius) {

double tempFactor = 0.02 ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 2:07 pm   Subject: SMBus / I2C Problem
Thanks.

So now I'm using 2.2kohm and with the I2C scanner I get so many correct addresses. And when I run the temperature programm I get 0 as I posted previously.

Number of i2c chips found: 112 ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 12:54 pm   Subject: SMBus / I2C Problem
Thank you.

I made some research and I find that there is some one who make this component working with 280 ohm resistor.
When I use 3.3k I have no result with the I2C scanner and with 2.2k I have ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 11:48 am   Subject: SMBus / I2C Problem
Thank you

Now when using the “i2c bus scanner” I can get as follows:


USED addr: 10
ACK addr: 10
USED addr: 12
ACK addr: 12
USED addr: 14
ACK addr: 14
U ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 10:10 am   Subject: SMBus / I2C Problem
Screenshot from the datasheet:

http://www.4shared.com/download/cuC53yx_ce/MLX9015.jpg?lgfp=3000


The following the previous image from the datasheet, I think the correct values for the two pull ...
  Topic: SMBus / I2C Problem
farouk_baya

Replies: 32
Views: 55210

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 9:27 am   Subject: SMBus / I2C Problem
Thanks for your answers.
I used the”i2c bus scanner program”. But there is a problem here. When I put the SDA pin to ‘1’ I get with the voltage measurement 0.886 V which is not enough to get ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group