Electronics > Projects, Designs, and Technical Stuff
Divide by 10000000
<< < (7/10) > >>
magic:
ATtiny84 (or 44/24, whichever you can get cheaper) looks like a perfect device. In addition to full PORT A, it has a PWM output right on the next pin after PORT A, which means that 1MHz generation can be added seamlessly by means of a hardware timer.
bingo600:

--- Quote from: magic on December 04, 2019, 08:40:20 pm ---ATtiny84 (or 44/24, whichever you can get cheaper) looks like a perfect device. In addition to full PORT A, it has a PWM output right on the next pin after PORT A, which means that 1MHz generation can be added seamlessly by means of a hardware timer.

--- End quote ---

Just my thought  - CTC and load (10-1)  into the ocra , pull 1MHz out on the OCRA pin  :-+

/Bingo
magic:
And, with 90% probability, up to nine NOPs to align 1MHz with all the bitbanged clocks ;)
Howardlong:
Today’s bloat programmers approach this using all the flash available filling it with nearly 10 million NOPs, two GPIO twiddles and a jump, and have plenty of time to berate the greybeards who achieved the same task in a dozen bytes of object code.
SiliconWizard:

--- Quote from: Howardlong on December 05, 2019, 11:33:38 am ---Today’s bloat programmers approach this using all the flash available filling it with nearly 10 million NOPs, two GPIO twiddles and a jump, and have plenty of time to berate the greybeards who achieved the same task in a dozen bytes of object code.

--- End quote ---

 ;D

But you forgot to add that the end result would probably only meet the specs remotely. So they may end up with a 9999897 division instead. Oh crap, isn't that good enough? The "user story" didn't even state a required tolerance!

Anyway, if you're not happy with it, just create a new "user story". You may get the fix in a few "sprints", if you're lucky (meaning, if other user stories, such as adding a cute blinking LED, are not scheduled first.)  :-DD
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod