background image

Request for your special attention and precautions in using the technical information and

semiconductors described in this book

(1) If any of the products or technical information described in this book is to be exported or provided to non-residents, the

laws and regulations of the exporting country, especially, those with regard to security export control, must be observed. 

(2) The technical information described in this book is intended only to show the main characteristics and application circuit

examples of the products, and no license is granted under any intellectual property right or other right owned by our
company or any other company. Therefore, no responsibility is assumed by our company as to the infringement upon any
such right owned by any other company which may arise as a result of the use of technical information described in this
book.

(3) The products described in this book are intended to be used for standard applications or general electronic equipment

(such as office equipment, communications equipment, measuring instruments and household appliances). 
Consult our sales staff in advance for information on the following applications:

x

 Special applications (such as for airplanes, aerospace, automobiles, traffic control equipment, combustion equipment,     

   life support systems and safety devices) in which exceptional quality and reliability are required, or if the failure or
   malfunction of the products may directly jeopardize life or harm the human body.

x

 Any applications other than the standard applications intended.

(4) The products and product specifications described in this book are subject to change without notice for modification and/

or improvement. At the final stage of your design, purchasing, or use of the products, therefore, ask for the most up-to-
date Product Standards in advance to make sure that the latest specifications satisfy your requirements. 

(5) When designing your equipment, comply with the range of absolute maximum rating and the guaranteed operating condi-

tions (operating power supply voltage and operating environment etc.). Especially, please be careful not to exceed the
range of absolute maximum rating on the transient state, such as power-on, power-off and mode-switching. Otherwise,
we will not be liable for any defect which may arise later in your equipment.
  Even when the products are used within the guaranteed values, take into the consideration of incidence of break down
and failure mode, possible to occur to semiconductor products. Measures on the systems such as redundant design,
arresting the spread of fire or preventing glitch are recommended in order to prevent physical injury, fire, social dam-
ages, for example, by using the products.

(6) Comply with the instructions for use in order to prevent breakdown and characteristics change due to external factors

(ESD, EOS, thermal stress and mechanical stress) at the time of handling, mounting or at customer's process. When
using products for which damp-proof packing is required, satisfy the conditions, such as shelf life and the elapsed time
since first opening the packages.

(7) This book may be not reprinted or reproduced whether wholly or partially, without the prior written permission of Mat-

sushita Electric Industrial Co., Ltd.

PanaXSeries is a trademark of Matsushita Electric Industrial Co., Ltd.
The other corporation names, logotype and product names written in this book are trademarks or registered trademarks
of their corresponding corporations.

Summary of Contents for MICROCOMPUTER MN103S

Page 1: ...MICROCOMPUTER MN103S MN103S927 92A F92G LSI Application Notes Excerption Pub No 3329211 010E...

Page 2: ......

Page 3: ...e without notice for modification and or improvement At the final stage of your design purchasing or use of the products therefore ask for the most up to date Product Standards in advance to make sure...

Page 4: ...ion please mount the finished device on a product and measure the power consumption And then mark it on the face plate and calculate a battery drive time Dual oscillation circuit provides low voltage...

Page 5: ...Hardware allocation list Register description Flowchart Example program The following oscillation frequencies this document s sample programs use fosc 10 MHz fx 32 768 kHz More information Program CDs...

Page 6: ...About This Manual3...

Page 7: ...Table of Contents Chapter 1 Overview Chapter 2 Introduction Chapter 3 Microcomputer Basics 1 Chapter 4 Microcomputer Basics 2 Chapter 5 Appendix 1 2 3 4 5...

Page 8: ...le system specifications and functions to be used 5 2 1 3 Sample program flowchart overview 6 2 2 Startup 7 2 3 Interrupt functions 11 2 4 Initial settings of variables 14 2 5 Initializing functions t...

Page 9: ...executable EX files 75 2 9 1 Introduction of BAT files 75 2 10 System for developing this program 76 2 10 1 Development system configuration 76 Chapter 3 Microcomputer Basics 1 3 1 Chapter overview 2...

Page 10: ...2 phase encoding 97 3 7 8 Count disable with TM8AIO external trigger 103 3 7 9 Timer 1 shot operation 107 3 7 10 Timer activation with TM8AIO external trigger 111 3 8 Synchronous serial interface ope...

Page 11: ...iting in reading from EEPROM using synchronous serial interface 3 4 3 120 degrees power on PWM output 22 4 4 Sin wave PWM output using motor control PWM 37 Chapter 5 Appendix 5 1 Appendix 1 2 5 2 Appe...

Page 12: ...Table of Contents 5...

Page 13: ...al is detected 5 times an interrupt is generated and LED connected to P44 flashes The setting stored in the base register determines the number of rising edge detections that is counted until an inter...

Page 14: ...Timer 0 underflow interrupt enable flag 0 Disabled 1 Enabled 7 6 5 G4IR1 Timer 1 underflow interrupt request flag 0 No interrupt request 1 Interrupt request 4 G4IR0 Timer 0 underflow interrupt reques...

Page 15: ...TM1CNE Timer operation enable 0 Operation disabled 1 Operation enabled 6 TM1LDE Timer initialization 0 Normal operation 1 Initialization TM1BR value is loaded into TM1BC Timer pulse output 1 is reset...

Page 16: ...ration Port 3 Output Mode Register P3MD 0x0000A033 bp Flag name Description 7 4 3 P33M Switching outputs 0 I O port 1 TM3IO 2 P32M Switching outputs 0 I O port 1 TM2IO 1 P31M Switching outputs 0 I O p...

Page 17: ...count clock source Initialize CPU Set the base register Set Timer 1 input pin Select Timer 1 normal operation Set an interrupt level Enable the interrupt Start event Initialize Timer 1 int_timer1 Bina...

Page 18: ...rs Unused Interrupt External interrupt Unused 2004 09 Rev 0 1 include sr103s92 h include int h Declaration of function void main void void initialize void After the assembler boot processing is comple...

Page 19: ...Start the counter while 1 Operation initial setting void initialize void asm and 0xF0FF PSW n Disable all maskable interrupts asm nop n asm nop n CPUM 0x0000 Set normal mode Timer 1 underflow void int...

Page 20: ...Microcomputer Web site We offer you technical information regarding microcomputers at http panasonic co jp semicon e micom Microcomputer Manual Download Site http panasonic co jp semicon e micom manua...

Page 21: ...Plaza No 8 Lebuh Farquhar 10200 Penang Malaysia Tel 60 4 201 5113 Fax 60 4 261 9989 Johore Sales Office Menara Pelangi Suite8 3A Level8 No 2 Jalan Kuning Taman Pelangi 80400 Johor Bahru Johor Malaysi...

Reviews: