Index: output/eeprom.dat
===================================================================
--- /YC1308AF/branch/mouse/YDN_Project/USB_64K/output/eeprom.dat	(revision 3422)
+++ /YC1308AF/branch/mouse/YDN_Project/USB_64K/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ca
+d2
 04
 c2
 84
@@ -11,23 +11,23 @@
 c0
 41
 80
-36
+38
 c0
 42
 80
-3d
+3f
 c0
 45
 00
-4b
+4d
 c0
 45
 80
-51
+53
 c0
 46
 00
-90
+92
 c0
 56
 80
@@ -35,11 +35,11 @@
 c0
 5d
 00
-5e
+60
 c0
 5d
 80
-60
+62
 20
 20
 13
@@ -47,39 +47,47 @@
 c0
 46
 00
-b6
+b8
 c0
 47
 00
-ba
+bc
 c0
 49
 80
-ca
+cc
 c0
 53
 80
-a5
+a7
 c0
 70
 00
-d0
+d2
 c0
 72
 00
-e1
+e3
 c0
 73
 01
-19
+1b
 20
 20
 13
 7e
+70
+41
+82
+3a
+20
+40
+15
+54
 58
 00
 00
-1d
+1f
 67
 e1
 49
@@ -87,7 +95,7 @@
 58
 00
 00
-21
+23
 67
 e1
 48
@@ -111,7 +119,7 @@
 58
 00
 00
-2f
+31
 67
 e1
 48
@@ -143,7 +151,7 @@
 c0
 00
 00
-26
+28
 c0
 00
 b6
@@ -151,7 +159,7 @@
 c0
 07
 80
-81
+83
 20
 60
 00
@@ -187,11 +195,11 @@
 20
 40
 00
-ae
+b0
 20
 20
 00
-27
+29
 6f
 e0
 c9
@@ -199,7 +207,7 @@
 c0
 02
 00
-32
+34
 20
 20
 37
@@ -215,11 +223,11 @@
 20
 40
 00
-ab
+ad
 20
 20
 00
-31
+33
 70
 89
 00
@@ -255,7 +263,7 @@
 24
 3a
 00
-46
+48
 20
 40
 4d
@@ -311,7 +319,7 @@
 24
 3a
 00
-4e
+50
 20
 20
 12
@@ -367,7 +375,7 @@
 20
 40
 00
-85
+87
 20
 40
 62
@@ -383,7 +391,7 @@
 20
 40
 00
-5c
+5e
 20
 20
 37
@@ -403,7 +411,7 @@
 20
 40
 00
-65
+67
 20
 20
 37
@@ -415,11 +423,11 @@
 20
 40
 00
-68
+6a
 20
 20
 00
-74
+76
 6f
 e0
 c9
@@ -535,7 +543,7 @@
 20
 20
 00
-82
+84
 6f
 e0
 c8
@@ -543,7 +551,7 @@
 c0
 07
 80
-89
+8b
 70
 49
 40
@@ -627,7 +635,7 @@
 20
 40
 00
-8b
+8d
 1f
 e6
 7e
@@ -651,7 +659,7 @@
 24
 20
 80
-a3
+a5
 58
 00
 00
@@ -763,7 +771,7 @@
 c0
 00
 00
-bf
+c1
 20
 20
 7a
@@ -787,7 +795,7 @@
 c0
 00
 80
-c5
+c7
 20
 20
 7a
@@ -799,7 +807,7 @@
 c0
 04
 80
-c8
+ca
 20
 20
 7a
@@ -882,14 +890,6 @@
 c6
 20
 40
-12
-07
-20
-00
-00
-64
-20
-40
 23
 e3
 20
@@ -897,6 +897,14 @@
 22
 47
 20
+00
+01
+2c
+20
+40
+12
+07
+20
 40
 21
 ff
@@ -911,15 +919,15 @@
 c0
 55
 00
-e6
+e8
 c0
 2a
 80
-f0
+f2
 c0
 11
 01
-00
+02
 20
 20
 23
@@ -931,11 +939,11 @@
 c0
 00
 80
-ea
+ec
 c0
 01
 00
-ed
+ef
 20
 60
 00
@@ -971,7 +979,7 @@
 20
 3a
 00
-f6
+f8
 6f
 e2
 48
@@ -995,11 +1003,11 @@
 c0
 00
 80
-fa
+fc
 c0
 01
 00
-fd
+ff
 20
 60
 00
@@ -1035,7 +1043,7 @@
 20
 3a
 01
-06
+08
 6f
 e2
 48
@@ -1059,11 +1067,11 @@
 c0
 00
 81
-0a
+0c
 c0
 01
 01
-12
+14
 20
 60
 00
@@ -1083,7 +1091,7 @@
 c0
 01
 01
-0f
+11
 20
 60
 00
@@ -1115,7 +1123,7 @@
 c0
 80
 01
-17
+19
 20
 60
 00
@@ -1143,7 +1151,7 @@
 20
 40
 01
-28
+2a
 6f
 e0
 c8
@@ -1211,7 +1219,7 @@
 20
 40
 01
-2f
+31
 20
 20
 23
@@ -1228,8 +1236,8 @@
 20
 23
 d6
-fb
-31
+25
+a0
 aa
 55
 40
@@ -1355,16 +1363,8 @@
 55
 97
 0e
-aa
-ae
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+81
+b5
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-1d
-42
+b6
+89
Index: output/program.lis
===================================================================
--- /YC1308AF/branch/mouse/YDN_Project/USB_64K/output/program.lis	(revision 3422)
+++ /YC1308AF/branch/mouse/YDN_Project/USB_64K/output/program.lis	(working copy)
@@ -1,429 +1,431 @@
               include "bt_format "
               org 0x0000
 0000 c284000a bbit1 8 ,pf_patch_ext 
-0001 c0418036 beq patch10_3 ,p_set_sync_on 
-0002 c042803d beq patch10_5 ,p_rf_rx_enable 
-0003 c045004b beq patch11_2 ,p_txon_next 
-0004 c0458051 beq patch11_3 ,p_initialize_radio_cont 
-0005 c0460090 beq patch11_4 ,p_save_rssi 
+0001 c0418038 beq patch10_3 ,p_set_sync_on 
+0002 c042803f beq patch10_5 ,p_rf_rx_enable 
+0003 c045004d beq patch11_2 ,p_txon_next 
+0004 c0458053 beq patch11_3 ,p_initialize_radio_cont 
+0005 c0460092 beq patch11_4 ,p_save_rssi 
 0006 c0568012 beq patch15_5 ,p_app_init 
-0007 c05d005e beq patch17_2 ,p_dongle_usb_dispatch 
-0008 c05d8060 beq patch17_3 ,p_dongle_work_mode_auto 
+0007 c05d0060 beq patch17_2 ,p_dongle_usb_dispatch 
+0008 c05d8062 beq patch17_3 ,p_dongle_work_mode_auto 
 0009 2020137e branch loop 
 
 pf_patch_ext:
-000a c04600b6 beq patch31_4 ,p_usb_init 
-000b c04700ba beq patch31_6 ,p_usb_class_type 
-000c c04980ca beq patch32_3 ,p_usb_tx 
-000d c05380a5 beq patch34_7 ,p_le_enable 
-000e c07000d0 beq patch3c_0 ,p_g24_receive_skip_end 
-000f c07200e1 beq patch3c_4 ,p_g24_bind_data_parse_next 
-0010 c0730119 beq patch3c_6 ,p_g24_bind_mode_auto 
+000a c04600b8 beq patch31_4 ,p_usb_init 
+000b c04700bc beq patch31_6 ,p_usb_class_type 
+000c c04980cc beq patch32_3 ,p_usb_tx 
+000d c05380a7 beq patch34_7 ,p_le_enable 
+000e c07000d2 beq patch3c_0 ,p_g24_receive_skip_end 
+000f c07200e3 beq patch3c_4 ,p_g24_bind_data_parse_next 
+0010 c073011b beq patch3c_6 ,p_g24_bind_mode_auto 
 0011 2020137e branch loop 
 
 p_app_init:
 
 p_dongle_init:
-0012 5800001d setarg p_g24_bind_continue_timer 
-0013 67e14952 store 2 ,mem_cb_24g_bind_continue 
-0014 58000021 setarg p_dongle_dispatch 
-0015 67e1488d store 2 ,mem_cb_24g_receive_process 
-0016 5800379c setarg dongle_g24_mouse 
-0017 67e14891 store 2 ,mem_cb_24g_data_device1 
-0018 580037ad setarg dongle_g24_kb 
-0019 67e14893 store 2 ,mem_cb_24g_data_device2 
-001a 5800002f setarg p_dongle_ackpayload_prep 
-001b 67e1488f store 2 ,mem_cb_24g_ackpayload 
-001c 202036a2 branch dongle_init + 8 
+0012 7041823a jam 0x3a ,mem_lpm_ctrl3 
+0013 20401554 call lpm_write_sel_vdd 
+0014 5800001f setarg p_g24_bind_continue_timer 
+0015 67e14952 store 2 ,mem_cb_24g_bind_continue 
+0016 58000023 setarg p_dongle_dispatch 
+0017 67e1488d store 2 ,mem_cb_24g_receive_process 
+0018 5800379c setarg dongle_g24_mouse 
+0019 67e14891 store 2 ,mem_cb_24g_data_device1 
+001a 580037ad setarg dongle_g24_kb 
+001b 67e14893 store 2 ,mem_cb_24g_data_device2 
+001c 58000031 setarg p_dongle_ackpayload_prep 
+001d 67e1488f store 2 ,mem_cb_24g_ackpayload 
+001e 202036a2 branch dongle_init + 8 
 
 p_g24_bind_continue_timer:
-001d 6fe0c950 fetch 1 ,mem_g24_bind_success 
-001e 247a0000 nrtn blank 
-001f 70495001 jam 1 ,mem_g24_bind_success 
-0020 202023ca branch g24_binding_dvc1_living 
+001f 6fe0c950 fetch 1 ,mem_g24_bind_success 
+0020 247a0000 nrtn blank 
+0021 70495001 jam 1 ,mem_g24_bind_success 
+0022 202023ca branch g24_binding_dvc1_living 
 
 p_dongle_dispatch:
-0021 6fe0c8bd fetch 1 ,mem_24g_pair_mode 
-0022 c0000026 beq 0x00 ,p_dongle_auto_bind 
-0023 c000b6fd beq 0x01 ,dongle_pc_bind 
-0024 c0078081 beq 0x0f ,p_dongle_all_powerful 
-0025 20600000 rtn 
+0023 6fe0c8bd fetch 1 ,mem_24g_pair_mode 
+0024 c0000028 beq 0x00 ,p_dongle_auto_bind 
+0025 c000b6fd beq 0x01 ,dongle_pc_bind 
+0026 c0078083 beq 0x0f ,p_dongle_all_powerful 
+0027 20600000 rtn 
 
 p_dongle_auto_bind:
-0026 2040243a call g24_mode_switch_init 
+0028 2040243a call g24_mode_switch_init 
 
 p_dongle_auto_bind_loop:
-0027 2040243e call g24_mode_switch_bind_work 
-0028 20402464 call g24_mode_switch_bind_search 
-0029 2040376b call dongle_work_mode_auto 
-002a 2040249c call g24_bind_mode_auto 
-002b 204024b9 call g24_search_mode_auto 
-002c 2040372f call dongle_usb_dispatch 
-002d 204000ae call p_timer_check 
-002e 20200027 branch p_dongle_auto_bind_loop 
+0029 2040243e call g24_mode_switch_bind_work 
+002a 20402464 call g24_mode_switch_bind_search 
+002b 2040376b call dongle_work_mode_auto 
+002c 2040249c call g24_bind_mode_auto 
+002d 204024b9 call g24_search_mode_auto 
+002e 2040372f call dongle_usb_dispatch 
+002f 204000b0 call p_timer_check 
+0030 20200029 branch p_dongle_auto_bind_loop 
 
 p_dongle_ackpayload_prep:
-002f 6fe0c94f fetch 1 ,mem_g24_bind_step 
-0030 c0020032 beq 4 ,p_g24_bind_dvc1_exit 
+0031 6fe0c94f fetch 1 ,mem_g24_bind_step 
+0032 c0020034 beq 4 ,p_g24_bind_dvc1_exit 
 
 p_dongle_ackpayload_prep_end:
-0031 20203773 branch dongle_ackpayload_prep 
+0033 20203773 branch dongle_ackpayload_prep 
 
 p_g24_bind_dvc1_exit:
-0032 7048c301 jam dongle_bind ,mem_24g_work_mode 
-0033 70495101 jam 1 ,mem_g24_bind_continue_enable 
-0034 204000ab call p_timer_init 
-0035 20200031 branch p_dongle_ackpayload_prep_end 
+0034 7048c301 jam dongle_bind ,mem_24g_work_mode 
+0035 70495101 jam 1 ,mem_g24_bind_continue_enable 
+0036 204000ad call p_timer_init 
+0037 20200033 branch p_dongle_ackpayload_prep_end 
 
 p_set_sync_on:
-0036 70890005 jam 0x5 ,modem_en 
-0037 20000002 nop 2 
-0038 70890000 jam 0x0 ,modem_en 
-0039 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-003a c0841164 bne xtal_16m ,set_sync_on_24m 
+0038 70890005 jam 0x5 ,modem_en 
+0039 20000002 nop 2 
+003a 70890000 jam 0x0 ,modem_en 
+003b 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+003c c0841164 bne xtal_16m ,set_sync_on_24m 
 
 p_set_sync_on_16m:
-003b 708a8729 jam 0x29 ,core_syn_afc_cfg1 
-003c 20201179 branch set_sync_on_16m 
+003d 708a8729 jam 0x29 ,core_syn_afc_cfg1 
+003e 20201179 branch set_sync_on_16m 
 
 p_rf_rx_enable:
-003d 6fe0c940 fetch 1 ,mem_soft_agc_en 
-003e 243a0046 nbranch p_rf_rx_enable_soft_agc ,blank 
-003f 20404d05 call rf_debug_rx_gpio_high 
-0040 d8c041eb arg mem_gain_table ,contr 
-0041 98c08c00 iadd contr ,contr 
-0042 efe08006 ifetch 1 ,contr 
-0043 67f08961 store 1 ,core_rf_rx_gain_fix 
-0044 7089602e jam 0x2e ,core_rf_rx_agc_ctrl 
-0045 202011af branch rf_rx_enable_no_soft_agc_next 
+003f 6fe0c940 fetch 1 ,mem_soft_agc_en 
+0040 243a0048 nbranch p_rf_rx_enable_soft_agc ,blank 
+0041 20404d05 call rf_debug_rx_gpio_high 
+0042 d8c041eb arg mem_gain_table ,contr 
+0043 98c08c00 iadd contr ,contr 
+0044 efe08006 ifetch 1 ,contr 
+0045 67f08961 store 1 ,core_rf_rx_gain_fix 
+0046 7089602e jam 0x2e ,core_rf_rx_agc_ctrl 
+0047 202011af branch rf_rx_enable_no_soft_agc_next 
 
 p_rf_rx_enable_soft_agc:
-0046 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
-0047 1fe1fe01 or pdata ,0x01 ,pdata 
-0048 67f08960 store 1 ,core_rf_rx_agc_ctrl 
-0049 70896108 jam 0x08 ,core_rf_rx_gain_fix 
-004a 202011af branch rf_rx_enable_no_soft_agc_next 
+0048 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
+0049 1fe1fe01 or pdata ,0x01 ,pdata 
+004a 67f08960 store 1 ,core_rf_rx_agc_ctrl 
+004b 70896108 jam 0x08 ,core_rf_rx_gain_fix 
+004c 202011af branch rf_rx_enable_no_soft_agc_next 
 
 p_txon_next:
-004b 6fe0c940 fetch 1 ,mem_soft_agc_en 
-004c 243a004e nbranch p_set_tx_power_f20db ,blank 
-004d 20201237 branch set_tx_power_10db 
+004d 6fe0c940 fetch 1 ,mem_soft_agc_en 
+004e 243a0050 nbranch p_set_tx_power_f20db ,blank 
+004f 20201237 branch set_tx_power_10db 
 
 p_set_tx_power_f20db:
-004e 708a3953 jam 0x53 ,core_tx_pwr_ctrl0 
-004f 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
-0050 20201226 branch set_rf_ldo_cfg89 
+0050 708a3953 jam 0x53 ,core_tx_pwr_ctrl0 
+0051 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
+0052 20201226 branch set_rf_ldo_cfg89 
 
 p_initialize_radio_cont:
-0051 7041eaff jam 0xff ,mem_gain_fix 
-0052 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
-0053 70892140 jam 0x40 ,0x8921 
-0054 70486702 jam 0x02 ,mem_24g_rx_phy 
-0055 70486802 jam 0x02 ,mem_24g_tx_phy 
-0056 70487a01 jam 0x01 ,mem_24g_disable_fec1 
-0057 7048bc1e jam 0x1e ,mem_24g_hop_interval 
-0058 7048d701 jam 1 ,mem_24g_b_s_mode_switch_disable 
-0059 20401252 call initialize_radio_cont + 1 
-005a 20400085 call p_g24_fast_conn_mode_check 
-005b 204062a4 call wdt_set_enable 
+0053 7041eaff jam 0xff ,mem_gain_fix 
+0054 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
+0055 70892140 jam 0x40 ,0x8921 
+0056 70486702 jam 0x02 ,mem_24g_rx_phy 
+0057 70486802 jam 0x02 ,mem_24g_tx_phy 
+0058 70487a01 jam 0x01 ,mem_24g_disable_fec1 
+0059 7048bc1e jam 0x1e ,mem_24g_hop_interval 
+005a 7048d701 jam 1 ,mem_24g_b_s_mode_switch_disable 
+005b 20401252 call initialize_radio_cont + 1 
+005c 20400087 call p_g24_fast_conn_mode_check 
+005d 204062a4 call wdt_set_enable 
 
 p_wdt_kick:
-005c 5800007d setarg 125 
-005d 20206295 branch wdt_init_config 
+005e 5800007d setarg 125 
+005f 20206295 branch wdt_init_config 
 
 p_dongle_usb_dispatch:
-005e 2040005c call p_wdt_kick 
-005f 20203730 branch dongle_usb_dispatch + 1 
+0060 2040005e call p_wdt_kick 
+0061 20203730 branch dongle_usb_dispatch + 1 
 
 p_dongle_work_mode_auto:
-0060 6fe0c8c3 fetch 1 ,mem_24g_work_mode 
-0061 c1800000 rtnne dongle_work 
-0062 20402497 call g24_work_mode_start 
-0063 20400065 call p_dongle_g24_blank_data_process 
-0064 20203770 branch dongle_work_mode_auto + 5 
+0062 6fe0c8c3 fetch 1 ,mem_24g_work_mode 
+0063 c1800000 rtnne dongle_work 
+0064 20402497 call g24_work_mode_start 
+0065 20400067 call p_dongle_g24_blank_data_process 
+0066 20203770 branch dongle_work_mode_auto + 5 
 
 p_dongle_g24_blank_data_process:
-0065 20403705 call dongle_g24_ms_blank_data 
-0066 20400068 call p_dongle_g24_kb_blank_data 
-0067 20200074 branch p_dongle_g24_kb_mul_blank_data 
+0067 20403705 call dongle_g24_ms_blank_data 
+0068 2040006a call p_dongle_g24_kb_blank_data 
+0069 20200076 branch p_dongle_g24_kb_mul_blank_data 
 
 p_dongle_g24_kb_blank_data:
-0068 6fe0c912 fetch 1 ,mem_dg_kb_blank_data_enable 
-0069 207a0000 rtn blank 
-006a d8e0000e arg timer_kb_blank ,queue 
-006b 20407de9 call timer_check 
-006c 247a0000 nrtn blank 
-006d 70491200 jam 0 ,mem_dg_kb_blank_data_enable 
-006e d8a00c0f arg mem_usb_kb_data ,contw 
-006f df200002 arg 2 ,loopcnt 
-0070 20407d8c call memset0 
-0071 6fe40c0f fetch 8 ,mem_usb_kb_data 
-0072 67e448fe store 8 ,mem_dg_kb_data_last_data 
-0073 2020371d branch dongle_usb_tx_kb_data 
+006a 6fe0c912 fetch 1 ,mem_dg_kb_blank_data_enable 
+006b 207a0000 rtn blank 
+006c d8e0000e arg timer_kb_blank ,queue 
+006d 20407de9 call timer_check 
+006e 247a0000 nrtn blank 
+006f 70491200 jam 0 ,mem_dg_kb_blank_data_enable 
+0070 d8a00c0f arg mem_usb_kb_data ,contw 
+0071 df200002 arg 2 ,loopcnt 
+0072 20407d8c call memset0 
+0073 6fe40c0f fetch 8 ,mem_usb_kb_data 
+0074 67e448fe store 8 ,mem_dg_kb_data_last_data 
+0075 2020371d branch dongle_usb_tx_kb_data 
 
 p_dongle_g24_kb_mul_blank_data:
-0074 6fe0c913 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
-0075 207a0000 rtn blank 
-0076 d8e0000c arg timer_kb_mul_blank ,queue 
-0077 20407de9 call timer_check 
-0078 247a0000 nrtn blank 
-0079 70491300 jam 0 ,mem_dg_kb_mul_blank_data_enable 
-007a d8a00c1f arg mem_usb_kb_multikey ,contw 
-007b df200002 arg 2 ,loopcnt 
-007c 20407d8c call memset0 
-007d 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
-007e 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
-007f 67e1c909 store 3 ,mem_dg_kb_multikey_last_data 
-0080 2020372d branch dongle_usb_tx_multikey_data 
+0076 6fe0c913 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
+0077 207a0000 rtn blank 
+0078 d8e0000c arg timer_kb_mul_blank ,queue 
+0079 20407de9 call timer_check 
+007a 247a0000 nrtn blank 
+007b 70491300 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+007c d8a00c1f arg mem_usb_kb_multikey ,contw 
+007d df200002 arg 2 ,loopcnt 
+007e 20407d8c call memset0 
+007f 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
+0080 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
+0081 67e1c909 store 3 ,mem_dg_kb_multikey_last_data 
+0082 2020372d branch dongle_usb_tx_multikey_data 
 
 p_dongle_all_powerful:
-0081 20402493 call g24_switch_work_mode 
+0083 20402493 call g24_switch_work_mode 
 
 p_dongle_all_powerful_loop:
-0082 2040376b call dongle_work_mode_auto 
-0083 2040372f call dongle_usb_dispatch 
-0084 20200082 branch p_dongle_all_powerful_loop 
+0084 2040376b call dongle_work_mode_auto 
+0085 2040372f call dongle_usb_dispatch 
+0086 20200084 branch p_dongle_all_powerful_loop 
 
 p_g24_fast_conn_mode_check:
-0085 6fe0c8bd fetch 1 ,mem_24g_pair_mode 
-0086 c0078089 beq 0x0f ,p_soft_agc_en_true 
+0087 6fe0c8bd fetch 1 ,mem_24g_pair_mode 
+0088 c007808b beq 0x0f ,p_soft_agc_en_true 
 
 p_soft_agc_en_false:
-0087 70494000 jam 0 ,mem_soft_agc_en 
-0088 20600000 rtn 
+0089 70494000 jam 0 ,mem_soft_agc_en 
+008a 20600000 rtn 
 
 p_soft_agc_en_true:
-0089 70494001 jam 1 ,mem_soft_agc_en 
-008a 20600000 rtn 
+008b 70494001 jam 1 ,mem_soft_agc_en 
+008c 20600000 rtn 
 
 p_byte_sign_extern:
-008b 2feffe07 isolate1 7 ,pdata 
-008c 24608000 nrtn true 
-008d d840ff00 arg 0xff00 ,temp 
-008e 9841fe00 ior temp ,pdata 
-008f 20600000 rtn 
+008d 2feffe07 isolate1 7 ,pdata 
+008e 24608000 nrtn true 
+008f d840ff00 arg 0xff00 ,temp 
+0090 9841fe00 ior temp ,pdata 
+0091 20600000 rtn 
 
 p_save_rssi:
-0090 6ff089a2 fetch 1 ,modem_nb_pow 
-0091 2feffe06 isolate1 6 ,pdata 
-0092 7920fe07 setflag true ,7 ,pdata 
-0093 67e0c1e9 store 1 ,mem_modem_rssi 
-0094 6ff089a3 fetch 1 ,modem_gain 
-0095 1fe1040f and pdata ,0x0f ,temp 
-0096 18438400 lshift temp ,temp 
-0097 1ff1fe00 rshift4 pdata ,pdata 
-0098 98408400 iadd temp ,temp 
-0099 184fa203 mul32 temp ,3 ,rega 
-009a 6fe0c1e9 fetch 1 ,mem_modem_rssi 
-009b 2040008b call p_byte_sign_extern 
-009c 1fe67e00 sub pdata ,0 ,pdata 
-009d 9a20fe00 iadd rega ,pdata 
-009e 1fe0fff7 increase -9 ,pdata 
-009f 1fe17fff and pdata ,0x1ff ,pdata 
-00a0 2feffe08 isolate1 8 ,pdata 
-00a1 242080a3 nbranch p_save_rssi_store ,true 
-00a2 58000000 setarg 0 
+0092 6ff089a2 fetch 1 ,modem_nb_pow 
+0093 2feffe06 isolate1 6 ,pdata 
+0094 7920fe07 setflag true ,7 ,pdata 
+0095 67e0c1e9 store 1 ,mem_modem_rssi 
+0096 6ff089a3 fetch 1 ,modem_gain 
+0097 1fe1040f and pdata ,0x0f ,temp 
+0098 18438400 lshift temp ,temp 
+0099 1ff1fe00 rshift4 pdata ,pdata 
+009a 98408400 iadd temp ,temp 
+009b 184fa203 mul32 temp ,3 ,rega 
+009c 6fe0c1e9 fetch 1 ,mem_modem_rssi 
+009d 2040008d call p_byte_sign_extern 
+009e 1fe67e00 sub pdata ,0 ,pdata 
+009f 9a20fe00 iadd rega ,pdata 
+00a0 1fe0fff7 increase -9 ,pdata 
+00a1 1fe17fff and pdata ,0x1ff ,pdata 
+00a2 2feffe08 isolate1 8 ,pdata 
+00a3 242080a5 nbranch p_save_rssi_store ,true 
+00a4 58000000 setarg 0 
 
 p_save_rssi_store:
-00a3 67e08154 store 1 ,mem_rssi_hex 
-00a4 20201293 branch rssi_hex2dec 
+00a5 67e08154 store 1 ,mem_rssi_hex 
+00a6 20201293 branch rssi_hex2dec 
 
 p_le_enable:
-00a5 20401652 call le_enable + 1 
-00a6 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-00a7 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
-00a8 1fe1fe0f or pdata ,0x0f ,pdata 
-00a9 67f08a43 store 1 ,core_syn_cal_ctrl 
-00aa 20600000 rtn 
+00a7 20401652 call le_enable + 1 
+00a8 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+00a9 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+00aa 1fe1fe0f or pdata ,0x0f ,pdata 
+00ab 67f08a43 store 1 ,core_syn_cal_ctrl 
+00ac 20600000 rtn 
 
 p_timer_init:
-00ab d8e0000d arg 13 ,queue 
-00ac 58000050 setarg 80 
-00ad 20207ddb branch timer_init 
+00ad d8e0000d arg 13 ,queue 
+00ae 58000050 setarg 80 
+00af 20207ddb branch timer_init 
 
 p_timer_check:
-00ae 6fe0c951 fetch 1 ,mem_g24_bind_continue_enable 
-00af 207a0000 rtn blank 
-00b0 d8e0000d arg 13 ,queue 
-00b1 20407de9 call timer_check 
-00b2 247a0000 nrtn blank 
-00b3 70495100 jam 0 ,mem_g24_bind_continue_enable 
-00b4 6fe14952 fetch 2 ,mem_cb_24g_bind_continue 
-00b5 20207e7a branch callback_func 
+00b0 6fe0c951 fetch 1 ,mem_g24_bind_continue_enable 
+00b1 207a0000 rtn blank 
+00b2 d8e0000d arg 13 ,queue 
+00b3 20407de9 call timer_check 
+00b4 247a0000 nrtn blank 
+00b5 70495100 jam 0 ,mem_g24_bind_continue_enable 
+00b6 6fe14952 fetch 2 ,mem_cb_24g_bind_continue 
+00b7 20207e7a branch callback_func 
 
 p_usb_init:
-00b6 20406e5e call enable_authrom 
-00b7 20407a27 call usb_init_param 
-00b8 700aa803 jam 0x03 ,mem_devicedesc + 17 
-00b9 20207a0b branch usb_init_next 
+00b8 20406e5e call enable_authrom 
+00b9 20407a27 call usb_init_param 
+00ba 700aa803 jam 0x03 ,mem_devicedesc + 17 
+00bb 20207a0b branch usb_init_next 
 
 p_usb_class_type:
-00ba 793f8023 set0 mark_isstr ,mark 
-00bb 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-00bc 1fe17e80 and_into 0x80 ,pdata 
-00bd c00000bf beq out_device ,p_usb_out_device 
-00be 20207aa1 branch usb_class_type + 4 
+00bc 793f8023 set0 mark_isstr ,mark 
+00bd 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+00be 1fe17e80 and_into 0x80 ,pdata 
+00bf c00000c1 beq out_device ,p_usb_out_device 
+00c0 20207aa1 branch usb_class_type + 4 
 
 p_usb_out_device:
-00bf 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-00c0 1ff1fe00 rshift4 pdata ,pdata 
-00c1 1fe37e00 rshift pdata ,pdata 
-00c2 1fe17e03 and_into 0x03 ,pdata 
-00c3 c00080c5 beq class_req ,p_usb_out_class_req 
-00c4 20207ab4 branch usb_out_device + 4 
+00c1 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+00c2 1ff1fe00 rshift4 pdata ,pdata 
+00c3 1fe37e00 rshift pdata ,pdata 
+00c4 1fe17e03 and_into 0x03 ,pdata 
+00c5 c00080c7 beq class_req ,p_usb_out_class_req 
+00c6 20207ab4 branch usb_out_device + 4 
 
 p_usb_out_class_req:
-00c5 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
-00c6 c00480c8 beq set_report ,p_usb_set_report 
-00c7 20207acd branch usb_out_class_req + 1 
+00c7 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+00c8 c00480ca beq set_report ,p_usb_set_report 
+00c9 20207acd branch usb_out_class_req + 1 
 
 p_usb_set_report:
-00c8 20003a98 nop 15000 
-00c9 20207c4a branch usb_set_report 
+00ca 20003a98 nop 15000 
+00cb 20207c4a branch usb_set_report 
 
 p_usb_tx:
-00ca 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
-00cb 207a0000 rtn blank 
-00cc 6ff08c24 fetch 1 ,core_usb_txbusy 
-00cd 1fe17e0f and_into 0x0f ,pdata 
-00ce 243a7d17 nbranch usb_inwake_state_tx_dispose ,blank 
-00cf 20207ccc branch usb_tx + 3 
+00cc 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+00cd 207a0000 rtn blank 
+00ce 6ff08c24 fetch 1 ,core_usb_txbusy 
+00cf 1fe17e0f and_into 0x0f ,pdata 
+00d0 243a7d17 nbranch usb_inwake_state_tx_dispose ,blank 
+00d1 20207ccc branch usb_tx + 3 
 
 p_g24_receive_skip_end:
-00d0 6fe0c868 fetch 1 ,mem_24g_tx_phy 
-00d1 20401637 call le_enable_phy_by_pdata 
-00d2 6fe2483f fetch 4 ,mem_24g_addr 
-00d3 98001200 iforce access 
-00d4 20402181 call g24_prep 
-00d5 2040115d call set_sync_on 
-00d6 6848c83d fetcht 1 ,mem_24g_ch 
-00d7 708a3d12 jam 0x12 ,core_syn_top_ctrl 
-00d8 60488017 storet 1 ,mem_last_freq 
-00d9 1840a202 add temp ,2 ,rega 
-00da 204011c6 call rf_tx_write_freq 
-00db 20401207 call txon 
-00dc 20000064 nop 100 
+00d2 6fe0c868 fetch 1 ,mem_24g_tx_phy 
+00d3 20401637 call le_enable_phy_by_pdata 
+00d4 6fe2483f fetch 4 ,mem_24g_addr 
+00d5 98001200 iforce access 
+00d6 20402181 call g24_prep 
+00d7 2040115d call set_sync_on 
+00d8 6848c83d fetcht 1 ,mem_24g_ch 
+00d9 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+00da 60488017 storet 1 ,mem_last_freq 
+00db 1840a202 add temp ,2 ,rega 
+00dc 204011c6 call rf_tx_write_freq 
 00dd 204023e3 call g24_ackpayload_prep 
 00de 20402247 call g24_transmit_prep 
-00df 204021ff call g24_transmit + 7 
-00e0 202021d6 branch g24_receive_skip_end 
+00df 2000012c nop 300 
+00e0 20401207 call txon 
+00e1 204021ff call g24_transmit + 7 
+00e2 202021d6 branch g24_receive_skip_end 
 
 p_g24_bind_data_parse_next:
-00e1 6fe0c897 fetch 1 ,mem_24g_rxdata_temp + 2 
-00e2 c05500e6 beq datatype_bind ,p_g24_bind_first_step 
-00e3 c02a80f0 beq datatype_config ,p_g24_bind_second_step 
-00e4 c0110100 beq datatype_ok ,p_g24_bind_third_step 
-00e5 20202370 branch g24_bind_data_parse_next + 4 
+00e3 6fe0c897 fetch 1 ,mem_24g_rxdata_temp + 2 
+00e4 c05500e8 beq datatype_bind ,p_g24_bind_first_step 
+00e5 c02a80f2 beq datatype_config ,p_g24_bind_second_step 
+00e6 c0110102 beq datatype_ok ,p_g24_bind_third_step 
+00e7 20202370 branch g24_bind_data_parse_next + 4 
 
 p_g24_bind_first_step:
-00e6 6fe0c898 fetch 1 ,mem_24g_rxdata_temp + 3 
-00e7 c00080ea beq datatype_device1 ,p_g24_bind_first_step_device1 
-00e8 c00100ed beq datatype_device2 ,p_g24_bind_first_step_device2 
-00e9 20600000 rtn 
+00e8 6fe0c898 fetch 1 ,mem_24g_rxdata_temp + 3 
+00e9 c00080ec beq datatype_device1 ,p_g24_bind_first_step_device1 
+00ea c00100ef beq datatype_device2 ,p_g24_bind_first_step_device2 
+00eb 20600000 rtn 
 
 p_g24_bind_first_step_device1:
-00ea 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
-00eb 247a0000 nrtn blank 
-00ec 20202376 branch g24_bind_first_step_device1 
+00ec 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
+00ed 247a0000 nrtn blank 
+00ee 20202376 branch g24_bind_first_step_device1 
 
 p_g24_bind_first_step_device2:
-00ed 6fe0c942 fetch 1 ,mem_24g_keyboard_bind_enable 
-00ee 247a0000 nrtn blank 
-00ef 2020237c branch g24_bind_first_step_device2 
+00ef 6fe0c942 fetch 1 ,mem_24g_keyboard_bind_enable 
+00f0 247a0000 nrtn blank 
+00f1 2020237c branch g24_bind_first_step_device2 
 
 p_g24_bind_second_step:
-00f0 6fe0c85e fetch 1 ,mem_24g_pair_switch 
-00f1 203a00f6 branch p_g24_bind_second_step_skip ,blank 
-00f2 6fe24899 fetch 4 ,mem_24g_rxdata_temp + 4 
-00f3 684a40a8 fetcht 4 ,mem_lap 
-00f4 98467c00 isub temp ,null 
-00f5 24628000 nrtn zero 
+00f2 6fe0c85e fetch 1 ,mem_24g_pair_switch 
+00f3 203a00f8 branch p_g24_bind_second_step_skip ,blank 
+00f4 6fe24899 fetch 4 ,mem_24g_rxdata_temp + 4 
+00f5 684a40a8 fetcht 4 ,mem_lap 
+00f6 98467c00 isub temp ,null 
+00f7 24628000 nrtn zero 
 
 p_g24_bind_second_step_skip:
-00f6 6fe0c898 fetch 1 ,mem_24g_rxdata_temp + 3 
-00f7 c00080fa beq datatype_device1 ,p_g24_bind_second_step_device1 
-00f8 c00100fd beq datatype_device2 ,p_g24_bind_second_step_device2 
-00f9 20600000 rtn 
+00f8 6fe0c898 fetch 1 ,mem_24g_rxdata_temp + 3 
+00f9 c00080fc beq datatype_device1 ,p_g24_bind_second_step_device1 
+00fa c00100ff beq datatype_device2 ,p_g24_bind_second_step_device2 
+00fb 20600000 rtn 
 
 p_g24_bind_second_step_device1:
-00fa 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
-00fb 247a0000 nrtn blank 
-00fc 20202389 branch g24_bind_second_step_device1 
+00fc 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
+00fd 247a0000 nrtn blank 
+00fe 20202389 branch g24_bind_second_step_device1 
 
 p_g24_bind_second_step_device2:
-00fd 6fe0c942 fetch 1 ,mem_24g_keyboard_bind_enable 
-00fe 247a0000 nrtn blank 
-00ff 20202394 branch g24_bind_second_step_device2 
+00ff 6fe0c942 fetch 1 ,mem_24g_keyboard_bind_enable 
+0100 247a0000 nrtn blank 
+0101 20202394 branch g24_bind_second_step_device2 
 
 p_g24_bind_third_step:
-0100 6fe0c85e fetch 1 ,mem_24g_pair_switch 
-0101 203a0106 branch p_g24_bind_third_step_skip ,blank 
-0102 6fe24899 fetch 4 ,mem_24g_rxdata_temp + 4 
-0103 684a48d9 fetcht 4 ,mem_24g_transmitter_addr 
-0104 98467c00 isub temp ,null 
-0105 24628000 nrtn zero 
+0102 6fe0c85e fetch 1 ,mem_24g_pair_switch 
+0103 203a0108 branch p_g24_bind_third_step_skip ,blank 
+0104 6fe24899 fetch 4 ,mem_24g_rxdata_temp + 4 
+0105 684a48d9 fetcht 4 ,mem_24g_transmitter_addr 
+0106 98467c00 isub temp ,null 
+0107 24628000 nrtn zero 
 
 p_g24_bind_third_step_skip:
-0106 6fe0c898 fetch 1 ,mem_24g_rxdata_temp + 3 
-0107 c000810a beq datatype_device1 ,p_g24_bind_third_step_device1 
-0108 c0010112 beq datatype_device2 ,p_g24_bind_third_step_device2 
-0109 20600000 rtn 
+0108 6fe0c898 fetch 1 ,mem_24g_rxdata_temp + 3 
+0109 c000810c beq datatype_device1 ,p_g24_bind_third_step_device1 
+010a c0010114 beq datatype_device2 ,p_g24_bind_third_step_device2 
+010b 20600000 rtn 
 
 p_g24_bind_third_step_device1:
-010a 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
-010b 247a0000 nrtn blank 
-010c 6fe0c882 fetch 1 ,mem_24g_device1_bind_step 
-010d c001010f beq 2 ,p_g24_bind_dvc1_step_success 
-010e 20600000 rtn 
+010c 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
+010d 247a0000 nrtn blank 
+010e 6fe0c882 fetch 1 ,mem_24g_device1_bind_step 
+010f c0010111 beq 2 ,p_g24_bind_dvc1_step_success 
+0110 20600000 rtn 
 
 p_g24_bind_dvc1_step_success:
-010f 70494f04 jam 4 ,mem_g24_bind_step 
-0110 70494101 jam 1 ,mem_24g_mouse_bind_enable 
-0111 202023aa branch g24_bind_dvc1_step_success + 1 
+0111 70494f04 jam 4 ,mem_g24_bind_step 
+0112 70494101 jam 1 ,mem_24g_mouse_bind_enable 
+0113 202023aa branch g24_bind_dvc1_step_success + 1 
 
 p_g24_bind_third_step_device2:
-0112 6fe0c942 fetch 1 ,mem_24g_keyboard_bind_enable 
-0113 247a0000 nrtn blank 
-0114 6fe0c883 fetch 1 ,mem_24g_device2_bind_step 
-0115 c0800117 bne 0 ,p_g24_bind_dvc2_step_success 
-0116 20600000 rtn 
+0114 6fe0c942 fetch 1 ,mem_24g_keyboard_bind_enable 
+0115 247a0000 nrtn blank 
+0116 6fe0c883 fetch 1 ,mem_24g_device2_bind_step 
+0117 c0800119 bne 0 ,p_g24_bind_dvc2_step_success 
+0118 20600000 rtn 
 
 p_g24_bind_dvc2_step_success:
-0117 70494201 jam 1 ,mem_24g_keyboard_bind_enable 
-0118 202023b4 branch g24_bind_dvc2_step_success 
+0119 70494201 jam 1 ,mem_24g_keyboard_bind_enable 
+011a 202023b4 branch g24_bind_dvc2_step_success 
 
 p_g24_bind_mode_auto:
-0119 6fe0c8c3 fetch 1 ,mem_24g_work_mode 
-011a c1808000 rtnne dongle_bind 
-011b 2040234b call g24_bind_init 
-011c 20400128 call p_g24_bind_data_process 
-011d 6fe0c8bd fetch 1 ,mem_24g_pair_mode 
-011e 247a0000 nrtn blank 
-011f 6fe0c884 fetch 1 ,mem_24g_bind_device_status 
-0120 207a0000 rtn blank 
-0121 6fe0c950 fetch 1 ,mem_g24_bind_success 
+011b 6fe0c8c3 fetch 1 ,mem_24g_work_mode 
+011c c1808000 rtnne dongle_bind 
+011d 2040234b call g24_bind_init 
+011e 2040012a call p_g24_bind_data_process 
+011f 6fe0c8bd fetch 1 ,mem_24g_pair_mode 
+0120 247a0000 nrtn blank 
+0121 6fe0c884 fetch 1 ,mem_24g_bind_device_status 
 0122 207a0000 rtn blank 
-0123 70494f00 jam 0 ,mem_g24_bind_step 
-0124 7048c000 jam 0 ,mem_24g_mode_switch 
-0125 20402493 call g24_switch_work_mode 
-0126 20402436 call g24_enable_nodata_timer 
-0127 202022b2 branch g24_timer_init 
+0123 6fe0c950 fetch 1 ,mem_g24_bind_success 
+0124 207a0000 rtn blank 
+0125 70494f00 jam 0 ,mem_g24_bind_step 
+0126 7048c000 jam 0 ,mem_24g_mode_switch 
+0127 20402493 call g24_switch_work_mode 
+0128 20402436 call g24_enable_nodata_timer 
+0129 202022b2 branch g24_timer_init 
 
 p_g24_bind_data_process:
-0128 204023fa call g24_rx_interrupt_clear 
-0129 20402187 call g24_receive_packet 
-012a 2437a3fa nbranch g24_rx_interrupt_clear ,user3 
-012b 20402367 call g24_bind_data_parse 
+012a 204023fa call g24_rx_interrupt_clear 
+012b 20402187 call g24_receive_packet 
+012c 2437a3fa nbranch g24_rx_interrupt_clear ,user3 
+012d 20402367 call g24_bind_data_parse 
 
 p_g24_bind_data_process_next:
-012c 2040242c call g24_transmit_ack 
-012d 2040012f call p_g24_bind_device_status_check 
-012e 2020235f branch g24_bind_data_process + 6 
+012e 2040242c call g24_transmit_ack 
+012f 20400131 call p_g24_bind_device_status_check 
+0130 2020235f branch g24_bind_data_process + 6 
 
 p_g24_bind_device_status_check:
-012f 6fe0c950 fetch 1 ,mem_g24_bind_success 
-0130 207a0000 rtn blank 
-0131 202023d6 branch g24_bind_device_status_check 
+0131 6fe0c950 fetch 1 ,mem_g24_bind_success 
+0132 207a0000 rtn blank 
+0133 202023d6 branch g24_bind_device_status_check 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AF/branch/mouse/YDN_Project/USB_64K/program/patch.prog	(revision 3422)
+++ /YC1308AF/branch/mouse/YDN_Project/USB_64K/program/patch.prog	(working copy)
@@ -28,6 +28,8 @@
 
 p_app_init:
 p_dongle_init:
+	jam 0x3a,mem_lpm_ctrl3
+	call lpm_write_sel_vdd
 ifdef UART_LOG
 	call p_device_hardware_init
 endif
@@ -344,10 +346,11 @@
 	storet 1,mem_last_freq
 	add temp,2,rega
 	call rf_tx_write_freq
-	call txon
-	nop 100
 	call g24_ackpayload_prep
 	call g24_transmit_prep
+	nop 300
+	call txon
+
 	call g24_transmit+7
 	branch g24_receive_skip_end
 
