Created
September 19, 2012 15:57
-
-
Save tranthamp/3750462 to your computer and use it in GitHub Desktop.
Beaglebone 200KHz on timer 4 (u-boot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Timer 4, 200KHz from the 24MHz clock | |
// Setup Pin mux | |
mw.l 0x44e10890 0x2 | |
// Enable functional clock | |
mw.l 0x44E00088 0x2 | |
// Write TCRR | |
mw.l 0x4804403C 0xFFFFFF88 | |
// Write TLDR | |
mw.l 0x48044040 0xFFFFFF88 | |
// Write TMAR | |
mw.l 0x4804404C 0xFFFFFFC3 | |
// Write TCLR | |
mw.l 0x48044038 0x1843 // start (auto-reload) | |
mw.l 0x48044038 0x1842 // stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment