Instruction/ maintenance manual of the product MN101CF49K Panasonic
Go to page of 19
MICROCOMPUTER MN101C MN101C49G/49H/49K/F49K/P49K LSI Application Notes Excerption Pub.No.3144911-031E.
Request for your special attention an d precau tions in using the technic al information and semiconductors described in this book (1) If any of the p roducts or technical info rmation described in th.
About This Manual ■ Configuration of This Manual This LSI application note is c onsists of the following sections. Chapter 1 Overview This chapter describes the overview of this applic ation note. Chapter 2 Startup Program This chapter des cribes a startup p rocess necessary for executing a program .
■ Related Manuals Note that the following related docum ents are available. "MN101C49G/49H/49K/F49K/P49K LSI User's Manual" "MN101C Series C Compiler User's Manual: Language Description" <Describes the syntax of the C Compiler.
Chapter 1 Overview Chapter 2 Startup Program Chapter 3 Register Setup of Each Function Chapter 4 Sample Program 1 Chapter 5 Sample Program 2 Chapter 6 Appendix 1 Chapter 7 Appendix 2 1 2 3 6 7 4 5.
Table of Contents Chapter 1 Overview ............................................................................................................. ........................................ 13 1.1 Over view ..............................................
3.6 How to Inter rupt ................................................................................................................................................ 45 3.6.1 Interrupt vector table ....................................................
3.14.4 Setting co mmunica tion speed for UART .................................................................................... ........... 106 3.14.5 Notes and appl ications re lated to communi cation ch annel......................................
5.3 Sample Program Us ing Serial F unction....................................................................................... .................... 219 5.3.1 Serial prog ram...........................................................................
Chapter 3 Register Setup of Each Function 62 3.9 8-bit Timer, Initializing Peripherals There are five 8-bit timers comprising timer 0 to 4. The timer comprises a bin ary counter, a com pare register and a mode register. You can combin e two 8-bit timers, timer 0 and 1 or 2 and 3, to use as a 16-bit timer.
Chapter 3 Register Setup of Each Function 63 BIT3: "0" Stop count "1" Count operation BIT2, 1, 0: Clock source selectio n 000: High speed crystal clock oscillatio n frequency 001: .
Chapter 3 Register Setup of Each Function 64 001: Timer 3, prescaler output signal 010: Low speed crystal clock oscillation frequen cy 011: Synchronous low speed crysta l clock oscillation frequency 1.
Chapter 3 Register Setup of Each Function 65 20 MHz / 64 = 312500 312500 / 100 = 3125 This setting is not av ailable with the 8-bit timer. Setting by using low speed osci llation clock: 32.768 kHz/ 4 = 8192 8192 / 100 = 81.92 = approx. 82 If you set the formula 82 − 1 = 8 1, the interval timer with 10 milli seconds will be set.
Chapter 3 Register Setup of Each Function 66 #define TM0BC (*(volatile unsigned cha r *)TM0BC_adr ) #define TM0O C_adr 0x3F52 #define TM0OC (*(volatile unsigned cha r *)TM0OC_adr ) #define TM0M D_adr .
Chapter 3 Register Setup of Each Function 67 Figure 3 8-bit timer PWM operation timing chart The following section describes a sample program. /* Control da ta declaratio n */ #define TM4MOD 0x00 /* 0.
Chapter 3 Register Setup of Each Function 68 the interval outp ut for the interval tim er. Serial interface transfer cloc k generation You can use the ouput signal fro m a timer to generate a serial transfer clo ck. You can use the interva l timer and tim er output setting to set the tim er.
Chapter 3 Register Setup of Each Function 69 /* Register address decl aration */ #define TM2BC_adr 0x3F58 #define TM2BC (*(volatile unsigned cha r *)TM2BC_adr ) #define TM2OC_adr 0x3F5A #define TM2OC .
Inquiries If you have questions re garding techni cal inform ation on this m anual, please visit the foll owing URL. User Support Team Semiconductor Company Matsushita Electric Industrial Co.
SALES OFFICES NORTH AMERICA U.S.A. Sales Office: Panasonic Industrial Company [PIC] New Jersey Office: 2 Panasonic W ay Secaucus, New Jersey 07094, U.S.A. Tel:1-201-348-5257 Fax:1-201-392-4652 Chicago Office: 1707 N. Randall Road Elgin, Illinois 60123-7847, U.
An important point after buying a device Panasonic MN101CF49K (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Panasonic MN101CF49K yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Panasonic MN101CF49K - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Panasonic MN101CF49K you will learn all the available features of the product, as well as information on its operation. The information that you get Panasonic MN101CF49K will certainly help you make a decision on the purchase.
If you already are a holder of Panasonic MN101CF49K, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Panasonic MN101CF49K.
However, one of the most important roles played by the user manual is to help in solving problems with Panasonic MN101CF49K. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Panasonic MN101CF49K along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center