Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 22:14 18 May 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 : MMbasic mx170 and PWM with 1uSec resolut?

Author Message
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 07:22am 24 May 2016
Copy link to clipboard 
Print this post

Hi to Everybody
Is it possibile, with CFfunction on mx170, to have on pin(4) a pwm every 20ms and a resolution of 1uSec?
Thanks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8605
Posted: 08:18am 24 May 2016
Copy link to clipboard 
Print this post

Yes at 48MHz clock speed you can get 1/3rd uSec accuracy but please don't ask...Edited by matherp 2016-05-25
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 08:38am 24 May 2016
Copy link to clipboard 
Print this post

Hey Matherp
Yes ...I ask to you ...:) ...thanks
I ask this because with servo command I have a resolution of 5uSec. Or not? At 48mhz
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 10:43am 27 May 2016
Copy link to clipboard 
Print this post

Could someone help me?
Thanks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8605
Posted: 10:52pm 27 May 2016
Copy link to clipboard 
Print this post

  Quote  Could someone help me?


The problem is that what you are asking for is a complete one-off. I can't believe there is a servo made that can resolve a difference in pulse lengths of 1uS. Geoff's firmware already provides 1-in-1000 resolution. I'm always happy to develop things that might be generally useful but this seems to only relate to your (undisclosed) requirement
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 06:32am 28 May 2016
Copy link to clipboard 
Print this post

With a 360 degree Servo, you can get a resolution of Max. 2 degrees +/-.
1 us doesnt make any sense.
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 07:58am 28 May 2016
Copy link to clipboard 
Print this post

Hi to Everybody

That mine is a curiosity. Because, arduino has a resolution of 1ųsec regarding servo command. And my client wants to use 24 precise servo. I am creating a mini PCB which which control 1..4 servos, 1 RTC, 1 WIFI, 1 MPU9250. PICs/MMBasic communicate in real time in wifi with our Microsoft Azure Cloud service, the PICs will be connected in real time in live TCP for exchange data and distributed processing ... first IoT with MMBasic

Thanks
 
Print this page


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

© JAQ Software 2024