Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:52 26 Nov 2024 Privacy Policy
Jump to

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 Kingdom
Posts: 858
Posted: 08:43pm 10 Mar 2024
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 858
Posted: 08:56pm 10 Mar 2024
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 4232
Posted: 09:02pm 10 Mar 2024
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 858
Posted: 09:22pm 10 Mar 2024
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024