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 21 matches
CCS Forum Index
Author Message
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Fri Jan 03, 2014 8:33 am   Subject: DS1307 - no days shown
comment: Like a dog with a bone, I'm back.Think I've found the OEM of the module. http://www.emartee.com/product/42059/ appears to be it.I've downloaded the schematic and pictures.It does show a real ...
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Thu Jan 02, 2014 10:43 pm   Subject: DS1307 - no days shown
comment: Well I checked your drivers vs mine and they are the same except for the order of the variables.
I chose to do this...
void ds1307_get_date_time(BYTE &yer, BYTE &mth, BYTE &day, ...
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Thu Jan 02, 2014 9:12 pm   Subject: DS1307 - no days shown
comment: Well I'm at a loss to explain why you've lost the day data. I'm even using your fprintf to the PC to view the data on Realterm and it's 100% right, even after yanking off the power for 10 min ...
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Thu Jan 02, 2014 5:14 pm   Subject: DS1307 - no days shown
comment: on my Terminal Window I get 45:85:85-45/25/-1
45:85:85 looks familiar! Have you got the proper I2C bus pullup resistors? With 5 Volts I use 4k7, in fact have a 46k22 using ds1307 in front ...
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Thu Jan 02, 2014 4:41 pm   Subject: DS1307 - no days shown
Try using force_hw on the I2C, and see if anything changes.

Also explicitly set the I2C clock rate to 'SLOW' (the chip only supports this). With your CPU clock it is unlikely that there is a speed ...
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Thu Jan 02, 2014 1:55 am   Subject: DS1307 - no days shown
Post your complete test program that calls the ds1307 driver functions.
I.e., post the #include line for the PIC, #fuses, #use delay, etc. Post your variable declarations. In other words, post th ...
  Topic: DS1307 - no days shown
pavelustinov

Replies: 14
Views: 20865

PostForum: General CCS C Discussion   Posted: Wed Jan 01, 2014 6:17 pm   Subject: DS1307 - no days shown
Hello!
I use this DS1307 driver
http://www.ccsinfo.com/forum/viewtopic.php?t=23255
////////////////////////////////////////////////////////////////////////////////
/// ...
  Topic: 7-segment display blinking
pavelustinov

Replies: 9
Views: 14397

PostForum: General CCS C Discussion   Posted: Sat Sep 07, 2013 10:07 am   Subject: 7-segment display blinking
Several things needed for -ve.

1) You'd have to add an ability to display '-' to your display.
2) Test if the temperature number is -ve before converting to digits. If is is turn on the -ve in the ...
  Topic: 7-segment display blinking
pavelustinov

Replies: 9
Views: 14397

PostForum: General CCS C Discussion   Posted: Fri Sep 06, 2013 3:51 pm   Subject: 7-segment display blinking
The approach is flawed in a number of ways:

The interrupt is called every 65536 processor cycles (256*256) = 15 times per second.
...
Great! Display don't blink!
But now I have another problem. ...
  Topic: 7-segment display blinking
pavelustinov

Replies: 9
Views: 14397

PostForum: General CCS C Discussion   Posted: Fri Sep 06, 2013 8:47 am   Subject: 7-segment display blinking
Would you care to:-

1) Show a schematic
2) Provide code which is complete and compilable.
3) Explain how you think the display works.

Mike

You can download here http://www.sokol-media.ru/da ...
  Topic: 7-segment display blinking
pavelustinov

Replies: 9
Views: 14397

PostForum: General CCS C Discussion   Posted: Fri Sep 06, 2013 7:59 am   Subject: 7-segment display blinking
Hello everybody!
I use PIC16F877A, 4-digits 7-segment display, DS18B20 temp sensor.
My program compiles successfully, display on my real hardware show current temperature.
But it blinks. I think, I ...
  Topic: Receive rs232 data
pavelustinov

Replies: 10
Views: 10357

PostForum: General CCS C Discussion   Posted: Fri Apr 19, 2013 8:42 am   Subject: Receive rs232 data
CCS provides tested code to send text via RS232.
Use theirs, rather that write your own.

Mike
I try this
void main() {
while(TRUE) {
putc(getc()& ...
  Topic: Receive rs232 data
pavelustinov

Replies: 10
Views: 10357

PostForum: General CCS C Discussion   Posted: Fri Apr 19, 2013 8:11 am   Subject: Receive rs232 data
Try sending plain text to confirm that terminal and PIC are talking at the same baud rate.

You don't have a #FUSES HS or similar.

Mike

I try this
#include <16f877a.h>
#device *=16
#u ...
  Topic: Receive rs232 data
pavelustinov

Replies: 10
Views: 10357

PostForum: General CCS C Discussion   Posted: Fri Apr 19, 2013 8:00 am   Subject: Receive rs232 data
idea #1
you specify a stream in the RS232 setup but don't specify it in the fputc send.

suggest remove "stream' and try again.

The same. I have "C0" in hex, "11000000" ...
  Topic: Receive rs232 data
pavelustinov

Replies: 10
Views: 10357

PostForum: General CCS C Discussion   Posted: Fri Apr 19, 2013 7:23 am   Subject: Receive rs232 data
Hello everybody!
I use simple program to understand, how rs232 works.
#include <16f877a.h>
#device *=16
#use delay(clock=20000000)

#fuses noWDT, NOPROTECT, BROWNOUT, PUT, NOLVP, D ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group