Panasonic PanaXSeries MN103S65G User Manual Download Page 18

SALES OFFICES

NORTH AMERICA

˜

 U.S.A. Sales Office:

Panasonic Industrial Company

[PIC]

 New Jersey Office:

2 Panasonic Way 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.S.A.

Tel:1-847-468-5720       Fax:1-847-468-5725

 San Jose Office:

2033 Gateway Place, Suite 200, 

San Jose, California 95110, 

U.S.A

Tel:1-408-487-9510       Fax:1-408-436-8037

 Atlanta Office:

1225 Northbrook Parkway Suite 1-151 Suwanee, Georgia 30024, 

U.S.A.

Tel:1-770-338-6953        Fax:1-770-338-6849

 San Diego Office:

9444 Balboa Avenue, Suite 185, San Diego, California 92123, 

U.S.A.

Tel:1-858-503-2910        Fax:1-858-715-5545

˜

 Canada Sales Office:

Panasonic Canada Inc.

[PCI]

5770 Ambler Drive 27 Mississauga, Ontario L4W 2T3, Canada

Tel:1-905-238-2243        Fax:1-905-238-2414

LATIN AMERICA

˜

 Mexico Sales Office:

Panasonic de Mexico, S.A. de C.V.

[PANAMEX]

Amores 1120 Col. Del Valle Delegacion Benito Juarez C.P. 03100 

Mexico, D.F. Mexico

Tel:52-5-488-1000          Fax:52-5-488-1073

 Guadalajara Office:

Sucursal Guadarajara Av. Lazaro Cardenas 2305 Local G-102 

Plaza Comercial Abastos; Col. Las Torres Guadalajara, Jal. 

44920, Mexico

Tel:52-3-671-1205          Fax:52-3-671-1256

˜

 Brazil Sales Office:

Panasonic do Brasil Ltda.

[PANABRAS]

Caixa Postal 1641, Sao Jose dos Campos, Estado de Sao Paulo, 

Brasil

Tel:55-12-3935-9000      Fax:55-12-3931-3789

EUROPE

˜

 Europe Sales Office:

Panasonic Industrial Europe GmbH

[PIE]

 Germany Sales Office:

Hans-Pinsel-Strasse 2 85540 Haar, Germany

Tel:49-89-46159-119      Fax:49-89-46159-195

ASIA

˜

 Singapore Sales Office:

Panasonic Semiconductor of South Asia

[PSSA]

300 Beach Road, #16-01, the Concourse, Singapore 199555, the 

Republic of Singapore

Tel:65-6390-3688           Fax:65-6390-3689

˜

 Malaysia Sales Office:

Panasonic Industrial Company (M) Sdn. Bhd.

[PICM]

 Head Office:

15th Floor, Menara IGB, Mid Valley City, Lingkaran Syed

Putra, 59200 Kuala Lumpur, Malaysia

Tel:60-3-2297-6888        Fax:60-6-2284-6898 

 Penang Office:

Suite 20-07,20th Floor, MWE 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, Malaysia

Tel:60-7-331-3822          Fax:60-7-355-3996 

˜

 Thailand Sales Office:

Panasonic Industrial (Thailand) Ltd.

[PICT]

252-133 Muang Thai-Phatra Complex Building, 31st Floor 

Rachadaphisek Road, Huaykwang, Bangkok 10320, Thailand

Tel:66-2-693-3400 to 3421    Fax:66-2-693-3422 to 3427

˜

 Philippines Sales Office:

Panasonic Industrial Sales Philippines

[PISP]

102 Laguna Boulevard,Bo.Don Jose Laguna Technopark, Santa. 

Rosa, Laguna 4026, the Philippines

Tel:63-2-520-8615          Fax:63-2-520-8629

˜

 China Sales Office:

Panasonic Industrial (Shanghai) Co., Ltd.

[PI(SH)]

Floor 12, China Insurance Building, 166 East Road

Lujiazui, Pudong New District, Shanghai 200120, China

Tel:86-21-6841-9642      Fax:86-21-6841-9631

Panasonic Industrial (Tianjin) Co., Ltd.                   [PI(TJ)]

Room No.1001, Tianjin International Building 75, Nanjin Road, 

Tianjin 300050, China

Tel:86-22-2313-9771      Fax:86-22-2313-9770

Panasonic SH Industrial Sales (Shenzhen) Co., Ltd. [PSI(SZ)]

 Shum Yip Centre Office:

25F, Shum Yip Centre, #5045, East Shennan Road, Shenzhen, 

China

Tel:86-755-8211-0888    Fax:86-755-8211-0970

Panasonic Shun Hing Industrial Sales (Hong Kong) Co., Ltd.

[PSI(HK)]

11th Floor, Great Eagle Center 23 Harbour Road, Wanchai, Hong 

Kong

Tel:852-2529-7322         Fax:852-2865-3697

˜

 Taiwan Sales Office:

Panasonic Industrial Sales (Taiwan) Co.,Ltd.

[PIST]

 Head Office:

6F, 550, Sec. 4, Chung Hsiao E. RD. Taipei 110, Taiwan

Tel:886-2-2757-1900      Fax:886-2-2757-1906

 Kaohsiung Office:

6th Floor, Hsin Kong Bldg. No.251, Chi Hsien 1st Road, 

Kaohsiung 800, Taiwan

Tel:886-7-346-3815        Fax:886-7-236-8362

˜

 Korea Sales Office:

Panasonic Industrial Korea Co., Ltd.

[PIKL]

Kukje Center Bldg. 11th Floor, 191 Hangangro 2ga, Youngsan-ku, 

Seoul 140-702, Korea

Tel:82-2-795-9600          Fax:82-2-795-1542

050204

Printed in Japan

Semiconductor Company, Matsushita Electric Industrial Co., Ltd.

Nagaokakyo, Kyoto 617-8520, Japan

Tel:075-951-8151

http://panasonic.co.jp/semicon/e-index.html

Summary of Contents for PanaXSeries MN103S65G

Page 1: ...MICROCOMPUTER MN103S MN103S65G LSI Application Note Excerption Pub No 3326501 010E ...

Page 2: ...eptional quality and reliability are required or if the failure or malfunction of the products may directly jeopardize life or harm the human body Any applications other than the standard applications intended 5 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 ...

Page 3: ...ignalterminalissetasan output Itis following asampleprogram Declarationofcontroldata Whenusingtheserialcommunication0 theserialcommunication0carriesoutaUARTsetupandaclockformonitors anditisanoutputsetup Otherbitsareinput setup define p0port 0x05 0b00000101Serialoutput Otherinputs define p0pulup 0x00 0b00000000Apull upisnotcarriedoutforall DeclarationofcontroldataWhenusingserialports0and2 theserial...

Page 4: ...Contents Chapter1 Power supply injection power onboot Initialization of the memory at the time 1 Chapter2 Each peripheral initial by C 2 3 Chapter3 The sample program in a sample circuit Chapter4 Appendix 4 VII ...

Page 5: ...uption 2 7 2 4 A8 bit 16 bit timer a peripheral initial 2 30 2 4 1 The various registers of a 8 bit timer 2 30 2 4 2 The various registers of a 16 bit timer 2 40 2 5 Serial communication a peripheral initial 2 51 2 5 1 The various registers of serial communication channels 0 and 1 2 51 2 5 2 The various registers of serial communication channel 2 2 53 2 6 PWM for motor control 2 63 2 7 The initial...

Page 6: ...ion processing others external interruption and timer serial 3 3 3 3 2 Timer processing 3 4 3 3 3 Processing about input output port 3 4 Chapter4 Appendix 4 1 Flash microcomputer 4 2 4 2 Purpose oriented initialization 4 3 4 3 Such at the time 4 4 4 4 About use of MAKE 4 6 4 5 The notes on circuitry 4 7 4 5 1 About supply voltage 4 7 4 5 2 About an analog input terminal 4 7 4 6 The notes on progra...

Page 7: ...by the down counter TM0BC TM1BC TM3BC TM4BC TM5BC TM6BC TM7BC Timer mode register It is the 8 bit register which sets up the mode of a timer of operation The clock source which can be chosen by each timer is different Be careful of a setup TM0D Timer 0 mode register Bit7 Count operation permission 0 A stop of operation 1 Permission of operation Bit6 Base register setup 0 Usually operation 1 Initia...

Page 8: ...election 000 IOCLK 001 IOCLK 8 010 IOCLK 32 011 Cascade connection with a timer 0 100 Timer 0 underflow 101 Prohibition of a setup 110 Timer 2 underflow 111 TMIN1 terminal input TM2MD Timer 2 mode register Bit7 Timer operation permission 0 A stop of operation 1 Permission of operation Bit6 Timer initialization 0 Usually operation 1 Initialization The value of a base register is loaded to a binary ...

