Hi Giovanni,
I decided to switch back to your proposed PWM-Method because I could noch use the EXTI as you metioned. And now it works. My fault was a period of 1 which ist not working to generate a clock pulse. I needed to use 2 as minimal period. I now managed to clock in data into the TLC5940 at ...
Search found 7 matches
- Mon Aug 06, 2012 8:09 pm
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
- Mon Aug 06, 2012 5:10 pm
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
Re: Generate 30 Mhz Clock and an Interrupt on every nth Cloc
Hi Again,
if I use MCO2 (PC9) as clock signal is it possible to use an EXT-Interrupt directly with PIN PC9 or do I have to wire that output in hardware to a GPIO-Pin?
I hope I don't ask to silly questions.
Thanks
Mario
if I use MCO2 (PC9) as clock signal is it possible to use an EXT-Interrupt directly with PIN PC9 or do I have to wire that output in hardware to a GPIO-Pin?
I hope I don't ask to silly questions.
Thanks
Mario
- Mon Aug 06, 2012 5:05 pm
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
Re: Generate 30 Mhz Clock and an Interrupt on every nth Cloc
Hi Giovanni,
yes I initialized the Output with
// DDR, PORT an PIN connected to GSCLK
#define GSCLK_PORT GPIOA
#define GSCLK_PIN 15
palSetPadMode(GSCLK_PORT, GSCLK_PIN, PAL_MODE_ALTERNATE(1));
But I noticed that to use GPT3 I enabled TIM3 and TIM2 for PWMD2. I can not use TIM2 for both. Will ...
yes I initialized the Output with
// DDR, PORT an PIN connected to GSCLK
#define GSCLK_PORT GPIOA
#define GSCLK_PIN 15
palSetPadMode(GSCLK_PORT, GSCLK_PIN, PAL_MODE_ALTERNATE(1));
But I noticed that to use GPT3 I enabled TIM3 and TIM2 for PWMD2. I can not use TIM2 for both. Will ...
- Mon Aug 06, 2012 8:48 am
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
Re: Generate 30 Mhz Clock and an Interrupt on every nth Cloc
Hi again,
yesterday I tried to get a 21 Mhz Signal generated on GPIOA, Pin 15 by the STM32F407VG with the following:
static PWMConfig pwmcfg = {
21000000, /* 21Mhz PWM clock frequency. PWM Prescaler should be 8 with 168 Mhz, so ASSERTS won't fail */
1, /* Period is 1 Tick */
NULL,
{
{PWM ...
yesterday I tried to get a 21 Mhz Signal generated on GPIOA, Pin 15 by the STM32F407VG with the following:
static PWMConfig pwmcfg = {
21000000, /* 21Mhz PWM clock frequency. PWM Prescaler should be 8 with 168 Mhz, so ASSERTS won't fail */
1, /* Period is 1 Tick */
NULL,
{
{PWM ...
- Sat Aug 04, 2012 9:12 pm
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
Re: Generate 30 Mhz Clock and an Interrupt on every nth Cloc
Hi Giovanni,
thanks. I will try.
Mario
thanks. I will try.
Mario
- Sat Aug 04, 2012 8:43 pm
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
Re: Generate 30 Mhz Clock and an Interrupt on every nth Cloc
Hi Giovanni,
I thougth do to so. But how can I use a timer in ChibiOS directly to drive a clock signal?
Thanks for the quick reply
Mario
I thougth do to so. But how can I use a timer in ChibiOS directly to drive a clock signal?
Thanks for the quick reply
Mario
- Sat Aug 04, 2012 4:00 pm
- Forum: General Support
- Topic: Generate 30 Mhz Clock and an Interrupt on every nth Clock
- Replies: 11
- Views: 7173
Generate 30 Mhz Clock and an Interrupt on every nth Clock
Hi together,
I am quite new to Chibios and I am using it on an STM32F407-Discovery Board. I am tryping to feed a TLC5940 from the STM32, which is a 16 Channel LED-Driver. The HW is working as a simple loop trigers the TLC5940 correctly.
Now I am trying to setup ChibiOS so that the STM32 generates ...
I am quite new to Chibios and I am using it on an STM32F407-Discovery Board. I am tryping to feed a TLC5940 from the STM32, which is a 16 Channel LED-Driver. The HW is working as a simple loop trigers the TLC5940 correctly.
Now I am trying to setup ChibiOS so that the STM32 generates ...