18F25J50 RTCC not running

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

18F25J50 RTCC not running

Postby Desdewit » Mon Apr 01, 2013 1:09 pm

Hi Guys

What else can I do to get the RTCC working.
The second counter keep giving me the same value "0x52 0x42" :cry: :cry: :cry:
Attachments
Breeze RTCC.fcf
(8.5 KiB) Downloaded 460 times

User avatar
Benj
Matrix Staff
Posts: 14373
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4447 times
Been thanked: 4150 times
Contact:

Re: 18F25J50 RTCC not running

Postby Benj » Tue Apr 02, 2013 10:09 am

Hello,

I think you may have to switch on the timer. You can do this using this C code.

Code: Select all

t1con = 0x01;

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Re: 18F25J50 RTCC not running

Postby Desdewit » Tue Apr 02, 2013 6:53 pm

Hi Benj

Thanks.. That did the trick :D
I'm so use to fc doing most of the setup these days that I over look the simple things.
I'm uploading the code as a basis to start from, for other asm users.
These users thanked the author Desdewit for the post:
Benj (Wed Apr 03, 2013 9:46 am)
Rating: 5.26%
 

smithclarkson01
Posts: 1
Joined: Sun Oct 13, 2019 9:19 pm
Contact:

Re: 18F25J50 RTCC not running

Postby smithclarkson01 » Sun Oct 13, 2019 9:31 pm

What crystal does the module use? I'd guess 32.768kHz are easy to source with high resolution, but maybe not.