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 37 matches
CCS Forum Index
Author Message
  Topic: Problem with set_port_b on PIC16F1847
jake1272

Replies: 2
Views: 11127

PostForum: General CCS C Discussion   Posted: Sat Apr 24, 2021 10:10 am   Subject: Problem with set_port_b on PIC16F1847
Hi everyone I am working with PIC16F1847 and I want to configure the pin RB0 as input but every time I am getting an Undefined identifier set_port_b_tris from the compilier.
Could you please let ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Tue Apr 13, 2021 6:02 am   Subject: Problem with DS3231 and PIC16F1847
FWIW...
I posted my 'basic DS3231 driver' code in the code library. While it doesn't do 'alarms', I know it works,at least on the 18F46k22, 26k22 devices. I modified DS1307 code( device address, some ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Tue Apr 13, 2021 4:00 am   Subject: Problem with DS3231 and PIC16F1847
Er. On the 16F1847, the default pin location for I2C1 is pins B1 & B4,
which clashes with the button locations shown...
You are going to have to switch to using software I2C or move some of
the ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Tue Apr 13, 2021 3:55 am   Subject: Problem with DS3231 and PIC16F1847
Do a web search for:
rtc 165:165:
Read all the hits and see if any of it might apply to your problem.

Thanks, PCM programmer here is what I have found:
The I2C interface is accessible whenever ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Tue Apr 13, 2021 1:58 am   Subject: Problem with DS3231 and PIC16F1847
Hi Jerson, If I don't include I2C1 in #use I2C(MASTER, I2C1, SLOW = 100000, STREAM = DS3231_STREAM), I can edit date, time alarms. But with I2C1 included the LCD is blank.
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Tue Apr 13, 2021 12:13 am   Subject: Problem with DS3231 and PIC16F1847
I
removed the I2C1 and the LCD does display the date and time in a wrong format and the time it is not running as well.

Post what you see on the LCD.
Post the date which shows in a wrong for ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 8:25 am   Subject: Problem with DS3231 and PIC16F1847
To begin with debugging your code, I would

* comment all calls to the RTC driver functions.
* Replace the print statement with dummy values for each variable you print
* If you succeed with this ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 8:19 am   Subject: Problem with DS3231 and PIC16F1847
That RTC has an 'osc-enable' bit, maybe the driver doesn't enable the enable ?? It 'should', by default be enabled, at least for a 5 volt PIC, if my fuzzy memory serves me right. You do HAVE a battery ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 7:53 am   Subject: Problem with DS3231 and PIC16F1847
In the main code :


I removed the I2C1 and the LCD does display the date and time in a wrong format and the time it is not running as well
#use I2C(MASTER, SLOW = 100000, STREAM = DS3231_ ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 1:44 am   Subject: Problem with DS3231 and PIC16F1847
Similar DS3231:https://www.digitspace.com/ds3231-rtc-module-real-time-clock-module-at24c32-high-accuracy
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 1:01 am   Subject: Problem with DS3231 and PIC16F1847
I think you mean that you're using a module with a battery installed on
the back side of the board.

Is there a battery installed ? Can you measure the voltage of it ?

Yes there is a battery i ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 12:43 am   Subject: Problem with DS3231 and PIC16F1847
Yes, I have done that as well. Sad I even replaced the DS3231 still
What are your connections to the Vbat and RST pins on the ds3231 ?

What is the voltage on the Vcc pin of the ds3231 ?

What ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Mon Apr 12, 2021 12:32 am   Subject: Problem with DS3231 and PIC16F1847
Found it !!!! well, I think so....

https://simple-circuit.com/ds3231-rtc-driver-ccs-c-compiler/

He had the driver in the original post, but removed it, as moderator thought it was an official CC ...
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Sun Apr 11, 2021 12:38 pm   Subject: Problem with DS3231 and PIC16F1847
Yes, I have done that as well. Sad I even replaced the DS3231 still
  Topic: Problem with DS3231 and PIC16F1847
jake1272

Replies: 45
Views: 100089

PostForum: General CCS C Discussion   Posted: Sun Apr 11, 2021 10:39 am   Subject: Problem with DS3231 and PIC16F1847
Big key difference between the working test and the problem code is
selecting fast_io. Don't. 99% of CCS code does not use fast_io...

Thanks for the suggestion I have removed that, still it doesn' ...
 
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