Page 9: ...source selection 000 IOCLK 001 IOCLK 8 010 IOCLK 32 011 Cascade connection with a timer 2 100 Timer 0 underflow 101 Timer 1 underflow 110 Timer 0 underflow 111 TMIN3 terminal input TM4MD Timer 4 mode register Bit7 Timer operation permission 0 Stop of operation 1 Permission of operation Bit6 Timer initialization 0 Usually operation 1 Initialization The value of a base register is loaded to a binary...

Page 10: ...0 IOCLK 32 011 Cascade connection with a timer 4 100 Timer 4 underflow 101 Prohibition of a setup 110 Timer 6 underflow 111 TM5IN terminal input TM6MD Timer 6 mode register Bit7 Timer operation permission 0 Stop of operation 1 Permission of operation Bit6 Timer initialization 0 Usually operation 1 Initialization The value of a base register is loaded to a binary counter The timer pulse output 6 is...

Page 11: ... Cascade connection with a timer 6 100 Timer 4 underflow 101 Timer 5 underflow 110 Timer 6 underflow 111 TM7IN terminal input TMMPSC Prescaler mode register Bit7 Count operation permission 0 Stop of operation 1 Permission of operation To use 1 8SYSCLK and 1 32SYSCLK a Prescaler control register needs to be set up When a TMnIO terminal input is chosen the rising edge of a terminal input is counted ...

Page 12: ...gned char 0x0000A145 Timer 4 register address declaration define TM4BC volatile unsigned char 0x0000A170 define TM4BR volatile unsigned char 0x0000A168 define TM4MD volatile unsigned char 0x0000A160 Timer 5 register address declaration define TM5BC volatile unsigned char 0x0000A171 define TM5BR volatile unsigned char 0x0000A169 define TM5MD volatile unsigned char 0x0000A161 Timer 6 register addres...

Page 13: ...ea60 60000 1 define TM0MD_LOAD2 0x42 read cycles min ratio clock source pre scaler 0 clock setup define TM1MD_LOAD2 0x03 timer 0 and cascade connection define TM0MD_STABLE2 0x02 stabilization define TM1MD_STABLE2 0x01 stabilization define TM0MD_START2 0x82 timer start define TM1MD_START2 0x81 timer start Interval timer by 8 bit timer Pre scaler 0 is used and the cascade connection of the timers 0 ...

Page 14: ...1BR volatile unsigned char 0x0000A149 define TM1MD volatile unsigned char 0x0000A141 Timer 2 register address declaration define TM2BC volatile unsigned char 0x0000A154 define TM2BR volatile unsigned char 0x0000A14C define TM2MD volatile unsigned char 0x0000A144 Timer 3 register address declaration define TM3BC volatile unsigned char 0x0000A155 define TM3BR volatile unsigned char 0x0000A14D define...

Page 15: ...t define TM1MD_STOP 0x00 timer stop define TM1_COUNT3 5 cycles min ratio setup 5 cycles min 1 define TM1MD_LOAD1 0x03 cycles min ratio reloaded define TM1MD_STABLE1 0x00 stabilization define TM1MD_START1 0x40 timer start define TM1MD_ENABLE1 0x80 timer permission define PS0_COUNT200 199 cycles min ratio setup 200 cycles min 1 define TM0_COUNT0x5f 0x5f cycles min ratio setup 0xea5f 0xea60 60000 1 d...

Page 16: ...1 TM0MD data count source setup input TMIN0 data TM0MD_START1 TM0MD data initialize timer LDE 1 data TM0MD_START1 TM0MD data Timer start LDE 0 data TM0MD_ENABLE1 TM0MD data Timer permission CNE 1 The sample of a 8 bit timer is recorded on attached CD ROM Inclusion directory program initial timecounter timer8 program timer8evt c 2 39 ...

Page 17: ...Issued by Matsushita Electric Industrial Co Ltd Matsushita Electric Industrial Co Ltd MN103S65G LSI Application Note Excerption March 2004 1st Edition ...

Page 18: ... 6 2284 6898 Penang Office Suite 20 07 20th Floor MWE 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 Malaysia Tel 60 7 331 3822 Fax 60 7 355 3996 Thailand Sales Office Panasonic Industrial Thailand Ltd PICT 252 133 Muang Thai Phatra Complex Building 31st ...

Reviews: