View Single Post
Old 09-08-2014, 01:16 AM   #1093 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
Ya, there are actually 2 pins toggling at 50KHz. When one is low, the other is high. And it's a very stable exact duty of 50%, within maybe 99.999% or something like that. And there are no interrupts or anything. It's just NOPs and a while loop, counted exactly so that the high time and low time are identical cycles, verified in a cycle counting simulator, and also verified on an oscilloscope.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
e*clipse (09-08-2014)