![]() |
Forum Index : Microcontroller and PC projects : Sync-ing multiple identical mites?
Author | Message | ||||
PhenixRising Guru ![]() Joined: 07/11/2023 Location: United KingdomPosts: 1383 |
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: 1383 |
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: 5089 |
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: 1383 |
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? |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |