hi!
is it NOT possible to use both the usart- and the timer2-module the same time? this question emerged when i read that the usart-module need the timer2 module to work.
thanks!
Ttelmah Guest
Posted: Sat Jun 25, 2005 2:54 pm
What chip?.
Where did you read this?.
Timer2, is used by the PWM timings, but not normally by the USART.
Best Wishes
i2c2k
Joined: 23 May 2005 Posts: 3
Posted: Sun Jun 26, 2005 4:25 am
it's the 18FXX8 datasheet on page 118 (adobe reader: page 120) 13.3 Output of TMR2.
oh sorry, i mixed it up with the SSP module!
but does that mean that i can't use built-in i2c or spi capabilities together with the timer2?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Sun Jun 26, 2005 7:46 am
From the PIC18Fxx8 datasheet:
Quote:
13.3 Output of TMR2
The output of TMR2 (before the postscaler) is a clock
input to the Synchronous Serial Port module which
optionally uses it to generate the shift clock.
For a better understanding also have a look at figure 13-1 which says
Quote:
Note 1: TMR2 register output can be software selected by the SSP module as a baud clock.
The keywords are 'optionally' and 'can be software selected'. It is under control of the programmer for the SSP module to use either the timer2 output or use the CPU-clock. Studying the SSP module I could only find the SSP-module in SPI-mode using the timer2 as an alternative baudrate generator. I2C isn't using timer2 in any configuration.
You can use timer2 independent of I2C and SPI, only for very specific SPI baudrates you might consider using the SSP to use timer2 as an input.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum