Panasonic MN101CP49K User Manual
![Panasonic](https://files.manualsbrain.com/attachments/8f677e63fb64cbb6c62d09e6242996e7631380a8/common/fit/150/50/34d700d3fb727c767799b2da5cc474b219c0a4312e9e3044c99491a2fb9a/brand_logo.png)
3.14.4 Setting communication speed for UART ............................................................................................... 106
3.14.5 Notes and applications related to communication channel..................................................................... 106
3.15 Data Transfer Function, Initializing Peripherals............................................................................................ 108
3.15.1 Setting in individual modes.................................................................................................................... 110
3.16 A/D Conversion, Initializing Peripherals....................................................................................................... 113
3.17 D/A Conversion, Initializing Peripherals....................................................................................................... 116
3.18 Access Cycle Timing Variable Function, Initializing Peripherals ................................................................. 118
Chapter 4 Sample Program 1 ..................................................................................................................................... 119
4.1 Overview of Sample Circuit ............................................................................................................................ 120
4.2 Sample Program Features................................................................................................................................ 129
4.2.1 Sample program features ......................................................................................................................... 129
4.2.2 Basic operation of sample program.......................................................................................................... 129
4.2.3 Structure of sample program.................................................................................................................... 131
4.2.4 Descriptions of individual functions ........................................................................................................ 131
4.3 Switching States between Operation Mode and Sleep Mode........................................................................... 147
4.3.1 Processing during initialization................................................................................................................ 147
4.3.2 Operation mode switching processing ..................................................................................................... 147
4.4 Set Values and Descriptions Related to Individual Processes in Sample Program.................................................................... 149
4.4.1 Initializing................................................................................................................................................ 149
4.4.2 Interrupt processing (external interrupt, timer, serial and other) .............................................................. 151
4.4.3 Timer processing...................................................................................................................................... 152
4.4.4 Serial communication processing ............................................................................................................ 154
4.4.5 A/D converter processing......................................................................................................................... 156
4.4.6 Processing for data transfer...................................................................................................................... 156
4.4.7 Processing for input/output ports ............................................................................................................. 157
Chapter 5 Sample Program 2 ..................................................................................................................................... 159
5.1 Startup ............................................................................................................................................................. 160
5.1.1 Overview.................................................................................................................................................. 160
5.1.2 Startup processing.................................................................................................................................... 160
5.1.3 Startup program ....................................................................................................................................... 160
5.2 Sample Program Using Timer Function .......................................................................................................... 163
5.2.1 Timer program ......................................................................................................................................... 163
5.2.2 Stopwatch program .................................................................................................................................. 165
5.2.3 Time matching program........................................................................................................................... 179
5.2.4 Roulette program ..................................................................................................................................... 191
5.2.5 Slot program ............................................................................................................................................ 205