# @(#) mitsu.dat 1.1 1992-01-14
# John H. DuBois III 1991-12-21

# Lines beginning with # are comments

name=Mitsubishi VCR/audio/TV remote

# The Mitsubishi remote sensor works fine with a transmitter rate of
# 1600 transitions/sec

# VCR-A codes end in 00; VCR-B codes end in 10
# The codes in this file are for VCR-A

# carrier is the carrier frequency required, in Hz.
# This information may be used by a driver that has access to more than
# one transmitter, or with a system that can set the transmitter frequency.
carrier=40000

# Transmitter codes are given as a string of 1s and 0s in the function code
# table.  The actual IR pulse codes emitted for each 1 and 0 are given by the
# value that "one" and "zero" are set to.  Each character of the values of 
# "one" and "zero" indicates whether the 40 kHz IR transmitter is on for a unit
# of time.  The duration of the unit of time represented by each character of
# the values of "one" and "zero" is given by the value of "cycles".

# cycles is the number of 40 kHz cycles (25 uS periods) represented by each
# character in the definitions of "one" and "zero".
cycles=10

# repeat is the number of times the code should be sent
repeat=3

# pause is the length of time to wait between code repeats.
# It is given in the units given by the definition of "cycles"
# instead of in mS so that equipment that requires a very short
# pause can be accommodated.
pause=100

# sleep is the length of time to wait between sending different codes, 
# in milliseconds
# Actual minimum measured at 25 mS
sleep=40

# zero and one describe the waveform used to transmit a zero and one as given
# in the function table.  A '~' represents a period of tranmitter "on" time,
# during which time the emitter will be modulated by a 40 kHz square wave.
# For each '~', <cycles> IR pulses will be transmitted.  A '_' (underscore)
# represents a period of transmitter "off" time.  The period is given by the
# value of cycles.  
zero=~___
one=~_______

# start and stop give start and stop codes, if any, that cannot be described
# using ones and zeros as used in the function table and so cannot be given
# as prefixes and suffixes.
# start and stop are given in the same representation as zero and one.
# start and stop are the first and last codes transmitted (they are sent
# before and after prefix and suffix, respectively).
start=
stop=

# prefix and suffix give the standard preamble and postamble, if any,
# that come immediately before and after the function code.
# Prefix and suffix are given in the same representation as function codes.
prefix=1110
suffix=

# Remote functions are given as a line of tab-separated fields:
# Code	Key	Word	Label	Vars	Description
# Code is given as a string of 0's and 1's whose meaning is
# in turn given by the definitions of "zero" and "one".
# Remote is the name of the remote that this function is for.
# Key and Word are the key and word that can be used to send this code.
# If Word is a single character, it should be the same as Key.
# Label is the label to put on a button representation of this function.
# Variable assignments that should only have effect for one function
# are given in the Vars field.
# Description is a description of what this function does.
# Any further fields are appended to Description preceded by a newline.
# A function line can be extended onto multiple lines by beginning the
# extension lines with a tab.
# The tab is included in the value, so a field boundary always exists
# between extention lines.

# The following codes are for the remote with the VCR/audio|TV
# switch set to VCR/audio, and with the VCR-A/VCR-B/Audio selection
# set to VCR-A.
# If Audio is selected and a button is pressed which has no Audio function
# (e.g. zero stop), generally the code for whichever of VCR-A and VCR-B was
# last pressed is sent.
# The volume up/down buttons have no VCR function

component=vcr
#Code		Key	Word	Label	Vars	Description
1010100100000	0	0	0	*
	Enter 0 for channel, time, menu selection, or record-program number
1010000000000	1	1	1	*
	Enter 1 for channel, time, menu selection, or record-program number
1010000100000	2	2	2	*
	Enter 2 for channel, time, menu selection, or record-program number
1010000010000	3	3	3	*
	Enter 3 for channel, time, menu selection, or record-program number
1010000110000	4	4	4	*
	Enter 4 for channel, time, menu selection, or record-program number
1010000001000	5	5	5	*
	Enter 5 for channel, time, menu selection, or record-program number
1010000101000	6	6	6	*
	Enter 6 for channel, time, menu selection, or record-program number
1010000011000	7	7	7	*
	Enter 7 for channel, time, menu selection, or record-program number
1010000111000	8	8	8	*
	Enter 8 for channel, time, menu selection, or record-program number
1010100000000	9	9	9	*
	Enter 9 for channel, time, menu selection, or record-program number
1010100100100	{	adjdown	adjust down	*
	Move backward in function menu selection list
1010100000100	}	adjup	adjust up	*
	Move forward in function menu selection list
1010000000100	V	vfunc	video func	*
	Enter video function menu, then cycle between 
	record speed sp,ep/video mute on,off/dub switch on,off
	If video func is sent during play mode, selects sharpness adjustment
1010000010100	a	afunc	audio func	*
	Enter audio function menu, then cycle between monitor st,l,r,mono/
	record sap,l+r/front display bright,dim/level meter on,off
1010110100000	c	cancel	cancel	*
	Within channel manual menu, delete a programmed channel
	Within program timer menu, select a digit to change
	In sharpness adjustment mode, set sharpness to default (0)
1010010010000	d	chdown	channel down	*
	Go down to next programmed channel
1010010100000	u	chup	channel up	*
	Go up to next programmed channel
1010110110000	D	data	data on screen	*
	Display channel, operating mode, and tape remaining time on screen
1010101011000	e	enter	enter	*
	Enter value for channel memory, time set, etc.
1010101001000	/	fast	fast play	*
	If in play mode, select fast play (slower than fast forward)
1010010111000	i	input	input select	*
	Select VCR tuner/external video as VCR input (ignored during playback)
1010010010100	m	menu	menu	*
	Enter/exit main VCR menu.  If in a submenu, return to main menu.
	Menu can be entered if video/tv is set to TV, but will not show.
	Menu selections are: 1) Time set; 2) Program timer; 3) Ch auto
	program; 4) Ch manual program; 5) Search by time; 6) Counter set
	Ch auto & manual only work if VCR input is set to tuner
m,1		t	time		set time	*
	Set VCR clock.  Send 1..7 to select Sunday..Saturday, then send enter,
	then send time as hhmm, then send enter, then send 1 or 2 to select AM
	or PM, then send enter to return to VCR menu.  
	Seconds are set to 0 when the last enter is sent.
m,2		T	program		program timer	*
	Enter VCR automatic recording programming menu.
	Send program number as n.  Send cancel to cancel a previously
	programmed selection, or: Send channel as nnn, or send input to
	select external video sources.  Send cancel to start channel
	selection over.  Send enter, then select week: send 1 for this week,
	2 for next, 3 for 3rd, 4 for 4th, 5 for every, or 6 for every Mon-Fri.
	Send enter.  If 6 was not sent, then send 1..7 to select Sun..Sat and
	send enter.  Send hhmm to select start time and send enter.
	Send 1 or 2 to select AM or PM and send enter.  Send hhmm to select
	end time and send enter.  Select recording speed: send 1 for standard
	play, or 2 for extended play and send enter.  VCR returns to Program
	timer menu.
m,3		A	autoprog	chan auto prog	*
	Enter automatic channel programming menu.
	Send 1 to select cable TV channel numbering, 2 to select VHF/UHF
	channel numbering, 3 to list programmed channels, or enter to start 
	auto programming.  When doing programmed channel listing, screens of 
	channel numbers are cycled through one screenful at a time.  Send menu 
	to return to main menu.  If listing is allowed to finish, VCR menu will
	exit.  When doing auto programming, send menu to abort and return to
	main menu.
m,4		M	manprog		chan man prog	*
	Enter manual channel programming facility.
	Video mute must be on.  Select channels using 0-9 or with up and down,
	and send enter to add the channel or cancel to delete it.
m,5		s	timesrch	search by time	*
	Enter time search facility.
	Send time location to skip to as hmmss, then send enter.  Send cancel
	before sending enter to cancel a time and start entering it again.
	Play mode is entered when the location has been skipped to.
m,6		C	counter		counter set	*
	Enter counter set facility.
	Send time to set counter to as hmmss, then send enter.  Send cancel
	before sending enter to cancel a time and start entering it again.
1010111101000	o	otr	1-touch record	*
	Start recording, then cycle between recording for 
	0:15-0:30-0:45..3:45-4:00-to end of tape-0:00 minutes
	VCR turns off at end of recording
1010001110000	"	pause	pause/still	*
	Pause/unpause recording or playback
1010001000000	p	play	play	*
	Play tape
1010010000000	P	power	power	*
	Power on/off (enter auto-record standby, if set)
1010101101000	<	rplay	reverse play	*
	Play at normal speed in reverse
1010001100000	R	record	record	*
	Begin recording the selected input source
1010111010000	;	repeat	repeat	*
	Select repeat playback or auto return/Unselect repeat or auto return
	If sent in OTR mode, tape will rewind when done
1010001101000	r	rewind	rewind	*
	In stop mode, rewind tape.
	In rewind mode, reverse play tape at very high speed for as long as
	sent, then return to rewind.
	In play mode, reverse play at high speed/return to normal speed.  
	In play mode, send for 1 second to reverse play at very high speed.
1010001001000	F	forward	fast forward	*
	In stop mode, wind tape fast forward.
	In wind fast forward mode, play tape at very high speed for as long as
	sent, then return to wind fast forward.
	In play mode, play at high speed/return to normal speed.  
	In play mode, send for 1 second to play at very high speed.
1010101111000	]	skipfwd	skip srch fwd	*
	Search for index marks; play for 5 seconds at each mark found
],r		[	skipback	skip srch back	*
	Search backward for index marks; play for 5 seconds at each mark found
1010011100000	+	+	slow +	*
	In slow motion mode, increase speed.
	In stop or normal play mode, search forward for index mark.
1010011010000	-	-	slow -	*
	In slow motion mode, decrease speed.
	In stop or normal play mode, search backward for index mark.
1010001011000	f	slowfwd	slow forward	*
	In normal play mode, enter slow motion playback mode.
	In pause mode, advance one frame
1010001010000	.	stop	stop	*
	Stop tape play
1010101000000	v	vid/tv	video/tv	*
	Pass VCR video signal/RF input to television
1010101100000	z	zero	zero stop	*
	Fast forward or rewind until counter reaches 0h00m00s, then stop

# The following codes are for the remote with the VCR/audio|TV
# switch set to VCR/audio, and with the VCR-A/VCR-B/Audio selection
# set to Audio.
# These are the only buttons listed as having meaning to a Mitsubishi AV
# receiver.
# If a button is pressed which has no Audio function (e.g. zero stop),
# generally the code for whichever of VCR-A and VCR-B was last pressed is sent.

component=audio
#Code		Key	Word	Label		Vars	Description
1110100100100	{	adjdown	adjust down	*
1110100000100	}	adjup	adjust up	*
1110000010100	A	afunc	audio func	*
1110010010000	d	chdown	channel down	*
1110010100000	u	chup	channel up	*
1010010111010	i	input	input select	*
1110010000000	P	power	power		*
1110010101000	D	down	volume down	*
1110010001000	U	up	volume up	*
#
# The following codes are for the remote with the VCR/audio|TV
# switch set to TV.
# The VCR-A/VCR-B/Audio switch does not have any effect when the 
# VCR/audio|TV switch is set to TV.
# These are the only buttons listed as having meaning to a Mitsubishi TV.
#
component=tv
#Code		Key	Word	Label		Vars	Description
0010100100100	{	adjdown	adjust down	*
0010100000100	}	adjup	adjust up	*
0010000010100	A	afunc	audio func	*
0010010010000	d	chdown	channel down	*
0010010100000	u	chup	channel up	*
1010010111000	i	input	input select	*
0010010000000	P	power	power		*
0010000000100	v	vfunc	video func	*
0010010101000	D	down	volume down	*
0010010001000	U	up	volume up	*