View unanswered posts | View active topics It is currently Wed Oct 01, 2014 7:32 pm






Reply to topic  [ 4 posts ] 
Microsecond timing on the cortex? 
Author Message
Rookie

Joined: Tue Dec 14, 2010 4:13 am
Posts: 4
Post Microsecond timing on the cortex?
Hi, i was wondering if their is any way i can get Microsecond timing on the cortex? I am going to try to output a compost video signal and i need microsecond timing.All the timing functions in robotc seem to on a millisecond clock, is their any way i can change this?

I know its doubtful that i can but i just though i would ask anyway.

thanks.


Tue Dec 14, 2010 4:25 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: Microsecond timing on the cortex?
Unfortunately, no. Like you said, everything in ROBOTC is based off of millisecond timers. Sounds like a cool project though!

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Dec 14, 2010 10:36 am
Profile
Rookie

Joined: Tue Dec 14, 2010 4:13 am
Posts: 4
Post Re: Microsecond timing on the cortex?
It doesn't matter , i think i have a way to do it. I am going to see how many loops in a while loop it takes to go for 1 millisecond and then divide that number by 1000 and then i have 1 us :D thanks for the help though.


Tue Dec 14, 2010 2:13 pm
Profile
Rookie

Joined: Wed Dec 08, 2010 3:20 am
Posts: 6
Post Re: Microsecond timing on the cortex?
I suggest you get a larger sample, like how many iterations are needed for 10 or even 100 ms.
Should help with precision since 1ms can mean 1,0-1,99... ms while 100ms can mean 100,0-100,9.. ms

//neso


Wed Dec 15, 2010 3:26 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.