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

Post Reply
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

Post by Desdewit »

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 693 times

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

Re: 18F25J50 RTCC not running

Post by Benj »

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

Post by Desdewit »

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.

Post Reply