Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Sync-ing multiple identical mites?
Author | Message | ||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 858 |
Thinking out-loud here because I'm away from my scope. Let's say I want to sync two ARMmite H7s for up to a minute at a time, using an external signal. I could poll an input in a do-loop but would PAUSE with an input interrupt be tighter? Thinking that the interrupt routine would set TIMER=0 which would then be the reference in each H7. Incidentally, the manual states that an interrupt response is ~15µsec but wouldn't this be processor & speed dependent? |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 858 |
Orrrrrrrr Use a PWM from H7#1 to feed an interrupt input on H7#1, H7#2, H7#3, etc? |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4232 |
Hi Phoenix, Assigning an interrupt to an I/O pin is probably the best you can do. You could opt to generate the sync signal external, or from a hardware block like a RTC or PWM pin. Volhout PicomiteVGA PETSCII ROBOTS |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 858 |
Thanks Harm, thinking same Would be cool if it were possible to sync the timers that control SETTICK. Another question; just reading the manual and trying to understand BITBANG (very cool) but is this a blocking function or background? |
||||
Print this page |