<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css">
<link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css">
<link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/625154cd6caf5961923eb182/raw.css">
<script src="https://static.pudn.com/base/js/compatibility.min.js"></script>
<script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script>
<script>
try{
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
}catch(e){}
</script>
<title></title>
</head>
<body>
<div id="sidebar" style="display: none">
<div id="outline">
</div>
</div>
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625154cd6caf5961923eb182/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0"> APPLICATION <span class="_ _0"></span>NOTE </div><div class="t m0 x1 h3 y2 ff1 fs1 fc0 sc0 ls1 ws1">RL78/G13 </div><div class="t m0 x1 h4 y3 ff1 fs2 fc0 sc0 ls2 ws2">A/D Converter (Software Trigger <span class="ls3 ws3">and Sequential Co<span class="ls4 ws4">nversion Modes)<span class="ff2 fs0 ls5 ws1"> </span></span></span></div><div class="t m0 x2 h5 y4 ff1 fs3 fc0 sc0 ls6 ws1">R01A</div><div class="t m0 x3 h5 y5 ff1 fs3 fc0 sc0 ls6 ws1">N0452EJ010<span class="_ _1"></span>0</div><div class="t m0 x4 h5 y6 ff1 fs3 fc0 sc0 ls7 ws5">Rev. 1.00</div><div class="t m0 x5 h5 y7 ff1 fs3 fc0 sc0 ls7 ws5">Sep. 30, 2011</div><div class="t m0 x1 h6 y8 ff2 fs4 fc0 sc0 ls8 ws1">Introduction </div><div class="t m0 x1 h7 y9 ff3 fs3 fc0 sc0 ls9 ws6">This applicat<span class="_ _1"></span>ion note <span class="_ _1"></span>describes t<span class="_ _1"></span>he procedure<span class="_ _1"></span>s for perf<span class="_ _1"></span>orming <span class="_ _1"></span>A/D conve<span class="_ _1"></span>rsion on a<span class="_ _1"></span>nalog volt<span class="_ _1"></span>ages using t<span class="_ _1"></span>he RL78/<span class="_ _1"></span>G13's </div><div class="t m0 x1 h7 ya ff3 fs3 fc0 sc0 lsa ws7">A/D converter<span class="_ _2"></span> (supporting so<span class="_ _2"></span>ftware trigger an<span class="_ _2"></span>d sequential conv<span class="_ _2"></span>ersion modes). <span class="_"> </span> </div><div class="t m0 x1 h7 yb ff3 fs3 fc0 sc0 lsb ws8">The sample program discussed in this application note perfor<span class="_ _2"></span>ms data conversion on the A/D conversion results and </div><div class="t m0 x1 h7 yc ff3 fs3 fc0 sc0 lsc ws9">places the converted values i<span class="_ _1"></span>n <span class="lsd wsa">the RL78/G13's internal R<span class="_ _1"></span>AM. </span></div><div class="t m0 x1 h6 yd ff2 fs4 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h6 ye ff2 fs4 fc0 sc0 lse wsb">Target Device </div><div class="t m0 x1 h7 yf ff3 fs3 fc0 sc0 lsf ws1">RL78/G1<span class="_ _1"></span>3 </div><div class="t m0 x1 h7 y10 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y11 ff3 fs3 fc0 sc0 ls10 wsc">When applying the sample program covered in this applicatio<span class="_ _2"></span>n note to another microcomputer, modify the program </div><div class="t m0 x1 h7 y12 ff3 fs3 fc0 sc0 ls11 wsd">according to the specifications for the <span class="lsd wsa">target microcom<span class="_ _1"></span>puter and conduct an <span class="ls12 wse">e<span class="_ _1"></span>xtensive evaluation of the<span class="_ _1"></span> modified </span></span></div><div class="t m0 x1 h7 y13 ff3 fs3 fc0 sc0 ls13 ws1">program. </div><div class="t m0 x1 h5 y14 ff1 fs3 fc0 sc0 ls12 wsf">R01AN0452EJ01<span class="_ _1"></span>00 Rev. <span class="_ _3"></span>1.00 <span class="_ _4"> </span> <span class="_ _5"> </span>Page 1 of <span class="_ _3"></span>26 </div><div class="t m0 x1 h5 y15 ff1 fs3 fc0 sc0 ls14 ws10">Sep. 30, 2011 <span class="_ _6"> </span><span class="ls5 ws1"> </span></div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
</body>
</html>
<div id="pf2" class="pf w0 h0" data-page-no="2"><div class="pc pc2 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625154cd6caf5961923eb182/bg2.jpg"><div class="t m0 x1 h8 y16 ff1 fs4 fc0 sc0 ls15 ws11">RL78/G13 <span class="_ _7"> </span>A/D Converter (Software Tri<span class="ls16 ws12">gger and Sequential Conversion Modes) </span></div><div class="t m0 x1 h5 y14 ff1 fs3 fc0 sc0 ls12 wsf">R01AN0452EJ01<span class="_ _1"></span>00 Rev. <span class="_ _3"></span>1.00 <span class="_ _4"> </span> <span class="_ _5"> </span>Page 2 of <span class="_ _3"></span>26 </div><div class="t m0 x1 h5 y15 ff1 fs3 fc0 sc0 ls14 ws10">Sep. 30, 2011 <span class="_ _6"> </span><span class="ls5 ws1"> </span></div><div class="t m0 x1 h7 y17 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x6 h9 y18 ff2 fs3 fc0 sc0 ls17 ws1">Contents </div><div class="t m0 x6 h7 y19 ff3 fs3 fc0 sc0 ls18 ws1">1.</div><div class="t m0 x7 h7 y1a ff4 fs5 fc0 sc0 ls5 ws1"> <span class="_ _8"> </span><span class="ff3 fs3 ls19">Specification<span class="_"> </span><span class="ff1 ls1a">.......................................................................................................................................<span class="_ _9"> </span>3</span></span> </div><div class="t m0 x6 h7 y1b ff3 fs3 fc0 sc0 ls18 ws1">2.<span class="ff4 fs5 ls5"> <span class="_ _8"> </span></span><span class="ls1b ws13">Operati<span class="_ _1"></span>on Check C<span class="_ _1"></span>ondit<span class="_ _1"></span>ions<span class="_ _9"></span><span class="ff1 ls1a ws1">.................................................................................................................<span class="_ _9"> </span>4<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y1c ff3 fs3 fc0 sc0 ls18 ws1">3.<span class="ff4 fs5 ls5"> <span class="_ _8"> </span></span><span class="ls1c ws14">Related Application Note</span><span class="ff1 ls1a">......................................................................................................................<span class="_ _a"> </span>4<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x6 h7 y1d ff3 fs3 fc0 sc0 ls18 ws1">4.<span class="ff4 fs5 ls5"> <span class="_ _8"> </span></span><span class="ls1d ws15">Description of <span class="_ _1"></span>the Hardware<span class="_ _9"></span><span class="ff1 ls1a ws1">.................................................................................................................<span class="_ _9"> </span>5<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y1e ff3 fs3 fc0 sc0 ls18 ws1">4.1<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls9 ws6">Hardware Co<span class="_ _1"></span>nfiguratio<span class="_ _1"></span>n Exam<span class="_ _1"></span>ple<span class="_ _a"> </span><span class="ff1 ls1a ws1">.........................................................................................................<span class="_ _a"> </span>5<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y1f ff3 fs3 fc0 sc0 ls18 ws1">4.2<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls6 ws16">List of Pins t<span class="_ _1"></span>o be Used<span class="_ _c"> </span><span class="ff1 ls1a ws1">.........................................................................................................................<span class="_ _9"> </span>6<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y20 ff3 fs3 fc0 sc0 ls18 ws1">5.<span class="ff4 fs5 ls5"> <span class="_ _8"> </span></span><span class="ls1e ws17">Description of <span class="_ _1"></span>the Software<span class="_ _c"> </span><span class="ff1 ls1a ws1">..................................................................................................................<span class="_ _9"> </span>6<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y21 ff3 fs3 fc0 sc0 ls18 ws1">5.1<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls1f ws18">Operation Outline<span class="_ _c"> </span></span><span class="ff1 ls1a">...............................................................................................................................<span class="_ _1"></span><span class="ls20">.6<span class="_ _d"></span><span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y22 ff3 fs3 fc0 sc0 ls18 ws1">5.2<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="lsb ws8">List of Option Byte Settings<span class="_ _2"></span></span><span class="ff1 ls1a">..................................................................................................................<span class="_ _a"> </span>7<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x6 h7 y23 ff3 fs3 fc0 sc0 ls18 ws1">5.3<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls12 wse">List of Variables<span class="_ _9"> </span></span><span class="ff1 ls1a">..................................................................................................................................<span class="_ _9"> </span>7<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x6 h7 y24 ff3 fs3 fc0 sc0 ls18 ws1">5.4<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls21 ws19">List of Functi<span class="_ _1"></span>ons<span class="_ _e"></span><span class="ff1 ls1a ws1">..................................................................................................................................<span class="_ _9"> </span>8<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y25 ff3 fs3 fc0 sc0 ls18 ws1">5.5<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls22 ws1a">Function Specifications<span class="_ _a"> </span></span><span class="ff1 ls1a">........................................................................................................................<span class="_ _a"> </span>8<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x6 h7 y26 ff3 fs3 fc0 sc0 ls18 ws1">5.6<span class="ff4 fs5 ls5"> <span class="_ _b"> </span></span><span class="ls23">Flow<span class="_ _2"></span>charts<span class="_ _f"> </span><span class="ff1 ls1a">..........................................................................................................................................<span class="_ _9"> </span>9<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x8 h7 y27 ff3 fs3 fc0 sc0 ls18 ws1">5.6.1<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls24 ws1b">Initialization Fun<span class="_ _2"></span>ction<span class="_ _11"></span></span><span class="ff1 ls25">...................................................................................................................<span class="_ _9"> </span>10<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x8 h7 y28 ff3 fs3 fc0 sc0 ls18 ws1">5.6.2<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls13 ws1c">System funct<span class="_ _1"></span>ion<span class="ff1 ls1a ws1">............................................................................................................................<span class="_ _9"> </span>11<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x8 h7 y29 ff3 fs3 fc0 sc0 ls18 ws1">5.6.3<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="lsc ws1d">I/O Port Setup<span class="_ _c"> </span></span><span class="ff1 ls1a">..............................................................................................................................<span class="_ _9"> </span>1<span class="ls5">2<span class="ff4 fs5"> </span></span></span></div><div class="t m0 x8 h7 y2a ff3 fs3 fc0 sc0 ls18 ws1">5.6.4<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls7 ws1e">CPU Clock Setup<span class="_"> </span></span><span class="ff1 ls25">.........................................................................................................................<span class="_ _9"> </span>14<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x8 h7 y2b ff3 fs3 fc0 sc0 ls18 ws1">5.6.5<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls26 ws1f">Setting up the A/D Co<span class="_ _1"></span>nverter<span class="ff1 ls25 ws1">.........................................................................................................<span class="_ _9"> </span>15<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x8 h7 y2c ff3 fs3 fc0 sc0 ls18 ws1">5.6.6<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="lsc ws9">Main Processing<span class="_ _11"></span></span><span class="ff1 ls1a">...........................................................................................................................<span class="_ _9"> </span>22<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x8 h7 y2d ff3 fs3 fc0 sc0 ls18 ws1">5.6.7<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls24 ws1b">Enabling the A/D Voltage<span class="_ _2"></span> Comparator<span class="_ _9"></span></span><span class="ff1 ls25">...........................................................................................<span class="_ _9"> </span>23<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x8 h7 y2e ff3 fs3 fc0 sc0 ls18 ws1">5.6.8<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls27 ws20">Starting A/D Conver<span class="_ _2"></span>sion<span class="_ _9"></span></span><span class="ff1 ls25">...............................................................................................................<span class="_ _9"> </span>24<span class="ff4 fs5 ls5"> </span></span></div><div class="t m0 x8 h7 y2f ff3 fs3 fc0 sc0 ls18 ws1">5.6.9<span class="ff4 fs5 ls5"> <span class="_ _10"> </span></span><span class="ls25 ws21">Storing A/D Conversion<span class="_ _2"></span> Results in RAM<span class="_"> </span><span class="ff1 ws1">.......................................................................................<span class="_ _9"></span>25<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y30 ff3 fs3 fc0 sc0 ls18 ws1">6.<span class="ff4 fs5 ls5"> <span class="_ _8"> </span></span><span class="ls26 ws22">Sample<span class="_ _1"></span> Code<span class="_ _9"></span><span class="ff1 ls1a ws1">...............................................................................................................................<span class="ls28">......<span class="_ _9"></span>26<span class="ff4 fs5 ls5"> </span></span></span></span></div><div class="t m0 x6 h7 y31 ff3 fs3 fc0 sc0 ls18 ws1">7.<span class="ff4 fs5 ls5"> <span class="_ _8"> </span></span><span class="ls1d ws15">Docum<span class="_ _1"></span>ents for Reference<span class="_ _a"> </span><span class="ff1 ls25 ws1">...................................................................................................................<span class="_ _a"> </span>26<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y32 ff3 fs3 fc0 sc0 ls29 ws23">Revision Reco<span class="_ _1"></span>rd<span class="_"> </span><span class="ff1 ls1a ws1">...............................................................................................................................<span class="ls1c">.........<span class="_ _9"> </span>27<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h7 y33 ff3 fs3 fc0 sc0 lsc ws9">General Precautions in the Ha<span class="_ _1"></span><span class="ls14 ws24">ndling of MPU/MCU Products<span class="_"> </span><span class="ff1 ls25 ws1">........................................................................<span class="_ _9"> </span>28<span class="ff4 fs5 ls5"> </span></span></span></div><div class="t m0 x6 h5 y34 ff1 fs3 fc0 sc0 ls5 ws1"> </div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h0" data-page-no="3"><div class="pc pc3 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625154cd6caf5961923eb182/bg3.jpg"><div class="t m0 x1 h8 y16 ff1 fs4 fc0 sc0 ls15 ws11">RL78/G13 <span class="_ _7"> </span>A/D Converter (Software Tri<span class="ls16 ws12">gger and Sequential Conversion Modes) </span></div><div class="t m0 x1 h6 y35 ff2 fs4 fc0 sc0 ls2a ws1">1. <span class="_ _12"> </span><span class="ls1">Specification </span></div><div class="t m0 x1 h7 y36 ff3 fs3 fc0 sc0 ls6 ws16">This applicat<span class="_ _1"></span>ion note p<span class="_ _1"></span>rovides exam<span class="_ _1"></span>ples of using t<span class="_ _1"></span>he softw<span class="_ _1"></span>are trigger a<span class="_ _1"></span>nd sequentia<span class="_ _1"></span>l conversion<span class="_ _1"></span> modes of t<span class="_ _1"></span>he A/D </div><div class="t m0 x1 h7 y37 ff3 fs3 fc0 sc0 ls5 ws25">converter. The A/D c<span class="_ _1"></span>onverter is placed in sel<span class="_ _1"></span>ect mode and th<span class="lsd wsa">e analog signal input from<span class="_ _1"></span> th<span class="ls22 ws1a">e P20/ANI0 pin is converted </span></span></div><div class="t m0 x1 h7 y38 ff3 fs3 fc0 sc0 ls2b ws26">to digital values. Sub<span class="_ _2"></span>sequently, the conversion resu<span class="_ _2"></span>lt is subjected to data conversion (shifting th<span class="_ _2"></span>e data to the right) and </div><div class="t m0 x1 h7 y39 ff3 fs3 fc0 sc0 ls24 ws1b">the result is stored in the RL78/G13<span class="_ _2"></span>'s internal RAM. </div><div class="t m0 x1 h7 y3a ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y3b ff3 fs3 fc0 sc0 ls2c ws27">Table 1.1<span class="ls1f ws28"> lists the <span class="ls2d ws29">Peripheral Function to be Used and its Use<span class="ls28 ws2a"> and figure 1.1 shows the outlin<span class="_ _2"></span>e of the conversion </span></span></span></div><div class="t m0 x1 h7 y3c ff3 fs3 fc0 sc0 ls9 ws6">ope</div><div class="t m0 x9 h7 y3d ff3 fs3 fc0 sc0 ls9 ws6">ration of t<span class="_ _1"></span>he A/D con<span class="_ _1"></span>verter. </div><div class="t m0 x1 h7 y3e ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 xa h9 y3f ff2 fs3 fc0 sc0 lsd ws2b">Table 1.1 <span class="_ _c"> </span> <span class="_ _c"> </span> <span class="_ _c"> </span>Peripheral Function to be Used and its Use </div><div class="t m0 x1 ha y40 ff1 fs6 fc0 sc0 ls2e ws2c">Peripheral Function <span class="_ _13"> </span>Use </div><div class="t m0 x1 ha y41 ff1 fs6 fc0 sc0 ls2f ws2d">A/D converter </div><div class="t m0 xb ha y42 ff1 fs6 fc0 sc0 ls30 ws2e">Converts the level of the an<span class="ls2f ws2d">alog signal input from the </span></div><div class="t m0 xb ha y43 ff1 fs6 fc0 sc0 ls31 ws2f">P20/ANI0 pin. </div><div class="t m0 x1 h7 y44 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h5 y45 ff1 fs3 fc0 sc0 ls12 wsf">R01AN0452EJ01<span class="_ _1"></span>00 Rev. <span class="_ _3"></span>1.00 <span class="_ _4"> </span> <span class="_ _5"> </span>Page 3 of <span class="_ _3"></span>26 </div><div class="t m0 x1 h5 y15 ff1 fs3 fc0 sc0 ls14 ws10">Sep. 30, 2011 <span class="_ _6"> </span><span class="ls5 ws1"> </span></div><div class="t m0 xc h5 y46 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 xd hb y47 ff1 fs7 fc0 sc0 ls32 ws30">A/D voltage comparator enabled </div><div class="t m0 xe hb y48 ff1 fs7 fc0 sc0 ls33 ws31">Conversion results</div><div class="t m0 xf hb y49 ff1 fs7 fc0 sc0 ls34 ws32">A/D conversion</div><div class="t m0 x7 hb y4a ff1 fs7 fc0 sc0 ls35 ws1">Power </div><div class="t m0 x7 hb y4b ff1 fs7 fc0 sc0 ls36 ws1">do</div><div class="t m0 x10 hb y4c ff1 fs7 fc0 sc0 ls36 ws1">wn </div><div class="t m0 x11 hb y4d ff1 fs7 fc0 sc0 ls33 ws31">A/D conversion enabled </div><div class="t m0 x12 hb y4e ff1 fs7 fc0 sc0 ls32 ws1">ANI0 </div><div class="t m0 x11 hb y4f ff1 fs7 fc0 sc0 ls33 ws1">Conversion</div><div class="t m0 x11 hb y4c ff1 fs7 fc0 sc0 ls37 ws1">standby </div><div class="t m0 x13 hb y50 ff1 fs7 fc0 sc0 ls34 ws32">Conversion time</div><div class="t m0 x14 hb y51 ff1 fs7 fc0 sc0 ls34 ws32">Conversion time</div><div class="t m0 x15 hb y49 ff1 fs7 fc0 sc0 ls34 ws32">A/D conversion</div><div class="t m0 x16 hb y52 ff1 fs7 fc0 sc0 ls38 ws33">Conversion results </div><div class="t m0 x17 hb y53 ff1 fs7 fc0 sc0 ls39 ws1">ADCR </div><div class="t m0 x17 hb y54 ff1 fs7 fc0 sc0 ls3a ws1">INTAD </div><div class="t m0 x17 hb y55 ff1 fs7 fc0 sc0 ls33 ws1">ADCE </div><div class="t m0 x17 hb y56 ff1 fs7 fc0 sc0 ls33 ws1">ADCS </div><div class="t m0 x17 hb y57 ff1 fs7 fc0 sc0 ls38 ws1">Status </div><div class="t m0 x17 hb y58 ff1 fs7 fc0 sc0 ls3b ws1">ADS </div><div class="t m0 x18 h9 y59 ff2 fs3 fc0 sc0 ls3c ws34">Figure 1.1 <span class="_ _c"> </span> <span class="_ _c"> </span> <span class="_ _c"> </span>Outline of the A/D Converte<span class="_ _1"></span>r Conversion Processing </div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
<div id="pf4" class="pf w0 h0" data-page-no="4"><div class="pc pc4 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625154cd6caf5961923eb182/bg4.jpg"><div class="t m0 x1 h8 y16 ff1 fs4 fc0 sc0 ls15 ws11">RL78/G13 <span class="_ _7"> </span>A/D Converter (Software Tri<span class="ls16 ws12">gger and Sequential Conversion Modes) </span></div><div class="t m0 x1 h5 y14 ff1 fs3 fc0 sc0 ls12 wsf">R01AN0452EJ01<span class="_ _1"></span>00 Rev. <span class="_ _3"></span>1.00 <span class="_ _4"> </span> <span class="_ _5"> </span>Page 4 of <span class="_ _3"></span>26 </div><div class="t m0 x1 h5 y15 ff1 fs3 fc0 sc0 ls14 ws10">Sep. 30, 2011 <span class="_ _6"> </span><span class="ls5 ws1"> </span></div><div class="t m0 x1 h6 y35 ff2 fs4 fc0 sc0 ls2a ws1">2. <span class="_ _12"> </span><span class="ls1">Operation Check Conditions </span></div><div class="t m0 x1 h7 y36 ff3 fs3 fc0 sc0 ls29 ws23">The sample code c<span class="_ _1"></span>ontained i<span class="_ _1"></span>n this appl<span class="_ _1"></span>ication <span class="_ _1"></span>note has bee<span class="_ _1"></span>n checked under t<span class="_ _1"></span>he conditi<span class="_ _1"></span>ons listed i<span class="_ _1"></span>n the tabl<span class="_ _1"></span>e below. </div><div class="t m0 x1 h7 y5a ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x19 h9 y5b ff2 fs3 fc0 sc0 ls3c ws35">Table <span class="_ _3"></span>2.1 Operation <span class="_ _3"></span>Check <span class="_ _3"></span>Conditions </div><div class="t m0 x1 ha y5c ff1 fs6 fc0 sc0 ls3d ws36">Item Description </div><div class="t m0 x1 ha y5d ff1 fs6 fc0 sc0 ls3e ws37">Microcontroller used <span class="_ _14"> </span>RL78/G13 (R5F100LEA) </div><div class="t m0 x1 ha y5e ff1 fs6 fc0 sc0 ls3f ws38">Operating frequency <span class="_ _15"> </span><span class="ff5 ls5 ws1"></span><span class="ls30 ws2e"> <span class="_ _16"> </span>High-speed on-chip oscillator <span class="_ _2"></span>(HOCO) clock: 32 MHz </span></div><div class="t m0 x1a ha y5f ff5 fs6 fc0 sc0 ls5 ws1"><span class="ff1 ls30 ws2e"> <span class="_ _16"> </span>CPU/peripheral hardware cloc<span class="_ _2"></span>k: 32 MHz </span></div><div class="t m0 x1 ha y60 ff1 fs6 fc0 sc0 ls40 ws12">Operating voltage <span class="_ _17"> </span>5.0 V <span class="ls41 ws39">(can run on a voltage range <span class="ls1 ws3a">of 3.9 V to 5.5 V.) </span></span></div><div class="t m0 x1a ha y61 ff1 fs6 fc0 sc0 ls42 ws3b">LVD operation (V</div><div class="t m0 x12 hc y62 ff1 fs8 fc0 sc0 ls43 ws1">LVI</div><div class="t m0 x1b ha y63 ff1 fs6 fc0 sc0 ls2f ws2d">): Reset mode 3.75 V +/- 0.07 V </div><div class="t m0 x1 ha y64 ff1 fs6 fc0 sc0 ls44 ws3c">Integrated development </div><div class="t m0 x1 ha y65 ff1 fs6 fc0 sc0 ls31 ws1">environment </div><div class="t m0 x1a ha y66 ff1 fs6 fc0 sc0 ls30 ws2e">CubeSuite + V1.00.01 from Renesas Electro<span class="_ _2"></span>nics Corp. </div><div class="t m0 x1a ha y67 ff1 fs6 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 ha y68 ff1 fs6 fc0 sc0 ls45 ws3d">C compiler <span class="_ _18"> </span>CA78K0R V1.20 from Renesas Electronics C<span class="_ _2"></span>orp. </div><div class="t m0 x1 h7 y69 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y6a ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h6 y6b ff2 fs4 fc0 sc0 ls2a ws1">3. <span class="_ _12"> </span><span class="ls8 ws3e">Related Application Note </span></div><div class="t m0 x1 h7 y6c ff3 fs3 fc0 sc0 ls24 ws1b">The application note that is related<span class="_ _2"></span> to this application note is listed below for reference. </div><div class="t m0 x1 h7 y6d ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y6e ff3 fs3 fc0 sc0 ls1c ws3f">RL78/G13 Initialization<span class="_ _2"></span> (R01AN0451EJ0100) App<span class="_ _2"></span>lication Note <span class="_ _f"> </span> </div><div class="t m0 x1c h7 y6f ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y70 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y71 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y72 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 y73 ff3 fs3 fc0 sc0 ls5 ws1"> </div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
<div id="pf5" class="pf w0 h0" data-page-no="5"><div class="pc pc5 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625154cd6caf5961923eb182/bg5.jpg"><div class="t m0 x1 h8 y16 ff1 fs4 fc0 sc0 ls15 ws11">RL78/G13 <span class="_ _7"> </span>A/D Converter (Software Tri<span class="ls16 ws12">gger and Sequential Conversion Modes) </span></div><div class="t m0 x1 h6 y35 ff2 fs4 fc0 sc0 ls2a ws1">4. <span class="_ _12"> </span><span class="ls8 ws3d">Description of the Hardware </span></div><div class="t m0 x1 h6 y74 ff2 fs4 fc0 sc0 lse ws1">4.1 <span class="_ _19"> </span><span class="ls31 ws40">Hardware Configuration Example </span></div><div class="t m0 x1 h7 y75 ff3 fs3 fc0 sc0 ls46 ws1">Figure 4.1 s<span class="_ _1"></span>hows an e<span class="_ _1"></span>xample of <span class="_ _1"></span>hardware con<span class="_ _1"></span>figuration t<span class="_ _1"></span>hat is use<span class="_ _1"></span>d for t<span class="_ _1"></span>his applicati<span class="_ _1"></span>on note. </div><div class="t m0 x1 h7 y76 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y77 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y78 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y79 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y7a ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h5 y14 ff1 fs3 fc0 sc0 ls12 wsf">R01AN0452EJ01<span class="_ _1"></span>00 Rev. <span class="_ _3"></span>1.00 <span class="_ _4"> </span> <span class="_ _5"> </span>Page 5 of <span class="_ _3"></span>26 </div><div class="t m0 x1 h5 y15 ff1 fs3 fc0 sc0 ls14 ws10">Sep. 30, 2011 <span class="_ _6"> </span><span class="ls5 ws1"> </span></div><div class="t m0 x1d h5 y7b ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y7c ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y7d ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y7e ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y7f ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y80 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h5 y81 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1d h5 y82 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1e h5 y83 ff1 fs3 fc0 sc0 ls47 ws1">P40/TOOL0</div><div class="t m0 x15 hd y84 ff6 fs3 fc0 sc0 ls48 ws1">RESET</div><div class="t m0 x1f h5 y85 ff1 fs3 fc0 sc0 ls5 ws1">V</div><div class="t m0 x20 he y86 ff1 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x21 h5 y87 ff1 fs3 fc0 sc0 ls4a ws1">RL78/G13 </div><div class="t m0 x22 h5 y88 ff1 fs3 fc0 sc0 ls5 ws1">V</div><div class="t m0 xa he y89 ff1 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x23 h5 y8a ff1 fs3 fc0 sc0 ls25 ws1">EV</div><div class="t m0 x24 he y8b ff1 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x25 h5 y8a ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x23 h5 y8c ff1 fs3 fc0 sc0 ls5 ws1">V</div><div class="t m0 x26 he y8d ff1 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x27 h5 y8e ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x23 h5 y8f ff1 fs3 fc0 sc0 ls25 ws1">EV</div><div class="t m0 x24 he y90 ff1 fs9 fc0 sc0 ls4b ws1">SS</div><div class="t m0 x28 h5 y8f ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x23 h5 y91 ff1 fs3 fc0 sc0 ls5 ws1">V</div><div class="t m0 x26 he y92 ff1 fs9 fc0 sc0 ls4b ws1">SS</div><div class="t m0 x29 h5 y93 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x23 h5 y94 ff1 fs3 fc0 sc0 ls3c ws1">REGC</div><div class="t m0 x2a h5 y95 ff1 fs3 fc0 sc0 ls4c ws41">For on-chip debugger </div><div class="t m0 x2b h5 y96 ff1 fs3 fc0 sc0 ls4d ws1">P20/ANI0</div><div class="t m0 x2c h5 y97 ff1 fs3 fc0 sc0 ls3c ws34">Target analog input signal</div><div class="t m0 x1d h5 y98 ff1 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x2d h9 y99 ff2 fs3 fc0 sc0 ls47 ws42">Figure <span class="_ _3"></span>4.1 Hardware <span class="_ _3"></span>Configuration </div><div class="t m0 x1 h7 y9a ff3 fs3 fc0 sc0 ls24 ws1b">Notes: <span class="_"> </span>1. <span class="_ _1a"> </span>The purpose of this circuit is only to prov<span class="_ _2"></span>ide the connection outline and the circuit is simp<span class="_ _2"></span>lified accordingly. </div><div class="t m0 x2e h7 y9b ff3 fs3 fc0 sc0 ls46 ws1">When designi<span class="_ _1"></span>ng and i<span class="_ _1"></span>mplem<span class="_ _1"></span>enting an actual<span class="_ _1"></span> circuit, <span class="_ _1"></span>provide p<span class="_ _1"></span>roper pin t<span class="_ _1"></span>reatment<span class="_ _1"></span> and make sure that<span class="_ _1"></span> the </div><div class="t m0 x2e h7 y9c ff3 fs3 fc0 sc0 ls22 ws1a">hardware's electrical specifications are m<span class="_ _1"></span>et (conn<span class="lsc ws9">ect the input-dedicated <span class="_ _1"></span>ports separately to V</span></div><div class="t m0 x2f hf y9d ff3 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x30 h7 y9e ff3 fs3 fc0 sc0 ls4e ws43"> or V</div><div class="t m0 x31 hf y9d ff3 fs9 fc0 sc0 ls4f ws1">SS</div><div class="t m0 x32 h7 y9e ff3 fs3 fc0 sc0 ls50 ws44"> via a </div><div class="t m0 x2e h7 y9f ff3 fs3 fc0 sc0 ls5 ws1">resistor). </div><div class="t m0 x1 h7 ya0 ff3 fs3 fc0 sc0 ls13 ws1c"> <span class="_ _1b"> </span>2. <span class="_ _1a"> </span>Connect a<span class="_ _1"></span>ny pins <span class="_ _1"></span>whose nam<span class="_ _1"></span>e begins<span class="_ _1"></span> with EV</div><div class="t m0 x33 hf ya1 ff3 fs9 fc0 sc0 ls51 ws1">SS</div><div class="t m0 x34 h7 ya2 ff3 fs3 fc0 sc0 ls2b ws26"> to V</div><div class="t m0 x15 hf ya1 ff3 fs9 fc0 sc0 ls51 ws1">SS</div><div class="t m0 x35 h7 ya2 ff3 fs3 fc0 sc0 ls21 ws19"> and any pi<span class="_ _1"></span>ns whose nam<span class="_ _1"></span>e begins <span class="_ _1"></span>with EV</div><div class="t m0 x4 hf ya1 ff3 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x36 h7 ya2 ff3 fs3 fc0 sc0 ls2b ws26"> to V</div><div class="t m0 x37 hf ya1 ff3 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x38 h7 ya2 ff3 fs3 fc0 sc0 ls46 ws1">, </div><div class="t m0 x2e h7 ya3 ff3 fs3 fc0 sc0 ls47 ws1">respectively. </div><div class="t m0 x1 h7 ya4 ff3 fs3 fc0 sc0 ls18 ws45"> 3. <span class="_ _1c"></span>V</div><div class="t m0 x39 hf ya5 ff3 fs9 fc0 sc0 ls49 ws1">DD</div><div class="t m0 x3a h7 ya6 ff3 fs3 fc0 sc0 ls48 ws46"> must be held at not lower than the reset release voltage (V</div><div class="t m0 x3b hf ya5 ff3 fs9 fc0 sc0 ls52 ws1">LVI</div><div class="t m0 x3c h7 ya6 ff3 fs3 fc0 sc0 lsd wsa">) that is specified as LVD. </div><div class="t m0 x1 h7 ya7 ff3 fs3 fc0 sc0 ls5 ws1"> </div><div class="t m0 x1 h7 ya8 ff3 fs3 fc0 sc0 ls5 ws1"> </div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>