Panasonic MN103S manual Microcomputer Basics

Page 9

2.6.3

Serial interface UART transmission interrupt

48

2.6.4

A/D conversion interrupt

50

2.6.5

Enable multiple interrupts

52

2.7

Main routine

54

2.7.1

A/D conversion processing

55

2.7.2

Serial reception data processing

57

2.7.3

Key input processing

60

2.7.4

PWM output setting

62

2.7.5

Switching PWM output phase

68

2.8

Watchdog timer settings

71

2.8.1

Reset watchdog timer

71

2.8.2

Watchdog timer overflow processing

74

2.9

Creating 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

3.2

External interrupt

3

3.2.1

Setting specification polarity edge interrupts

3

3.2.2

Setting both edges interrupts

8

3.2.3

Specification polarity edge interrupt using noise filter

13

3.2.4

Both edges interrupts using noise filter

20

3.3

I/O ports

27

3.3.1

Setting output port

27

3.3.2

Setting input port

30

3.4

Input-only port

33

3.4.1

Setting input-only port

33

3.5

Pull-up resistor

35

3.5.1

Setting pull-up resistor

35

3.6

8-bit timer operation

37

Table of Contents 2

Image 9
Contents MN103S927/92A/F92G LSI Application Notes Excerption Page Page About This Manual Format used for sample program explanations About This Manual3 Page Table of Contents Microcomputer Basics Chapter overview Appendix Table of Contents Counting rising edges using the event count OverviewHardware allocation list Timer 1 Base Register TM1BR 0x0000A149 Timer 1 Binary Counter TM1BC 0x0000A151 Timer 1 Mode Register TM1MD 0x0000A141Port 3 I/O Control Register P3DIR 0x0000A023 Port 3 Output Mode Register P3MD 0x0000A033 END FlowchartExample program Enable the interruptCpum URL http//panasonic.co.jp/semicon/e-micom/inquiry InquiriesSales Offices