Skip to content

Instantly share code, notes, and snippets.

@kylemanna
Created November 28, 2011 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemanna/1402545 to your computer and use it in GitHub Desktop.
Save kylemanna/1402545 to your computer and use it in GitHub Desktop.
U-Boot + TI8148 EVM + TIM7 Counter/Capture
# 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