Search found 194 matches

by dannyf
Wed Jan 17, 2018 12:55 am
Forum: Projects
Topic: Time interval counter (13ns resolution)
Replies: 2
Views: 13

Re: Time interval counter (13ns resolution)

so I could use both 16 bit timers together as a pseudo 32 bit timer. if there is something else going on on your chip - like another ISR on UART or ADC, a composite timer may show jitter consistent with the pattern shown in your measurement. Those chips allow chaining / master + slave pair of two t...
by dannyf
Tue Jan 16, 2018 12:06 pm
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 261

Re: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]

still haven't figured out how to get it to not link in all the timer stuff. millis() and micros(). Even if I don't use it at all Check the manual to see if the compiler can put each function into it's own section and then if the linker can discard unused code. Enable both and you are done. If not, ...
by dannyf
Tue Jan 16, 2018 11:15 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 5
Views: 64

Re: [SOLVED] Enable interrupts from inside a timer interrupt

I'm not convinced yet that you need something that fancy. the first question should be if the OE pin can be enabled in the middle of a frame transmission. if yes, you can simply drive it with a pwm pin. 0-100% duty cycle. if the OE pin can only be enabled at the end of a frame transmission, your ISR...
by dannyf
Tue Jan 16, 2018 1:54 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 5
Views: 64

Re: Enable interrupts from inside a timer interrupt

I need another timer to fire hard to tell what you meant by "fire". CMx chips allow priority / subpriority over its interrupts so take a look at the datasheet to see how that can be set-up - the ISRs are re-entrant. another feature is interrupt-chaining (potentially what you are trying to do), wher...
by dannyf
Tue Jan 16, 2018 1:49 am
Forum: STM32F3 Boards
Topic: Assistance/guidelines for porting STM32duino to the STM32F3
Replies: 4
Views: 682

Re: Assistance/guidelines for porting STM32duino to the STM32F3

to give some pointers on how to go about porting the stm32duino libraries to the STM32F3. my 2 cents, having ported the arduino framework to a few mcus, some in the STM32 families. the biggest lesson I learned is to isolate the hardware from the software. in my initial port, I tried to do that, but...
by dannyf
Tue Jan 16, 2018 1:35 am
Forum: STM8
Topic: Same C code, different assembly
Replies: 4
Views: 75

Re: Same C code, different assembly

Options... Options are expensive, for a reason, :) One of the biggest issues with STM8 is the lack of available compilers. When I tried SDCC out back then, it wasn't ready for prime time. Looks like they have made some progress since but not enough. IAR and Cosmic both are excellent but unfortunate...
by dannyf
Mon Jan 15, 2018 11:18 pm
Forum: Libraries & Hardware
Topic: Stm32f103C8 External Dac
Replies: 17
Views: 161

Re: Stm32f103C8 External Dac

He may apply an algorithm
I don't know how that can be addressed via software. a latch, including a latch-equipped shift register, would be my way to go for glitch-free output. Otherwise, a capacitor can help reduce the glitches, with performance issues of its own however.
by dannyf
Mon Jan 15, 2018 11:12 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Curious in Colorado
Replies: 17
Views: 124

Re: Curious in Colorado

From the STM8A's specs, it looks like it should be able to handle the job but I certainly could be wrong. of the three mcus mentioned earlier, PIC is the least capable (from a processing power perspective), but most resistant to interference, given that it is built on older processes. if your AVR s...
by dannyf
Mon Jan 15, 2018 5:18 pm
Forum: Libraries & Hardware
Topic: Stm32f103C8 External Dac
Replies: 17
Views: 161

Re: Stm32f103C8 External Dac

You may set the bits individually.
Just think about the values the DAC outputs while those pins are being set / reset.

you will need a mechanism to latch the output.
by dannyf
Mon Jan 15, 2018 5:13 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Curious in Colorado
Replies: 17
Views: 124

Re: Curious in Colorado

my automotive ECU board. I think if you take a modern ECU, often made by Renesas, Freescale, Bosch or Infineon, etc., you will find that they are much more powerful than your typical 8-bitter. Obviously, you can have different sorts of ECU boards with different sorts of capabilities but going with ...