Created
November 28, 2011 23:14
-
-
Save kylemanna/1402545 to your computer and use it in GitHub Desktop.
U-Boot + TI8148 EVM + TIM7 Counter/Capture
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
# U-Boot + TI8148 EVM + TIM7 Counter/Capture | |
# Short RA11.4/RA11.5 to 3.3V @ C177 | |
# Mux (pull-up doesn't work in TIM7 MUXMODE) | |
mw.l 0x48140ac8 0x60040 | |
# Config | |
base 0x4804a000 | |
mw.l 0x40 0 | |
mw.l 0x44 1 | |
# Start | |
mw.l 0x38 0x00303 | |
# Clear Flags | |
mw.l 0x28 0x7 | |
# Read Flags (RAW) | |
md.l 0x24 8 | |
while true; do | |
md.l 0x28 1 | |
# TCAR1 Timer Capture 1 | |
md.l 0x50 1 | |
mw.l 0x28 0x7 | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment