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 18 matches
CCS Forum Index
Author Message
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Tue Feb 24, 2009 12:45 pm   Subject: Problems with DS1307
I'm using a test board which I bought some years ago.. i think i might don't have the schematic...
I'll try another method.. I'll build a brand new board without all the test equipment...

stay tu ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Tue Feb 24, 2009 12:29 pm   Subject: Problems with DS1307
yes 4K7 pullups on both lines...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Tue Feb 24, 2009 11:28 am   Subject: Problems with DS1307
today i tested my new ds1307 and it's doing the same as before.... now when i try to set date time it returns 45:85:85.. when i read the seconds i get:
:00
:01
:01
:00
:03
:45

i really don't ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Wed Feb 18, 2009 4:18 pm   Subject: Problems with DS1307
Well.. now i think it's my IC that is damaged or faulty.. with or without the crystal it returns the same values and now it isn't detected by the test routine...

I ordered another ic.. I'll let you ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Wed Feb 18, 2009 4:09 pm   Subject: Problems with DS1307
Now i'm starting to think that the RTC is faulty.. now it isn't detected by the test program you posted before...

:( I'll try some others hardware configurations
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Wed Feb 18, 2009 3:51 pm   Subject: Problems with DS1307
I bought the rtc and the crystals on ebay .. the auction said 32.768Khz watch crystals.. i have this code printed on it: KDS7B ..
i tried also disconnecting the other device on i2c bus..

The volt ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Wed Feb 18, 2009 3:28 pm   Subject: Problems with DS1307
The code i posted is an adaptation for my lcd.. i have a 1x6 characters lcd so for a simple test i was printing the time without the colons

these are my includes:
#include "lcd_new.h" // ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Wed Feb 18, 2009 1:58 pm   Subject: Problems with DS1307
I ran that code and the RTC is correctly detected at address D0 ... I have 2 i2c devices and both are detected correctly...

Now I'm getting another behaviour: I read the time every second, and now ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Wed Feb 18, 2009 5:55 am   Subject: Problems with DS1307
I have another question.. do you think that i've damaged the rtc by connecting the vbat to +5v?

I noticed another thing:
I tried to call the "get_time" function with the rtc disconnected ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Fri Feb 13, 2009 6:14 pm   Subject: Problems with DS1307
I tried to enable the swqe , I have a 1k pullup on swout pin and a led wired with a resistor from the sqout pin to gnd... the led is still off..

I think the problem is with the crystal... but even ...
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Fri Feb 13, 2009 5:47 pm   Subject: Problems with DS1307
The voltage on Vbat pin is 3.45V set by 2 resistors because i don't have a battery...

I checked every thing and it doesn't work.. :(
  Topic: Problems with DS1307
simons

Replies: 19
Views: 30234

PostForum: General CCS C Discussion   Posted: Thu Feb 12, 2009 4:24 pm   Subject: Problems with DS1307
Hello to all I have 2 devices on a i2c bus, one pcf8574 to drive a lcd and a ds1307 ..
I'm using this driver I found on this forum:
///////////////////////////////////////////////////////////////// ...
  Topic: Having troubles with 16F876A and RS232
simons

Replies: 10
Views: 14260

PostForum: General CCS C Discussion   Posted: Sat Jan 17, 2009 4:44 am   Subject: Having troubles with 16F876A and RS232
OMG!! Now it works reeeeally well!!!

Thanks a lot man!!! This is very much appreciated!!! Razz
  Topic: Having troubles with 16F876A and RS232
simons

Replies: 10
Views: 14260

PostForum: General CCS C Discussion   Posted: Fri Jan 16, 2009 5:57 pm   Subject: Having troubles with 16F876A and RS232
The board where the pic is installed is a demo board, I didn't build it... It has it's own DC Adapter and a rs232 port.
I checked and everything seems fine.. no floating points or non-properly groun ...
  Topic: Having troubles with 16F876A and RS232
simons

Replies: 10
Views: 14260

PostForum: General CCS C Discussion   Posted: Fri Jan 16, 2009 9:45 am   Subject: Having troubles with 16F876A and RS232
Ok here's the complete code, I made a little change but basically it's the same code.

PIN_B4 is check led
PIN_C3 is TX led
PIN_C4 is RX led

all leds are active low.


#include <16F876A.h ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group