View previous topic :: View next topic |
Author |
Message |
Andrew83
Joined: 16 Sep 2008 Posts: 51
|
T1_CLK_OUT |
Posted: Tue Oct 14, 2008 6:22 am |
|
|
Hello !
I have a question : What does "T1_CLK_OUT" do when configuring timer 1 for example ...I looked it up on the manual but doesn't seem to be explained there.
Thank you !
P.S. I'm using the latest CCS C version . |
|
|
RLScott
Joined: 10 Jul 2007 Posts: 465
|
Re: T1_CLK_OUT |
Posted: Tue Oct 14, 2008 8:12 am |
|
|
This is just speculation, but if you look in the relevant <device>.h header file that defines T1_CLK_OUT and other parameters to setup_timer1(), and compare those bit patterns with the bit definitions for T1CON in the Microchip data sheet, it seems that many of those bit patterns map to each other. And since T1_CLK_OUT is defined as 0x08, that suggests it turns on the Timer 1 oscillator, which, by the way, does enable an output for the Timer 1 clock as a necessary part of the Timer 1 oscillator. Also consider that none of the other setup_timer1() bits defined by CCS seem to have anything to do with enabling the Timer 1 oscillator, I would say that is exactly what T1_CLK_OUT does. Perhaps CCS should have named it better: T1_OSC_EN maybe? _________________ Robert Scott
Real-Time Specialties
Embedded Systems Consulting |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|