# this config file was generated with the help of
# xmode2-0.7.0 on 2004-11-08
#
# contributed by Adrien Beau <adrien.put_my_name_here@free.fr>
#
# brand:                       Kenwood
# model no. of remote control: RC-SA70
# devices being controlled by this remote: R-SA7 X-SA7 DP-SA7
#
# This remote is sold as part of the R-SA7 package, and is used to
# control most of the SA-7 components; I doubt other appliances
# respond to its commands. The SA-7 is a micro-sized high-fidelity
# modular sound system: the R-SA7 is a pure-A amplifier and an
# AM/FM tuner; the X-SA7 is a tape player; the DP-SA7 is a Compact
# Disc player; and the DM-SA7 is a MiniDisc player.
#
# The RC-SA70 uses an altered NEC encoding: one of the address
# bytes is almost always null instead of being the complement of
# the other byte.
#
# The timings and protocol information for the NEC encoding were
# obtained from http://www.ustr.net/infrared/nec.shtml
# This helped me ensure that the information below is accurate and
# can be used as a basis for other NEC-encoded remotes. I had to
# increase the eps to 50% before the remote could be read by my
# SIR dongle. The gap was measured with xmode2, and tuned to get
# better key repeats.

begin remote

  name  Kenwood_RC-SA70
  bits           32
  flags SPACE_ENC|REVERSE
  eps            50
  aeps          100

  header       8960  4200
  one           560  1680
  zero          560   560
  ptrail        560
  gap          85000
  repeat       8960  2240
  frequency    36000

      begin codes
	'TAPE_BACKWARD'       0x0000000027D800B8    # Tape_Backward
	'TAPE_STOP'           0x0000000022DD00B8    # Tape_Stop
	'TAPE_FORWARD'        0x0000000026D900B8    # Tape_Forward
	'TAPE_FAST_BACKWARD'  0x0000000025DA00B8    # Tape_Fast_Backward
	'TAPE_PAUSE'          0x0000000023DC00B8    # Tape_Pause
	'TAPE_FAST_FORWARD'   0x0000000024DB00B8    # Tape_Fast_Forward
	'ONE'                 0x000000007E8100B8    # One
	'TWO'                 0x000000007D8200B8    # Two
	'THREE'               0x000000007C8300B8    # Three
	'FOUR'                0x000000007B8400B8    # Four
	'FIVE'                0x000000007A8500B8    # Five
	'SIX'                 0x00000000798600B8    # Six
	'SEVEN'               0x00000000788700B8    # Seven
	'EIGHT'               0x00000000778800B8    # Eight
	'NINE'                0x00000000768900B8    # Nine
	'EDIT'                0x0000000032CD00B8    # Edit
	'ZERO'                0x000000007F8000B8    # Zero
	'PLUS_TEN'            0x00000000F20D00B8    # Plus_Ten
	'RDS_DISPLAY'         0x00000000A75800B8    # RDS_Display
	'TA_NEWS_INFO'        0x000000003FC002B8    # TA_News_Info
	'PTY'                 0x00000000639C01B8    # PTY
	'TUNER_BAND'          0x00000000708F00B8    # Tuner_Band
	'CD_PREVIOUS_TRACK'   0x00000000F90601B8    # CD_Previous_Track
	'CD_NEXT_TRACK'       0x00000000F80701B8    # CD_Next_Track
	'CD_PLAY_PAUSE'       0x0000000034CB00B8    # CD_Play_Pause
	'CD_STOP'             0x0000000036C900B8    # CD_Stop
	'CD_RANDOM'           0x000000002BD401B8    # CD_Random
	'POWER'               0x00000000629D00B8    # Power
	'INPUT'               0x0000000033CC01B8    # Input
	'OTE'                 0x00000000F60902B8    # OTE
	'CLEAR'               0x0000000035CA00B8    # Clear
	'PMODE'               0x000000003BC400B8    # PMode
	'SLEEP'               0x00000000689700B8    # Sleep
	'MUTE'                0x00000000639C00B8    # Mute
	'VOLUMEUP'            0x00000000649B00B8    # Volume_Up
	'VOLUMEDOWN'          0x00000000659A00B8    # Volume_Down
      end codes

end remote
