#
# brand:             Philips
# model:             SBC RU 520
# supported devices: TV, VCR
# contributed by:    Maarten ter Huurne
#
# This is a remote control in the SBC RU 500 series:
#   SBC RU 510 supports 1 device (TV)
#   SBC RU 520 supports 2 devices (TV, VCR)
#   SBC RU 530 supports 3 devices (TV, VCR, SAT)
#   SBC RU 540 supports 4 devices (TV, VCR, SAT, DVD)
# Since I have a 520, only the TV and VCR keys are in this config file.
# The 5x0 models are black, there are also 5x5 models in silver.
#
# This remote is reprogrammable; the configuration below is for the default
# configuration. The remote's manual tells you how to restore the default
# configuration if necessary.
#
# The volume +/- and mute are always sent to the TV, regardless of the
# current mode. The remote does not send some keys at all in some modes,
# for example the record button does nothing in TV mode. You can see
# whether a button is sent or not by looking at the mode selection led,
# which flashes every time a button is sent.
# 
# You can find images and the manual of this remote here:
#   http://www.ce.philips.com/
# Direct link: (not sure this will continue to work)
#   http://www.ce.philips.com/global/b2c/ce/catalog/product.jhtml?divId=0&groupId=CONVENIENCE&catId=SOUNDANDVISIONACCESSORIES_CAT&subCatId=UNIVERSALREMOTECONTROLS&productId=SBCRU520_00
#
# Note: I copied the timing settings from the "sbc-rp420" config file,
#       which was contributed by Thomas Betker.
#       The irrecord tool was unable to figure the timing settings out,
#       probably because the Hauppauge analog TV card I use (lirc_i2c
#       driver) does most of the decoding internally.
#       I also kept the key naming as close to "sbc-rp420" as possible.
#

begin remote

  name         Philips/SBC-RU-520
  bits         13
  flags        RC5|CONST_LENGTH
  eps          30
  aeps         100

  one          932  847
  zero         932  847
  plead        976
  gap          113935
# irrecord found:
# gap          199995
  toggle_bit   2

      begin codes
# regular TV codes:
                         0x000000000000100C
                            0x000000000000103C
                      0x0000000000001029
                      0x000000000000102B
                          0x000000000000103F
                            0x000000000000100D
                             0x0000000000001038
                        0x0000000000001020
                        0x0000000000001021
                         0x0000000000001010
                         0x0000000000001011
                            0x0000000000000012
                              0x0000000000000017
                               0x0000000000001001
                               0x0000000000001002
                               0x0000000000001003
                               0x0000000000001004
                               0x0000000000001005
                               0x0000000000001006
                               0x0000000000001007
                               0x0000000000001008
                               0x0000000000001009
                               0x0000000000001000
                          0x000000000000100A
                             0x000000000000002B
                           0x000000000000002C
                          0x000000000000002D
                            0x000000000000002E
                            0x000000000000002F
# shift TV codes:
                           0x0000000000001023
                            0x000000000000100F
                       0x0000000000000010
                       0x0000000000000011
                           0x0000000000000016
                           0x0000000000000015
                           0x000000000000003A
                             0x000000000000100F
                              0x000000000000100E
                              0x000000000000102E
                              0x000000000000102A
                              0x000000000000102D
                              0x000000000000101D
                              0x0000000000000018
                              0x000000000000000E
                              0x000000000000003E
                              0x000000000000000D
                              0x0000000000001022
                         0x000000000000100B
# regular VCR codes:
                        0x000000000000114C
                           0x000000000000117C
                     0x000000000000115D
                     0x0000000000000145
                         0x000000000000114F
                            0x0000000000001178
                       0x0000000000001160
                       0x0000000000001161
                           0x0000000000000152
                             0x0000000000000157
                              0x0000000000001141
                              0x0000000000001142
                              0x0000000000001143
                              0x0000000000001144
                              0x0000000000001145
                              0x0000000000001146
                              0x0000000000001147
                              0x0000000000001148
                              0x0000000000001149
                              0x0000000000001140
                         0x000000000000114A
                       0x0000000000001172
                           0x0000000000001176
                          0x0000000000001170
                        0x0000000000001174
                           0x0000000000001175
                         0x0000000000001177
# shift VCR codes:
                          0x000000000000117D
                    0x000000000000114B
                    0x000000000000117A
                       0x0000000000001171
                      0x0000000000000150
                      0x0000000000000151
                          0x0000000000000155
                          0x0000000000000156
                          0x0000000000000153
                            0x000000000000017D
                             0x000000000000114E
                             0x0000000000000149
                             0x0000000000000148
                      0x0000000000001165
                          0x0000000000000171
                         0x0000000000001169
                       0x0000000000001166
                          0x0000000000000170
      end codes

end remote
