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

Page 9
Image 9
Panasonic MN103S manual Microcomputer Basics