Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/output/otp.dat	(revision 5080)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/output/otp.dat	(working copy)
@@ -11,8 +11,8 @@
 00
 aa
 55
-da
-07
+06
+08
 c2
 84
 00
@@ -32,19 +32,19 @@
 c0
 0a
 01
-b5
+b6
 c0
 0a
 81
-0f
+10
 c0
 0c
 01
-1d
+1e
 c0
 0c
 80
-dc
+dd
 c0
 0d
 00
@@ -52,7 +52,7 @@
 c0
 12
 81
-d7
+d8
 c0
 13
 80
@@ -60,19 +60,19 @@
 c0
 58
 81
-27
+28
 c0
 62
 81
-24
+25
 c0
 6d
 01
-86
+87
 c0
 6e
 01
-96
+97
 20
 20
 23
@@ -92,7 +92,7 @@
 c0
 1c
 81
-d1
+d2
 c0
 1f
 80
@@ -100,7 +100,7 @@
 c0
 26
 81
-d5
+d6
 c1
 7f
 80
@@ -635,6 +635,10 @@
 10
 70
 8a
+88
+40
+70
+8a
 06
 10
 70
@@ -652,7 +656,7 @@
 20
 40
 00
-e4
+e5
 6f
 e0
 c4
@@ -680,7 +684,7 @@
 c0
 08
 00
-d1
+d2
 6f
 e0
 c4
@@ -724,7 +728,7 @@
 20
 40
 00
-c3
+c4
 70
 80
 43
@@ -748,15 +752,15 @@
 20
 40
 01
-58
+59
 20
 40
 01
-83
+84
 20
 40
 00
-bd
+be
 70
 41
 48
@@ -768,7 +772,7 @@
 20
 20
 01
-85
+86
 20
 75
 80
@@ -800,7 +804,7 @@
 c0
 0c
 00
-c9
+ca
 6f
 e0
 c4
@@ -892,7 +896,7 @@
 20
 20
 00
-af
+b0
 6f
 e0
 c1
@@ -900,7 +904,7 @@
 c0
 05
 00
-df
+e0
 20
 20
 22
@@ -928,7 +932,7 @@
 20
 35
 81
-0b
+0c
 6f
 e2
 02
@@ -1096,7 +1100,7 @@
 20
 20
 00
-f5
+f6
 20
 40
 68
@@ -1256,7 +1260,7 @@
 58
 00
 01
-43
+44
 67
 e1
 43
@@ -1264,7 +1268,7 @@
 58
 00
 01
-46
+47
 67
 e1
 43
@@ -1324,15 +1328,15 @@
 c0
 18
 81
-4b
+4c
 c0
 0a
 81
-4d
+4e
 c0
 1f
 81
-51
+52
 20
 20
 62
@@ -1440,7 +1444,7 @@
 20
 40
 01
-75
+76
 2a
 2f
 fe
@@ -1472,7 +1476,7 @@
 20
 40
 01
-75
+76
 d8
 a0
 8a
@@ -1500,7 +1504,7 @@
 20
 21
 01
-6a
+6b
 20
 20
 21
@@ -1604,7 +1608,7 @@
 20
 40
 01
-ae
+af
 70
 8a
 08
@@ -1640,7 +1644,7 @@
 20
 40
 01
-a4
+a5
 6f
 f0
 8a
@@ -1684,7 +1688,7 @@
 20
 40
 01
-ae
+af
 70
 80
 cd
@@ -1744,7 +1748,7 @@
 c3
 02
 81
-af
+b0
 68
 59
 01
@@ -1780,7 +1784,7 @@
 c0
 08
 01
-ce
+cf
 58
 00
 57
@@ -1824,7 +1828,7 @@
 c0
 08
 01
-cb
+cc
 58
 00
 2b
@@ -1860,7 +1864,7 @@
 20
 20
 01
-c7
+c8
 58
 00
 83
@@ -1872,7 +1876,7 @@
 20
 20
 01
-bc
+bd
 6f
 e0
 c3
@@ -1920,11 +1924,51 @@
 20
 40
 01
-de
+e9
+6f
+e0
+c0
+cb
+79
 20
+7e
+04
 20
+40
+23
+e1
 24
-25
+55
+a3
+cb
+37
+d9
+82
+00
+1b
+22
+7e
+00
+67
+e3
+40
+b1
+6f
+e1
+c0
+c6
+6a
+20
+c0
+c9
+df
+20
+00
+03
+20
+20
+24
+2e
 60
 04
 40
@@ -1992,7 +2036,7 @@
 20
 22
 81
-f1
+fc
 e7
 e0
 80
@@ -2012,7 +2056,7 @@
 c2
 00
 01
-eb
+f6
 1a
 42
 04
@@ -2021,8 +2065,8 @@
 60
 00
 00
-6f
-09
+71
+70
 aa
 55
 40
@@ -2235,7 +2279,7 @@
 00
 1c
 41
-3d
+7b
 aa
 55
 0c
@@ -2379,7 +2423,7 @@
 aa
 aa
 55
-5c
+9a
 4c
-0d
-e9
+20
+83
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/output/ramcode.rom	(revision 5080)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/output/ramcode.rom	(working copy)
@@ -2,24 +2,24 @@
 c0000061
 c001007a
 c0088083
-c00a01b5
-c00a810f
-c00c011d
-c00c80dc
+c00a01b6
+c00a8110
+c00c011e
+c00c80dd
 c00d0095
-c01281d7
+c01281d8
 c013803f
-c0588127
-c0628124
-c06d0186
-c06e0196
+c0588128
+c0628125
+c06d0187
+c06e0197
 2020235a
 c0120018
 c0128075
 c0130065
-c01c81d1
+c01c81d2
 c01f804a
-c02681d5
+c02681d6
 c17f8000
 2020235a
 204025c2
@@ -153,18 +153,19 @@
 708a13cd
 7089460d
 70896f10
+708a8840
 708a0610
 708a844a
 708a8540
 708a16fe
-204000e4
+204000e5
 6fe0c436
 205a70d7
 24558091
 37d98200
 70813b5f
 6fe0c099
-c00800d1
+c00800d2
 6fe0c438
 1fe1fe04
 67f08a02
@@ -175,18 +176,18 @@
 67f18a73
 708a8660
 708a8b3b
-204000c3
+204000c4
 70804300
 70804205
 58557474
 67f18968
 7089606e
-20400158
-20400183
-204000bd
+20400159
+20400184
+204000be
 7041480c
 20406f4e
-20200185
+20200186
 20758000
 37d98200
 6fe0c11c
@@ -194,7 +195,7 @@
 37d98200
 20600000
 6fe0c099
-c00c00c9
+c00c00ca
 6fe0c438
 1fe1fe06
 67f08a02
@@ -217,16 +218,16 @@
 67f18a73
 708a762a
 70890204
-202000af
+202000b0
 6fe0c141
-c00500df
+c00500e0
 2020220e
 708a1425
 58a93f3f
 67f18a60
 708a631f
 20600000
-2035810b
+2035810c
 6fe2020d
 207a0000
 37d98200
@@ -268,7 +269,7 @@
 6fe1415b
 207a0000
 67e1020f
-202000f5
+202000f6
 2040686f
 204021ba
 18002a08
@@ -308,9 +309,9 @@
 67e44512
 6fe448a6
 67e444fa
-58000143
+58000144
 67e143db
-58000146
+58000147
 67e143dd
 5800638a
 67e143df
@@ -325,9 +326,9 @@
 204070c8
 20206327
 1a627e00
-c018814b
-c00a814d
-c01f8151
+c018814c
+c00a814e
+c01f8152
 202062da
 7048ae01
 20600000
@@ -354,7 +355,7 @@
 708ac200
 708ac300
 d8e00006
-20400175
+20400176
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -362,14 +363,14 @@
 d8e00005
 2040211c
 2040211e
-20400175
+20400176
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-2021016a
+2021016b
 2020214f
 2000003c
 58000f00
@@ -395,7 +396,7 @@
 6fe0c409
 67f080cd
 20000bb8
-204001ae
+204001af
 708a08c1
 6a40c419
 df200008
@@ -404,7 +405,7 @@
 67e0c433
 6240c419
 20600000
-204001a4
+204001a5
 6ff08a09
 793ffe07
 67f08a09
@@ -415,7 +416,7 @@
 6fe0c409
 67f080cd
 20000bb8
-204001ae
+204001af
 7080cd00
 20206fa1
 6ff080cc
@@ -430,7 +431,7 @@
 20600000
 7080cc03
 6ff08129
-c30281af
+c30281b0
 68590164
 6049440a
 7080cc00
@@ -439,7 +440,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c00801ce
+c00801cf
 58005762
 67f10907
 70890103
@@ -450,7 +451,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c00801cb
+c00801cc
 58002bb1
 67f10907
 c6978000
@@ -459,10 +460,10 @@
 20600000
 58004189
 67f10907
-202001c7
+202001c8
 58008312
 67f10907
-202001bc
+202001bd
 6fe0c334
 c1000000
 c001b04a
@@ -474,8 +475,18 @@
 6fe240ad
 9840fe00
 67e240ad
-204001de
-20202425
+204001e9
+6fe0c0cb
+79207e04
+204023e1
+2455a3cb
+37d98200
+1b227e00
+67e340b1
+6fe1c0c6
+6a20c0c9
+df200003
+2020242e
 600440e7
 d8c08070
 d8a040cc
@@ -492,11 +503,11 @@
 efe08011
 e8408013
 98467c00
-202281f1
+202281fc
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c20001eb
+c20001f6
 1a420400
 20600000
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/output/sched.rom	(revision 5080)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/output/sched.rom	(working copy)
@@ -106,7 +106,7 @@
 mem_lpm_hv_sel:b4
 
 mem_fcomp_div:18
-mem_xtal_c_sel:3d
+mem_xtal_c_sel:7b
 mem_gpio_wakeup_cfg:00 00 20 00 00 00 00 00 00 00 00 00
 
 mem_version:08 0e 05 03 00
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/program/patch.prog	(revision 5080)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/program/patch.prog	(working copy)
@@ -204,7 +204,7 @@
 	jam 0xcd,0x8a13
 	jam 0x0d,0x8946
 	jam 0x10,0x896f
-	
+	jam 0x40,core_rx_cfg0
 	jam 0x10,0x8a06
 	jam 0x4a,0x8a84
 	jam 0x40,0x8a85
@@ -617,7 +617,18 @@
 	iadd temp,pdata
 	store 4,mem_sleep_counter_all
 	call p_lpm_save_context
-	branch lpm_sleep_skip_cb_function+4
+	fetch 1,mem_lpm_hv_sel
+	set1 LPM_DOZE_EN_BIT, pdata
+	call lpm_write_sel_hv
+	ncall lpm_preon_counter,wake
+	until null,lpo_edge
+	copy clkn,pdata
+	store 6,mem_sleep_clkn
+	// storer clkn,6,mem_sleep_clkn
+	fetch 3,mem_lpm_isogate
+	fetchr rega,1,mem_lpm_ldo_sel
+	arg 3,loopcnt
+	branch lpm_sleep_loop
 
 p_lpm_save_context:
 	storer mark,8,mem_saved_mark
Index: sched/1305.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/sched/1305.dat	(revision 5080)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_016/sched/1305.dat	(working copy)
@@ -9,7 +9,7 @@
 mem_lpm_hv_sel:b4
 
 mem_fcomp_div:18
-mem_xtal_c_sel:3d
+mem_xtal_c_sel:7b
 mem_gpio_wakeup_cfg:00 00 20 00 00 00 00 00 00 00 00 00
 
 mem_version:08 0e 05 03 00
