Skip to content

Instantly share code, notes, and snippets.

@tranthamp
Created September 19, 2012 15:57
Show Gist options
  • Save tranthamp/3750462 to your computer and use it in GitHub Desktop.
Save tranthamp/3750462 to your computer and use it in GitHub Desktop.
Beaglebone 200KHz on timer 4 (u-boot)
// 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