
Registered on : 11-06-2005
From Italy
Messages : 147
OFF-Line
|
I'm starting with a new project with many functions and I'm looking for the right microcontroller for this purpose.
I'm migrating from the st7 microcontroller.
It seems that the stm8105s6 microcontroller is the right choice for me.
I need to understand some details about the hw timers.
I need to implement the following:
1) pwm output pin(from 5 to 20 khz) with variable duty cycle
2) another pwm output pin(from 5 to 20 khz) with variable duty cycle
3) input capture pin
3) output compare pin (250uS time base based on the precedent pin trigger)
4) watchdog time base (for general purpose internal timing)
5) input capture pin
5) output compare pin (250uS time based on the precedent pin trigger)
6) output pin(a output compare function?) for a time base from 250uS
7) a second output pin(a output compare function?) for a time base from
1 to 4khz
From the datasheet I have extracted the following text:
TIM1 - 16-bit advanced control timer:
4 independent capture/compare channels (CAPCOM) configurable as input capture,output compare, PWM generation (edge and center aligned mode) and single pulse mode output.
The Question is: are the 4 indipendent capture/compare channels usable as 4 different hardware timers ? what are the limitations?
Can I use the four channels as 4 different hardware timers with a 250uS time base?
As you can see I need about 7 indipendent hw timers.
thanks and best regards.
Spectre
| Attachments : | EXTRACTEDFROMTHEDATASHEET.pdf | | | |
|
|
|