output compare : coded impulsions generation
Posted: Wed Jan 27, 2016 11:28 am
Hello.
I want to generate a train of impulsions with precise timing, bit 'true' is coded by a 0,45µs wide positive pulse, separated by 1µs.
Is there pattern for GPT for that use case ?
but it seems to me that GPT is so much oriented callback : i will need to set pin output level in the callback,
adding a lot jitter.
So the question is : is there a way to do that with chibios api, or do i have to write a specific driver above timer, perhaps even
using dma to precalculate a timing buffer with duration of each level before transition.
Thanks
Alexandre
I want to generate a train of impulsions with precise timing, bit 'true' is coded by a 0,45µs wide positive pulse, separated by 1µs.
Is there pattern for GPT for that use case ?
but it seems to me that GPT is so much oriented callback : i will need to set pin output level in the callback,
adding a lot jitter.
So the question is : is there a way to do that with chibios api, or do i have to write a specific driver above timer, perhaps even
using dma to precalculate a timing buffer with duration of each level before transition.
Thanks
Alexandre