Panasonic MN103001G/F01K Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Computers Panasonic MN103001G/F01K herunter. Panasonic MN103001G/F01K User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 466
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - LSI User’s Manual

MICROCOMPUTER MN1030MN103001G/F01KLSI User’s ManualPub.No.23101-050E

Seite 2

iiTable of Contents1. General Specifications1.1 Overview ...

Seite 3

Memory Modes4-44.3 Description of Memory Mode4.3.1 Memory Extension ModeThe memory mode which comprises a system from both internal and external memor

Seite 4

Memory Modes4-54.3.2 Processor ModeThe memory mode which executes externally located instructions while using the internal data RAM and I/O p

Seite 5

Memory Modes4-6

Seite 6

5. Operating Mode5

Seite 7

Operating Mode5-25.1 OverviewThe 32-bit microcontroller has the following three operating modes. Oscillator start/stop and CPU and peripheralcircuit s

Seite 8

Operating Mode5-35.2 Reset Mode• The mode in which the reset (RST) pin is active (“L” level) is called “Reset Mode”.• When the reset pin is low, the c

Seite 9

Operating Mode5-45.3 Low Power ModeLow power consumption is achieved by stopping the oscillation of the oscillators and the clock generator (CG) andst

Seite 10 - Table of Contents

6. Clock Generator613

Seite 11 - 8. Bus Controller (BC)

Clock Generator6-26.1 OverviewThe CG has an internal PLL circuit; in addition to supplying clock pulses to this microcontroller at a frequency thatis

Seite 12 - 10. 8-bit Timers

Clock Generator6-36.4 Description of Operation6.4.1 Input Frequency SettingThe CG input frequency range is set by the external input pin CKSEL. When

Seite 13 - 13. Serial Interface

iii5. Operating Mode5.1 Overview ...

Seite 14 - 15. I/O Ports

Clock Generator6-4The relationship between the input frequency (fosci) and the SYSCLK, MCLK, and IOCLK multiples and frequenciesis shown in Table 6-4-

Seite 15 - Appendix

7. Internal Memory7

Seite 16 - List of Figures and Tables

Internal Memory7-27.1 OverviewThe MN103001G has 128 Kbytes of instruction ROM and 8 Kbytes of internal data RAM. The MN1030F01K has256 Kbytes of flas

Seite 17

Internal Memory7-37.3 Internal Memory ConfigurationThe internal instruction ROM is located in the internal memory space at address x'40000000 to

Seite 18

Internal Memory7-4

Seite 19

8. Bus Controller (BC)8

Seite 20

Bus Controller (BC)8-28.1 OverviewThe bus controller (BC) controls interfacing between the CPU core, internal I/O (peripherals), and devices externalt

Seite 21

Bus Controller (BC)8-38.3 Bus ConfigurationFig. 8-3-1 shows the bus configuration. The chip’s internal buses are the ROM bus between the CPU core and

Seite 22

Bus Controller (BC)8-4Fig. 8-4-1 Block Diagram for the Bus ControllerBC address busBC data busI/O address busI/O data busBC internal data busBC bus

Seite 23 - List of Tables

Bus Controller (BC)8-58.5 Pin FunctionsThe external pin functions relating to the bus controller are shown in Table 8-5-1.Table 8-5-1 External Pin F

Seite 24

iv8.13.2 16-bit Bus with Handshaking, in Synchronous Mode and inAddress/Data Separate Mode...

Seite 25

Bus Controller (BC)8-6Table 8-5-2 shows the operating status of the external pins concerning BC.Table 8-5-2 Operating Status of Pins Concerning BCOp

Seite 26

Bus Controller (BC)8-78.6 Description of RegistersTable 8-6-1 lists the bus controller registers. The settings of these registers are used in timing

Seite 27 - 1. General Specifications

Bus Controller (BC)8-8~~~~~~~~8.6.1 Memory Block 0 Control RegisterMemory control register 0A/B is used to set the memory block 0 read/write timing an

Seite 28 - 1.2 Features

Bus Controller (BC)8-9~~~~~~Memory control register 0BRegister symbol: MEMCTR0BAddress: x’32000020Purpose: Sets the bus mode, access timing, etc., for

Seite 29 - _____________

Bus Controller (BC)8-108.6.2 Memory Block 1 Control RegisterMemory control register 1A/B is used to set the memory block 1 read/write timing, synchron

Seite 30

Bus Controller (BC)8-11~~~~~~~~~~When using DRAM (Memory control register 1B B1DRAM = 1)Bit No. Bit name Description Setting conditions1 to 0 BCS1 to

Seite 31 - TOP VIEW

Bus Controller (BC)8-12~~~~~~Memory control register 1BRegister symbol: MEMCTR1BAddress: x’32000022Purpose: Sets the bus mode, access timing, etc., fo

Seite 32 - Table 1-4-1 Pin Assignments

Bus Controller (BC)8-13When using DRAM (Memory control register 1B B1DRAM = 1)Bit No. Bit name Description Setting conditions0 DRAM Block 1 DRAM 1: U

Seite 33

Bus Controller (BC)8-148.6.3 Memory Block 2 Control RegisterMemory control register 2A/B is used to set the memory block 2 read/write timing, synchron

Seite 34

Bus Controller (BC)8-15When using handshaking mode (Memory control register 2B B2DRAM = 0, B2WM = 1)Bit No. Bit name Description Setting conditions1

Seite 35

v10.6 Description of Operation... 10-2010.6.1 Interval Timers

Seite 36

Bus Controller (BC)8-16When using fixed wait mode and not using DRAM (Memory control register 2B B2DRAM = 0, B2WM = 0)Bit No. Bit name Description S

Seite 37 - 2.2 Block Diagram

Bus Controller (BC)8-17~~~~~~~~When using DRAM (Memory control register 2B B2DRAM = 1 B2WM = 0)Bit No. Bit name Description Setting conditions0 DRAM B

Seite 38 - 2.3 Programming Model

Bus Controller (BC)8-18After the reset is released, block 2 is set as follows:Address output end timing 3MCLKRE negate timing 29MCLKWE negate timing 2

Seite 39

Bus Controller (BC)8-198.6.4 Memory Block 3 Control RegisterMemory control register 3A/B is used to set the memory block 3 read/write timing, synchron

Seite 40

Bus Controller (BC)8-20When using handshaking mode (Memory control register 3B B3WM = 1)Bit No. Bit name Description Setting conditions1 to 0 BCS1 to

Seite 41

Bus Controller (BC)8-21When using handshaking mode (Memory control register 3B B3WM = 1)Bit No. Bit name Description Setting conditions1 WM Block 3 wa

Seite 42 - USE WAIT W WAIT

Bus Controller (BC)8-228.6.5 DRAM control registerDRAM control registerRegister symbol: DRAMCTRAddress: x'32000040Purpose: Stores various DRAM mo

Seite 43 - Reset 00000 0000 000 0 00 0

Bus Controller (BC)8-23~~8.6.6 Refresh count registerRegister symbol: REFCNTAddress: x'32000042Purpose: Sets the DRAM refresh interval when DRAM

Seite 44 - 2.4 Instructions

Bus Controller (BC)8-248.6.7 Page Row Address RegisterPage Row Address RegisterRegister symbol: PRARAddress: x'32000044Purpose: Sets the row addr

Seite 45

Bus Controller (BC)8-25Notes when switching the internal clock multiplierBe aware of the following points when setting the clock control register CKCT

Seite 46

vi13.4.2 Block Diagram of UART Serial Interface ... 13-3713.4.3 Description of Registers for the UART Ser

Seite 47

Bus Controller (BC)8-268.7 Space PartitioningIn extension memory mode (MMOD 1 to 0 = "LH"), the 1 GB memory space from x'80000000 to x&

Seite 48 - 2.5 Interrupts

Bus Controller (BC)8-27Fig. 8-7-2 Space Partitioning1 GBProcessor modeSystemreserved2 GB1 GBInternal memory spaceExternal memory spaceExternal memor

Seite 49

Bus Controller (BC)8-288.8 Operation ClocksMCLK, IOCLK, and SYSCLK are used as BC operation clocks. Table 8-8-1 shows the ratio of each clock versust

Seite 50

Bus Controller (BC)8-298.10 Bus CycleDepending on the value of the external input pin CKSEL and the internal registers, the MCLK frequency can beeithe

Seite 51 - 1413121110987654321

Bus Controller (BC)8-308.11 Store BufferThe bus controller has one store buffer (with a 32-bit data width) built in, and is used to avoid a time penal

Seite 52

Bus Controller (BC)8-318.12 Accessing the Internal I/O SpaceAccesses to the internal I/O space (I/O register) are performed through the I/O bus, with

Seite 53

Bus Controller (BC)8-328.13 External Memory Space Access (Non-DRAM Spaces)During an access to external memory, the BC controls the interface for the r

Seite 54 - 3 Cycles

Bus Controller (BC)8-338.13.1 16-bit Bus with Fixed Wait States, in Synchronous Mode and in Address/Data Separate ModeSetting of the various parameter

Seite 55

Bus Controller (BC)8-34AnDnWEnRECSnEAMCLKSYSCLKBCSBCEBCSBCERENEAWENWriteRead:UndefinedFig. 8-13-2 Access Timing on a 16-bit Bus with Fixed Wait States

Seite 56

Bus Controller (BC)8-358.13.2 16-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Separate ModeWhen using handshaking, bus access sta

Seite 57

vii15.9.3 Pin Configurations ... 15-4415.10 Port 8 ...

Seite 58 - Operation extension interface

Bus Controller (BC)8-36Fig. 8-13-5 Access Timing on a 16-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Separate Mode (MCLK =

Seite 59 - 3.2 Extension Instructions

Bus Controller (BC)8-37AnDnWEnRECSnEAMCLKSYSCLKEAReadWriteBCEBCERENWEN: Undefined8.13.3 16-bit Bus in Asynchronous Mode and in Address/Data Separate M

Seite 60 - Bit 31 Bit 0

Bus Controller (BC)8-38AnDnWEnRECSnEAMCLKSYSCLKEA Read Write BCEBCERENWEN: UndefinedFig. 8-13-9 Access Timing on a 16-bit Bus in Asynchronous Mode an

Seite 61

Bus Controller (BC)8-398.13.4 8-bit Bus with Fixed Wait States, in Synchronous Mode and in Address/Data Separate Mode8-bit bus mode is set for block 0

Seite 62

Bus Controller (BC)8-40AnD7-0WE0RECSnMCLKSYSCLKRead low-order sideRead high-order sideWrite low-order sideWrite high-order sideA[0]=0BCEBCSA[0]=1BCEBC

Seite 63

Bus Controller (BC)8-418.13.5 8-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Separate Mode8-bit bus mode is set for blocks 2 and

Seite 64

Bus Controller (BC)8-42(a) Read Timing(b) Write TimingFig. 8-13-13 Access Timing on a 8-bit Bus with Handshaking, in Synchronous Mode and in Address

Seite 65

Bus Controller (BC)8-43Fig. 8-13-14 Access Timing on a 8-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Separate Mode (MCLK = SYS

Seite 66

Bus Controller (BC)8-44(a) Read Timing(b) Write TimingFig. 8-13-15 Access Timing on a 8-bit Bus with Handshaking, in Synchronous Mode and in Address

Seite 67

Bus Controller (BC)8-458.13.6 8-bit Bus in Asynchronous Mode and in Address/Data Separate Mode8-bit bus mode is set for block 0 by setting the mode th

Seite 68

viiiList of Figures and TablesList of Figures1. General SpecificationsFig. 1-3-1 MN103001G Block Diagram ...

Seite 69

Bus Controller (BC)8-46Fig. 8-13-17 Access Timing on a 16-bit Bus with Fixed Wait States, in Synchronous Mode and in Address/Data Multiplex Mode (MCLK

Seite 70

Bus Controller (BC)8-47Fig. 8-13-18 Access Timing on a 16-bit Bus with Fixed Wait States, in Synchronous Mode and in Address/Data Multiplex Mode (MCLK

Seite 71

Bus Controller (BC)8-488.13.8 16-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Multiplex ModeBy setting the mode through the MMOD1

Seite 72

Bus Controller (BC)8-49Fig. 8-13-21 Access Timing on a 16-bit Bus with Handshaking, in Synchronous Mode and inAddress/Data Multiplex Mode (MCLK = SYSC

Seite 73

Bus Controller (BC)8-50Fig. 8-13-22 Access Timing on a 16-bit Bus with Handshaking, in Synchronous Mode and inAddress/Data Multiplex Mode (MCLK = SYSC

Seite 74

Bus Controller (BC)8-518.13.9 16-bit Bus in Asynchronous Mode and in Address/Data Multiplex ModeBy setting the mode through the MMOD1 and 0 pins and t

Seite 75

Bus Controller (BC)8-528.13.10 8-bit Bus with Fixed Wait States, in Synchronous Mode and in Address/Data Multiplex ModeBy setting the mode through the

Seite 76

Bus Controller (BC)8-53(a) Read TimingFig. 8-13-24 Access Timing on a 8-bit Bus with Fixed Wait States, in Synchronous Mode and inAddress/Data Multipl

Seite 77

Bus Controller (BC)8-54Fig. 8-13-25 Access Timing on a 8-bit Bus with Fixed Wait States, in Synchronous Mode and inAddress/Data Multiplex Mode (MCLK =

Seite 78

Bus Controller (BC)8-55(b) Write TimingFig. 8-13-26 Access Timing on a 8-bit Bus with Fixed Wait States, in Synchronous Mode and inAddress/Data Multip

Seite 79

ixFig. 8-7-1 Address Format When Accessing External Memory ... 8-26Fig. 8-7-2 Space Partitioning...

Seite 80

Bus Controller (BC)8-568.13.11 8-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Multiplex ModeBy setting the mode through the MMOD1

Seite 81

Bus Controller (BC)8-57Fig. 8-13-27 Access Timing on a 8-bit Bus with Handshaking, in Synchronous Mode and in Address/Data Multiplex Mode (MCLK = SYSC

Seite 82

Bus Controller (BC)8-58(a) Read TimingFig. 8-13-28 Access Timing on a 8-bit Bus with Handshaking in Synchronous Mode and in Address/Data Multiplex Mod

Seite 83 - 10000000000000000

Bus Controller (BC)8-59(a) Read Timing(b) Write TimingFig. 8-13-29 Access Timing on a 8-bit Bus with Handshaking in Synchronous Mode and in Address/Da

Seite 84 - Dm[23:16] Dm[15:8] Dm[7:0]

Bus Controller (BC)8-608.13.12 8-bit Bus in Asynchronous Mode and in Address/Data Multiplex ModeBy setting the mode through the MMOD1 and 0 pins and t

Seite 85

Bus Controller (BC)8-61(b) Write Timing(a) Read TimingFig. 8-13-30 Access Timing on a 8-bit Bus in Asynchronous Mode and inAddress/Data Multiplex Mode

Seite 86

Bus Controller (BC)8-628.14 External Memory Space Access (DRAM Space)8.14.1 DRAM SpaceBlocks 1 and 2 can be used as DRAM space by setting the BnDRAM b

Seite 87

Bus Controller (BC)8-63 Minimum value for the RAS Precharge intervalWhen consecutive DRAM accesses are performed, the RAS precharge interval is short

Seite 88 - Multiply-and

Bus Controller (BC)8-64 2 WE control/2 CAS controlDRAM that permits byte/word control can be supported by selecting either one of the following two m

Seite 89 - MCRH, MCRL access instruction

Bus Controller (BC)8-658.14.2 DRAM page modeIf the PAGE bit in the DRAM control register is set to “1”, page mode access is enabled, making high-speed

Seite 90

xFig. 8-13-21 Access Timing on a 16-bit Bus with Handshaking, in Synchronous Mode andin Address/Data Multiplex Mode (MCLK = SYSCLK multiplied by 2) ..

Seite 91

Bus Controller (BC)8-668.14.3 Software Page ModeSoftware page mode is a mode that forcibly initiates page mode by setting the control register.Operati

Seite 92

Bus Controller (BC)8-67MCLKRowCAO+1AnCASREDnASRRASnColumnCASASCColumnCASColumnCASASC ASCMCLKRowCAO+1AnCASWEnDnASRRASnColumn ColumnCASASC ASCCASASCCASC

Seite 93

Bus Controller (BC)8-68[Restrictions on Use](1) While software page mode is in effect, external access outside of the block in question is prohibited.

Seite 94

Bus Controller (BC)8-69Fig. 8-14-8 DRAM Refresh TimingFor details on the ASR and RP settings, refer to the explanations in section 8.6.2, “Memory Bloc

Seite 95

Bus Controller (BC)8-708.15 Bus ArbitrationIn this microcontroller, bus arbitration is implemented through the bus authority request signal (BR) and t

Seite 96

Bus Controller (BC)8-71Fig. 8-15-1 Bus Arbitration Timing 1(Bus Authority Release/Bus Authority Acquisition, nfr = 4)Fig. 8-15-2 Bus Arbitration Timin

Seite 97 - 4. Memory Modes

Bus Controller (BC)8-72Fig. 8-15-3 Bus Arbitration Timing 3(Bus Authority Release/Bus Authority Acquisition, nfr = 1)Fig. 8-15-4 Bus Arbitration T

Seite 98

Bus Controller (BC)8-738.16 CautionsThese cautions concern the BC. These cautions must be heeded, since failure to do so may result in misoperation.1

Seite 99 - /MN1030F01K

Bus Controller (BC)8-742._____Designate the bus authority request pin (BR) as a general-purpose input port, and the bus authority release_____pin (BG)

Seite 100

9. Interrupt Controller9

Seite 101

xi10. 8-bit TimersFig. 10-3-1 8-bit Timer Block Diagram (Timers 0 to 3) ... 10-3Fig. 10-3-2 8

Seite 102 - Memory Modes

Interrupt Controller9-29.1 OverviewThe interrupt controller processes non-maskable interrupts and level interrupts (internal interrupts and externalin

Seite 103 - 5. Operating Mode

Interrupt Controller9-39.4 Block DiagramFig. 9-4-1 Block Diagram 1Interrupt controlregister addressNMIRQ pinWatchdog timer overflowSystem errorReser

Seite 104 - 5.1 Overview

Interrupt Controller9-4Interrupt controlregister addressGROUP 93210——GROUP 103210——GROUP 73210x'3400011C——GROUP 83210x'34000

Seite 105 - 5.2 Reset Mode

Interrupt Controller9-5Interrupt controlregister addressGROUP 143210———GROUP 153210———GROUP 163210———GROUP 173210———GROUP 183210——

Seite 106 - 5.3 Low Power Mode

Interrupt Controller9-69.5 Description of RegistersThis interrupt controller includes an interrupt control registers, an interrupt accepted group regi

Seite 107 - 6. Clock Generator

Interrupt Controller9-7Non-maskable interrupt control registerRegister symbol: G0ICR (NMICR)Address: x'34000100Purpose: This register determines

Seite 108 - 6.3 Block Diagram

Interrupt Controller9-8Group n interrupt control register GnICR (n = 2 to 19)Registers G2ICR to G19ICR control level interrupts for groups 2 to 19, re

Seite 109 - 6.4 Description of Operation

Interrupt Controller9-9Bit No. Bit name Description11 to 8 IE3 to 0 Group n interrupt enable register• This register is used to specify whether an int

Seite 110 - SYSCLK MCLK IOCLK

Interrupt Controller9-10Group 2 interrupt control registerRegister symbol: G2ICRAddress: x'34000108Purpose: This register is used to enable group

Seite 111

Interrupt Controller9-11Group 3 interrupt control registerRegister symbol: G3ICRAddress: x'3400010CPurpose: This register is used to enable group

Seite 113 - CPU core

xii12. Watchdog TimerFig. 12-3-1 Block Diagram ...

Seite 114 - Internal Memory

Interrupt Controller9-12Group 4 interrupt control registerRegister symbol: G4ICRAddress: x'34000110Purpose: This register is used to enable group

Seite 115

Interrupt Controller9-13Group 5 interrupt control registerRegister symbol: G5ICRAddress: x'34000114Purpose: This register is used to enable group

Seite 116 - 8.2 Features

Interrupt Controller9-14Group 6 interrupt control registerRegister symbol: G6ICRAddress: x'34000118Purpose: This register is used to enable group

Seite 117 - 8.4 Block Diagram

Interrupt Controller9-15Group 7 interrupt control registerRegister symbol: G7ICRAddress: x'3400011CPurpose:This register is used to enable group

Seite 118

Interrupt Controller9-16Group 8 interrupt control registerRegister symbol: G8ICRAddress: x'34000120Purpose:This register is used to enable group

Seite 119 - 8.5 Pin Functions

Interrupt Controller9-17Group 9 interrupt control registerRegister symbol: G9ICRAddress: x'34000124Purpose:This register is used to enable group

Seite 120

Interrupt Controller9-18Group 10 interrupt control registerRegister symbol: G10ICRAddress: x'34000128Purpose:This register is used to enable grou

Seite 121 - 8.6 Description of Registers

Interrupt Controller9-19Group 11 interrupt control registerRegister symbol: G11ICRAddress: x'3400012CPurpose:This register is used to enable grou

Seite 122 - Settings other than those

Interrupt Controller9-20Group 12 interrupt control registerRegister symbol: G12ICRAddress: x'34000130Purpose:This register is used to enable grou

Seite 123

Interrupt Controller9-21Group 13 interrupt control registerRegister symbol: G13ICRAddress: x'34000134Purpose:This register is used to enable grou

Seite 124

xiiiFig. 14-5-2 External Trigger Input Conversion Example(for Channels 0 to 2, One Time Each)...

Seite 125

Interrupt Controller9-22Group 14 interrupt control registerRegister symbol: G14ICRAddress: x'34000138Purpose:This register is used to enable grou

Seite 126

Interrupt Controller9-23Group 15 interrupt control registerRegister symbol: G15ICRAddress: x'3400013CPurpose:This register is used to enable grou

Seite 127 - ≥ WEN 11111: 31MCLK

Interrupt Controller9-24Group 16 interrupt control registerRegister symbol: G16ICRAddress: x'34000140Purpose:This register is used to enable grou

Seite 128

Interrupt Controller9-25Group 17 interrupt control registerRegister symbol: G17ICRAddress: x'34000144Purpose:This register is used to enable grou

Seite 129

Interrupt Controller9-26Group 18 interrupt control registerRegister symbol: G18ICRAddress: x'34000148Purpose:This register is used to enable grou

Seite 130

Interrupt Controller9-27Group 19 interrupt control registerRegister symbol: G19ICRAddress: x'3400014CPurpose:This register is used to enable grou

Seite 131

Interrupt Controller9-28Interrupt accepted group registerRegister symbol: IAGRAddress: x'34000200Purpose: This register is used to read the group

Seite 132

Interrupt Controller9-29External interrupt condition specification registerRegister symbol: EXTMDAddress: x'34000280Purpose: This register specif

Seite 133

Interrupt Controller9-309.6 Description of OperationThe following interrupt processing is performed.• Non-maskable interrupts NMIRQ pin interruptWatch

Seite 134

Interrupt Controller9-31[Cautions]1. Maintain external pin interrupt signals for at least 10, 5, or 2.5 SYSCLK cycles when nfr = (MCLK frequency/SYSCL

Seite 135

xiv17. Ordering Mask ROMFig. 17-2-1 ROM Ordering Method 1 ... 17-

Seite 136

Interrupt Controller9-32

Seite 138

8-bit Timers10-210.1 OverviewThis device has 12 reload timers built in.All are down counters that can be used as interval timers and event counters.Ei

Seite 139

8-bit Timers10-310.3 Block DiagramFig. 10-3-1 shows a block diagram for timers 0 to 3.Fig. 10-3-2 shows a block diagram for timers 4 to B.Figures 10-3

Seite 140 - Extension address

8-bit Timers10-4Fig. 10-3-2 8-bit Timer Block Diagram (Timers 4 to B)Output waveform controlTimer n(n = 4, 5, 6, 7, 8, 9, A, B)MatchOutput controlTMnO

Seite 141 - Extension memory mode

8-bit Timers10-5Fig. 10-3-3 8-bit Timer Connection Diagram (Overall)TM0IRQ Timer interrupt 0TMnIN1TMnIN0TMnIN2Block Timer 0 to 3TM0OUTTM0IRQTMnIN5TM

Seite 142 - 8.9 Mode Settings

8-bit Timers10-6Fig. 10-3-4 8-bit Timer Connection Diagram (Timer 0 to 3 block)TM0IN1TM0IN0TM0IN3TM0IN2TM0CITimer 0TM0OUTTM0IRQTM0COTM0CLKTM0IN5TM0IN4

Seite 143 - 6 to 9 6 to 9 6 to 9 6

8-bit Timers10-7TM4IRQ Timer interrupt 4IOCLK/32TM4IN1TM4IN0TM4IN3TM4IN2TM4CITimer 4TM4OUTTM4IRQTM4COTM4CLKTM4IN5TM4IN4TM4IN7TM4IN6TM5IN1TM5IN0TM5IN

Seite 144 - 8.11 Store Buffer

8-bit Timers10-8Fig. 10-3-6 8-bit Timer Connection Diagram (Timer 8 to B block)TM8IRQ Timer interrupt 8IOCLK/32TM8IN1TM8IN0TM8IN3TM8IN2TM8CITimer 8T

Seite 145

8-bit Timers10-9Note: Because timers 0 and 8, 1 and 9, 2 and A, and 3 and B share multipurpose output pins, only one of either"timer output"

Seite 146

xvList of Tables1. General SpecificationsTable 1-4-1 Pin Assignments ...

Seite 147

8-bit Timers10-1010.5 Description of RegistersTable 10-5-1 lists the 8-bit timer registers.Table 10-5-1 List of 8-bit Timer Registers (1/2)Address Nam

Seite 148

8-bit Timers10-11Address Name SymbolNumber of bitsInitial value Access sizex'34001034 Timer 4 compare register TM4CMP 8 x'00 8, 16, 32x&apos

Seite 149 - DK detection start

8-bit Timers10-12Timer n mode register (n = 0, 1, 2, 3)Register symbol: TMnMDAddress: x'34001000 (n=0), x'34001001 (n=1),x'34001002 (n=

Seite 150

8-bit Timers10-13Timer n mode register (n = 4, 5, 6, 7, 8, 9, A, B)Register symbol: TMnMDAddress: x'34001004 (n=4), x'34001005 (n=5), x&apos

Seite 151

8-bit Timers10-14[Note]When setting TMnCNE to "1", do so while TMnLDE is set to "0".When setting TMnLDE to "1", do so wh

Seite 152

8-bit Timers10-15When using 1/8 IOCLK or 1/32 IOCLK, the prescaler control register (TMPSCNT) must be set.When TMnIO pin input was selected, the risin

Seite 153

8-bit Timers10-16Timer n base register (n = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B)Register symbol: TMnBRAddress: x'34001010 (n = 0), x'34001011

Seite 154

8-bit Timers10-17Timer n compare register (n = 4, 5, 6, 7, 8, 9, A, B)Register symbol: TMnCMPAddress: x'34001034 (n = 4), x'34001035 (n = 5)

Seite 155

8-bit Timers10-18Timer output selection registerRegister symbol: TMOSLAddress: x'34001070Purpose: This register selects the 8-bit timer output si

Seite 156

8-bit Timers10-19Prescaler control registerRegister symbol: TMPSCNTAddress: x'34001071Purpose: This register controls the prescaler operation.Bit

Seite 157 - Consumed internally by the BC

xvi10. 8-bit TimersTable 10-4-1 List of 8-bit Timer Functions ... 10-9T

Seite 158

8-bit Timers10-2010.6 Description of OperationThis section describes the operation of the 8-bit timers.10.6.1 Interval Timers and Timer OutputWhen usi

Seite 159

8-bit Timers10-21(6) Enable the timer counting operation.Once TMnCNE is set to "1" in the TMnMD register, the counting operation starts.Once

Seite 160

8-bit Timers10-22Fig 10-6-1 Interval Timer OperationFig 10-6-2 Interval Timer Operation (When Clock Source = IOCLK)TMnBC valueTMnBR setting valueTMnCN

Seite 161

8-bit Timers10-23Fig. 10-6-3 Interval Timer Operation (Using Prescaler)Timer output(TMnOUT)x'00x'01 TMnBR value TMnBR value-1IOCLKTMnBC valu

Seite 162

8-bit Timers10-2410.6.2 Event CountingWhen using an 8-bit timer for event counting, make the settings according to the procedure described below.When

Seite 163

8-bit Timers10-25[Note]Pin input is sampled according to IOCLK. Input a signal with a pulse width of at least 6, 3, or 1.5 SYSCLK cycleswhen (MCLK fr

Seite 164 - “Description of Registers.”

8-bit Timers10-2610.6.3 Cascaded ConnectionThe 8-bit timers can be cascaded together in the combinations shown in Fig. 10-6-5.Fig. 10-6-5 Cascaded Con

Seite 165

8-bit Timers10-27Make the settings described below when cascading 8-bit timers.(1) Set the timer division ratio.Set the timer division ratio in TMnBR.

Seite 166

8-bit Timers10-28(4) Enable counting operationEnable the counting operation by either one of the following two methods:1) Enable the counting operatio

Seite 167 - “0”( )“L”

8-bit Timers10-29 Differences between using a timer as a prescaler and when cascadedThe following explanation of these differences uses the cases wh

Seite 168 - “0”(“L”)

xviiTable 15-13-1Port B Configuration ... 15-60Table 15-14-1

Seite 169

8-bit Timers10-30When "cascaded with timer 0" is set, operation is as shown in Fig. 10-6-7. (IOCLK is selected as the clock sourcefor timer

Seite 170

8-bit Timers10-3110.6.4 PWM OutputMake the settings as described below when using an 8-bit timer to output a PWM waveform. (Timers 4 to B)The timers

Seite 171

8-bit Timers10-32Once the counting operation is enabled, the PWM waveform is output and an underflow interrupt request is generated.(Refer to Fig. 10-

Seite 172

8-bit Timers10-33TMnBC valueTimer output(TMnOUT)TMnBR valuex'00IOCLKInterrupt request signal (TMnIRQ)(TMnBR value +1) x IOCLKTMnBR valuex'00

Seite 173

8-bit Timers10-34

Seite 174

11. 16-bit Timers11

Seite 175 - “0” (“L”)

16-bit Timers11-211.1 OverviewThis microcontroller has four 16-bit timers built in.Three are reload timers (down-counters) that can be used as interva

Seite 176

16-bit Timers11-311.3 Block DiagramFig. 11-3-1 shows the block diagram for timer 10, and Fig. 11-3-2 shows the block diagram for timers 11to 13.Fig. 1

Seite 177

16-bit Timers11-4Timer n(n = 11, 12, 13)TMnBRTMnBCCK0CK1LDECNETMnMDUnderflowReloadLoadTMnIRQTMnOUTUnderflow interruptTimer outputCounting operation en

Seite 178 - Row Column ColumnRow

16-bit Timers11-5Fig. 11-3-3 16-bit Timer Connection DiagramTimer 10 overflow interruptTM10IOAI/O port blockTM13IOTM13IN1TM13IN0TM13IN4TM13IN2Ti

Seite 180

16-bit Timers11-6Fig. 11-3-4 shows the block diagram for the timer 10 compare/capture registers.Fig. 11-3-4 Timer 10 Compare/Capture Register Block Di

Seite 181

16-bit Timers11-711.4 FunctionsTable 11-4-1 lists the functions of each 16-bit timer.Table 11-4-1 List of 16-bit Timer FunctionsDown-countingTimerInte

Seite 182

16-bit Timers11-811.5 Description of RegistersTable 11-5-1 lists the 16-bit timer registers.Table 11-5-1 List of 16-bit Timer RegistersAddress Name Sy

Seite 183 - Refresh count value

16-bit Timers11-9Timer 10 mode registerRegister symbol: TM10MDAddress: x'34001080Purpose: This register controls the operation of timer 10.Bit No

Seite 184 - 8.15 Bus Arbitration

16-bit Timers11-10Bit No. Bit name Description7 TM10TGE External trigger start enable flagEnables/disables timer start by an external trigger.0: Disab

Seite 185

16-bit Timers11-11Timer n mode register (n = 11, 12, 13)Register symbol: TMnMDAddress: x'34001082 (n=11), x'34001084 (n=12), x'34001086

Seite 186

16-bit Timers11-12Timer n base register (n = 11, 12, 13)Register symbol: TMnBRAddress: x'34001092 (n=11), x'34001094 (n=12), x'34001096

Seite 187 - 8.16 Cautions

16-bit Timers11-13Timer 10 compare/capture A mode registerRegister symbol: TM10MDAAddress: x'340010B0Purpose: This register controls the operatio

Seite 188

16-bit Timers11-14Timer 10 compare/capture B mode registerRegister symbol: TM10MDBAddress: x'340010B1Purpose: This register controls the operatio

Seite 189

16-bit Timers11-15Timer 10 compare/capture A registerRegister symbol: TM10CAAddress: x'340010C0Purpose: This is the timer 10 compare/capture A re

Seite 190 - 9.3 System Diagram

101. General Specifications

Seite 191 - 9.4 Block Diagram

16-bit Timers11-16Timer 10 compare/capture B registerRegister symbol: TM10CBAddress: x'340010D0Purpose: This is the timer 10 compare/capture B re

Seite 192 - Interrupt control

16-bit Timers11-17Prescaler control registerRegister symbol: TMPSCNTAddress: x'34001071Purpose: This register controls prescaler operations.Bit N

Seite 193

16-bit Timers11-1811.6 Description of Operation of Timer 10This section describes the operation of timer 10.Timer 10 includes an up-counter and two co

Seite 194 - 9.5 Description of Registers

16-bit Timers11-19Fig. 11-6-1 Compare Register Operation (When Clock Source = IOCLK)11.6.2 Capture Register SettingsIn order to use either the timer 1

Seite 195

16-bit Timers11-20If dual-edge was selected, the capture operation is performed when either a rising or falling edge is input. It is notpossible to d

Seite 196

16-bit Timers11-2111.6.3 Pin Output SettingsTimer 10 can be used to output a variety of waveforms to the TM10IOA and TM10IOB pins.(1) Setting the outp

Seite 197

16-bit Timers11-22Examples of TM10IOA pin output waveforms are shown below. Output for the TM10IOB pin is similar.Fig. 11-6-3 shows the output wavefo

Seite 198 - Bit No.1514131211109876543210

16-bit Timers11-23Fig. 11-6-5 shows the output waveform for the TM10IOA pin when "Set when TM10BC matches TM10CA" is set.Fig. 11-6-5 Pin Out

Seite 199

16-bit Timers11-2411.6.4 Starting by an External TriggerTimer 10 can be started up by input on the TM10IOB pin. Fig. 11-6-8 illustrates the startup o

Seite 200

16-bit Timers11-25 Procedure for ending operation(1) Disable timer startup by an external trigger.Set TM10TGE in the TM10MD register to "0"

Seite 201

1-2General Specifications1.1 OverviewThe MN1030 Series is a 32-bit microcontroller that maintains the software assets of Matsushita Electronics'

Seite 202

16-bit Timers11-2611.6.5 One-shot OperationIt is possible to stop timer 10 when TM10BC and TM10CA match. Figs. 11-6-9 and 11-6-10 illustrate the oper

Seite 203

16-bit Timers11-27 Procedure for ending operation• When the timer was started by a program (TM10TGE = 0)(1) Stop the counting operation.Set TM10CNE i

Seite 204

16-bit Timers11-2811.6.6 Interval TimerWhen using timer 10 as an interval timer, make the settings according to the procedure described below.This int

Seite 205

16-bit Timers11-29If the value in the TM10CA register is changed while the counting operation is in progress, the value in the bufferis loaded into th

Seite 206

16-bit Timers11-30x'0000 x'0001TM10CA valueTM10CA value-1IOCLKTM10BC valuex'0000 x'0001(TM10CA value + 1) x IOCLKSet value 1Set va

Seite 207

16-bit Timers11-3111.6.7 Event CountingWhen using timer 10 as an event counter, make the settings according to the procedure described below.This even

Seite 208

16-bit Timers11-32Once the counting operation is enabled, TM10BC is incremented each time that the specified edge is input to theTM10IOB pin. Once (v

Seite 209

16-bit Timers11-3311.7 Description of Operation of Timers 11, 12, and 13This section describes the operation of timers 11, 12, and 13.Timers 11, 12, a

Seite 210

16-bit Timers11-34Once the counting operation is enabled, an underflow interrupt request is generated on a regular cycle. In addition,with each inter

Seite 211

16-bit Timers11-35Fig. 11-7-2 Interval Timer Operation (When Clock Source = IOCLK)Fig. 11-7-3 Interval Timer Operation (When Using the Prescaler)x&apo

Seite 212

1-3General SpecificationsHigh-speed/high-performance bus interface Can select either separate address/data buses or multiplex address/data bus• Addr

Seite 213

16-bit Timers11-3611.7.2 Event CountingWhen using timer 11, 12, or 13 as an event counter, make the settings according to the procedure described belo

Seite 214

16-bit Timers11-37[Note]The pin input is sampled according to IOCLK. Input a signal with a pulse width of at least 6, 3, or 1.5 SYSCLKcycles when (MC

Seite 215

16-bit Timers11-38

Seite 216

12. Watchdog Timer1112

Seite 217

Watchdog Timer12-212.1 OverviewThis microcontroller has a 25-bit binary counter built in that can be used as a 16- to 25-bit watchdog timer.A watchdog

Seite 218 - 9.6 Description of Operation

Watchdog Timer12-3OSCIRSTwdovfSQRLevel output/Pulse output selectionOscillation stabilization wait release, interrupt requestReset1/281/2101/2121/2141

Seite 219

Watchdog Timer12-412.4 Description of RegistersTable 12-4-1 lists the watchdog timer registers.Table 12-4-1 List of Watchdog Timer RegistersAddress

Seite 220 - Interrupt Controller

Watchdog Timer12-5Watchdog timer control registerRegister symbol: WDCTRAddress: x'34004008Purpose: This register sets the watchdog timer operatio

Seite 221

Watchdog Timer12-63 — When this bit is read, a "0" is returned.4 WDOVF The value of the watchdog timer overflow output.5 WDOVT Watchdog time

Seite 222 - 10.2 Features

Watchdog Timer12-712.5 Description of OperationOscillation stabilization wait operationThe watchdog timer operates as an oscillation stabilization wai

Seite 223 - 10.3 Block Diagram

If you have any inquiries or questions about this book or our semiconductors, please contact one of our salesoffices listed at the back of this book.(

Seite 224 - 8-bit Timers

1-4General SpecificationsClock and system controllerA/D10-bit4 inputsSIFUART x 1multipurpose x 1synchronous system x 2ROM128 KB(flash memory 256 KB)D

Seite 225

Watchdog Timer12-8Fig. 12-5-2 Operation Diagram 2: When Recovering from STOP ModeInterruptStop mode release request (external pin interrupt)Overflow

Seite 226

Watchdog Timer12-9Watchdog operationIf the WDCNE flag is set to "1" and the watchdog operation is enabled, a non-maskable interrupt is gener

Seite 227

Watchdog Timer12-10

Seite 228

13. Serial Interface13

Seite 229 - 10.4 Functions

Serial Interface13-213.1 OverviewThis microcontroller has three types of internal serial interfaces. One is a general-purpose serial interface for wh

Seite 230 - 10.5 Description of Registers

Serial Interface13-313.2 General-purpose serial interface13.2.1 FeaturesSerial interface 0 is a general-purpose serial interface for which clock sync

Seite 231

Serial Interface13-4<UART mode>• Parity None, 0 fixed, 1 fixed, even, odd• Character length 7 bits, 8 bits• Transmission and reception bit seque

Seite 232

Serial Interface13-513.2.2 Block Diagram of General-Purpose Serial InterfaceFig 13-2-1 shows the block diagram for the general-purpose serial interfac

Seite 233

Serial Interface13-613.2.3 Description of Registers for the General-Purpose Serial InterfaceThe general-purpose serial interface includes the register

Seite 234

Serial Interface13-76 SC0PB2 Parity bit selection (MSB)000: None001, 010, 011: Setting prohibited100: 0 fixed101: 1 fixed110: Even (even number o

Seite 235

1-5General SpecificationsFig. 1-4-1 Pin Assignments Diagram* "VDD2" in the case of the MN103001G, "VPP" in the case of the MN1

Seite 236

Serial Interface13-8Serial 0 interrupt mode registerRegister symbol: SC0ICRAddress: x'34000804Purpose: This register selects the sources for tran

Seite 237 - Reset 0 0 0 0 0 0 0 0

Serial Interface13-9Serial 0 reception bufferRegister symbol: SC0RXBAddress: x'34000809Purpose: This register reads in the reception data of seri

Seite 238

Serial Interface13-1013.2.4 Description of Operation<Clock synchronous mode> Clock synchronous mode connectionTwo different connection methods

Seite 239

Serial Interface13-11 Clock synchronous mode timing<Transmission>• One-byte transfer with 8-bit data length and parity onFig. 13-2-3 Timing C

Seite 240 - 10.6 Description of Operation

Serial Interface13-12<Reception>• One-byte transfer with 8-bit data length and parity onFig. 13-2-5 Timing Chart (3)• Two-byte transfer with 8

Seite 241

Serial Interface13-13 When a reception error is generated• Transfer in clock synchronous mode with 8-bit data length, parity on.Fig. 13-2-7 Timing

Seite 242

Serial Interface13-14SBOSBISBTSBOSBISBTSBOSBISBOSBISBT SBTReceptionTransmissionTransmission/receptionTransmission/receptionExternalclockExternalclockB

Seite 243

Serial Interface13-15Table 13-2-2 Bit rates (1) (When IOCLK = 15 MHz)Bit rate (bit/s)When cascaded When using prescalersTimer division ratio Bit rat

Seite 244

Serial Interface13-16 UART mode timing<Transmission>• Transfer with 8-bit data length, parity on, and 1 stop bitFig. 13-2-9 Timing Chart (6)•

Seite 245 - TMnBR value TMnBR value-1

Serial Interface13-17<Reception>• Transfer with 8-bit data length, parity on, and 1 stop bitFig. 13-2-11 Timing Chart (8)• Two-byte transfer w

Seite 246 - 10.6.3 Cascaded Connection

1-6General SpecificationsTable 1-4-1 Pin Assignments• Pins for which two or more names are shown are multipurpose pins.* "VDD2" in the ca

Seite 247

Serial Interface13-18 When a reception error is generated• Transfer in UART mode with 8-bit data length, parity on, and 1 stop bitFig. 13-2-13 Timi

Seite 248

Serial Interface13-19<I2C mode> I2C mode connectionIt is possible to connect a device that is capable of slave transmission and slave reception

Seite 249

Serial Interface13-20 I2C mode transmission/receptionThe transmission/reception procedure in I2C mode is described below.(Refer to Fig. 13-2-15.)• M

Seite 250 - TM1BR value - 1

Serial Interface13-21• Perform data transmission/reception (B) according to the procedure described below:(1) Ack setting"Ack" is represent

Seite 251

Serial Interface13-22If the above procedures do not satisfy the AC timing of the device that is connected, send the stop sequenceaccording to the proc

Seite 252

Serial Interface13-23• Resend the start sequence (D) according to the procedure described below. (Refer to Fig. 13-2-16.)(1) SBO pin settingSet the

Seite 253

Serial Interface13-2413.3 Clock Synchronous Serial Interface13.3.1 FeaturesSerial interfaces 1 and 2 are clock synchronous serial interfaces. Their f

Seite 254

Serial Interface13-2513.3.2 Block Diagram of Clock Synchronous Serial InterfaceFig 13-3-1 shows the block diagram for the clock synchronous serial int

Seite 255

Serial Interface13-2613.3.3 Description of Registers for the Clock Synchronous Serial InterfaceThe clock synchronous serial interfaces include the reg

Seite 256 - 11.2 Features

Serial Interface13-27Serial n control register (n = 1, 2)Register symbol: SCnCTRAddress: x'34000810 (n =1), x'34000820 (n =2)Purpose: This r

Seite 257 - 11.3 Block Diagram

1-7General Specifications1.4.2 Pin FunctionsTable 1-4-2 shows the function of each pin of this microcontroller.Table 1-4-2 Pin Function Table (1/2)Ca

Seite 258 - 16-bit Timers

Serial Interface13-28Bit No. Bit name Description8 SCnTOE SBTn pin output control0: When the internal clock is selected, the SBTn pin is an output onl

Seite 259 - Timer 10

Serial Interface13-29Serial n interrupt mode register (n = 1, 2)Register symbol: SCnICRAddress: x'34000814 (n = 1), x'34000824 (n = 2)Purpos

Seite 260 - (TM10CB)

Serial Interface13-30Serial n transmission buffer (n = 1, 2)Register symbol SCnTXBAddress: x'34000818 (n=1), x'34000828 (n=2)Purpose: This r

Seite 261 - 11.4 Functions

Serial Interface13-31Serial n status register (n=1,2)Register symbol: SCnSTRAddress: x'3400081C (n=1), x'3400082C (n=2)Purpose: This registe

Seite 262 - 11.5 Description of Registers

Serial Interface13-32SBOSBISBTTransmissionSBOSBISBTReceptionSBOSBISBTTransmission/receptionSBOSBISBTTransmission/receptionUnidirectional transfer Bi-d

Seite 263

Serial Interface13-33 Clock synchronous serial interface timing<Transmission>• One-byte transfer with 8-bit data length and parity offFig. 13-3

Seite 264

Serial Interface13-34<Reception>• One-byte transfer with 7-bit data length and parity onFig. 13-3-5 Timing Chart (15)• Two-byte transfer with

Seite 265

Serial Interface13-35 When a reception error is generated• Transfer with 7-bit data length, parity onFig. 13-3-7 Timing Chart (17)When "recept

Seite 266

Serial Interface13-3613.4 Universal Asynchronous Receiver-Transceiver Serial Interface13.4.1 FeaturesSerial interface 3 is a UART serial interface. I

Seite 267

Serial Interface13-3713.4.2 Block Diagram of UART Serial InterfaceFig 13-4-1 shows the block diagram for the UART serial interface sections.Fig. 13-4-

Seite 268

1-8General SpecificationsTable 1-4-2 Pin Function Table (2/2)Category Pin nameInput/ NumberPin FunctionOutput of pinsReset RST I 1 Reset inputInterru

Seite 269

Serial Interface13-3813.4.3 Description of Registers for the UART Serial InterfaceThe UART serial interface includes the registers listed in Table 13-

Seite 270

Serial Interface13-39Serial 3 control registerRegister symbol: SC3CTRAddress: x'34000830Purpose: This register sets the serial interface 3 operat

Seite 271

Serial Interface13-40Bit No. Bit name Description8 SC3TWE Transmission interrupt enable0: Interrupt disable1: Interrupt enable9 SC3OD Transmission and

Seite 272

Serial Interface13-41Serial 3 interrupt mode registerRegister symbol: SC3ICRAddress: x'34000834Purpose: This register selects the sources for tra

Seite 273 - TM10CA value-2

Serial Interface13-42Serial 3 transmission bufferRegister symbol: SC3TXBAddress: x'34000838Purpose: This register writes the transmission data of

Seite 274 - (TM10IOA)

Serial Interface13-43Serial 3 status registerRegister symbol: SC3STRAddress: x'3400083CPurpose: This register indicates the status of serial inte

Seite 275

Serial Interface13-44Serial 3 timer registerRegister symbol: SC3TIMAddress: x'3400083DPurpose: This register sets the timer that is used for inte

Seite 276 - TM10BC overflow

Serial Interface13-4513.4.4 Description of Operation UART Serial Interface connectionTwo different connection methods are possible, one for unidirect

Seite 277 - Don' t Care

Serial Interface13-46Division ratio 1 = INT (IOCLK frequency / bit rate/127) + 1Division ratio 2 = INT (IOCLK frequency / bit rate/division ratio 1 +

Seite 278

Serial Interface13-47Table 13-4-3 Bit Rates (2) (When IOCLK = 12 MHz)Bit rate (bit/s) Division ratio 1 Division ratio 2 Bit rate error230 400 1 52 0

Seite 279

2. CPU2

Seite 280

Serial Interface13-48[Notes on Usage]1 Set SC3CTR before setting the other registers, and do not change the setting while transmitting or receiving, o

Seite 281 - TM10CNE flag

Serial Interface13-49 UART Serial Interface timing<Transmission>• Transfer with 7-bit data length, parity off, and 2 stop bitFig. 13-4-3 Timi

Seite 282

Serial Interface13-50<Reception>• Transfer with 7-bit data length, parity on, and 2 stop bitFig. 13-4-5 Timing Chart (20)• Two-byte transfer w

Seite 283 - Change in the value

Serial Interface13-51 When a reception error is generated• Transfer with 7-bit data length, parity on, and 2 stop bitFig. 13-4-7 Timing Chart (22)W

Seite 284

Serial Interface13-52

Seite 285

14. A/D Converter14

Seite 286

A/D Converter14-2AN0AN1AN2AN3S/HAD3BUFAD2BUFAD1BUFAD0BUFVREFHADTRG10-bit sequentialcomparison A/D converterSelector14.1 OverviewThe A/D converter is a

Seite 287

A/D Converter14-314.2 Features• S/H Built in• Conversion accuracy10 bits ± 5 LSB (Linearity error)The value of VREFH divided into 1024 steps is stored

Seite 288

A/D Converter14-414.3 Block DiagramFig. 14-3-1 The Block Diagram of A/D ConverterVREFH1248163264128256512ADCTRADnBUFINCIOCLK1AN0AN1AN2AN3ADTRGSelect

Seite 289

A/D Converter14-514.4 Description of RegistersTable 14-4-1 lists the registers for this A/D converter.Table 14-4-1 A/D Register ListAddress Name Sym

Seite 290

2-2CPU2.1 Basic Specifications of CPU• Structure Load/store architectureData/Address/SP Registers x 9(Data registers: 32-bit x 4, Address registers: 3

Seite 291 - TMnBR value -1

A/D Converter14-67 ADEN Conversion start/execution flag(conversion can be started by writing a "1" to this flag)0: Conversion stopped1: Conv

Seite 292

A/D Converter14-714.5 Description of Operation Operating mode selection(1) Any one channel/one-time conversionIf "any one channel/one-time conve

Seite 293

A/D Converter14-8(2) Multiple channels/one-time conversion for each channelIf "multiple channels/one-time conversion for each channel" is se

Seite 294 - 12.2 Features

A/D Converter14-9(3) Any one channel/continuous conversionIf "any one channel/continuous conversion" is selected as the operating mode (ADMD

Seite 295 - 12.3 Block Diagram

A/D Converter14-10(4) Multiple channels/continuous conversionIf "multiple channels/continuous conversion" is selected as the operating mode

Seite 296 - 12.4 Description of Registers

A/D Converter14-11S/H bp9 bp8 bp7 bp6 bp5 bp4 bp3 bp2 bp1 bp0S/H bp9 bp8 bp7 bp6 bp5 bp4 bp3 bp2 bp1 bp0 S/H16 (= 12 +4) cyclesADEN flagConversion ref

Seite 297

A/D Converter14-12[Notes]If a falling edge is input to the ADTRG pin before the conversion start trigger selection (ADST1 to 0) isswitched to "ex

Seite 298

15. I/O Ports15

Seite 299 - (n + WDCK x 2)

I/O Ports15-215.1 OverviewThe MN103001G and MN1030F01K have a total of 13 internal I/O ports: 0 to 9, A, B and C. These portscan all be accessed by

Seite 300 - Watchdog Timer

I/O Ports15-3Port 7 (P7)This port is also used for address bus signal A23; DRAM RAS signals RAS2 and RAS1; and chipselect signals CS3 to CS0.Port 8 (P

Seite 301 - SYSCLK 255-cycle width

2-3CPU2.2 Block DiagramThe block diagram for this microcontroller, focusing on the CPU, is shown below.Fig. 2-2-1 CPU Core Block DiagramInstruction

Seite 302

I/O Ports15-4The I/O ports are provided with the registers listed in Table 15-1-1.Table 15-1-1 List of Registers (1/2)Address Name SymbolNumber of b

Seite 303

I/O Ports15-5Table 15-1-1 List of Registers (2/2)Address Name SymbolNumber of bitsInitial value Access sizex'36008081 Port 1 pin register P1IN 8

Seite 304 - 13.1 Overview

I/O Ports15-615.2 Port 015.2.1 Block DiagramFig. 15-2-1 and Fig 15-2-2 show block diagrams for port 0.Fig. 15-2-1 Port 0 Block Diagram (P02)Internal

Seite 305

I/O Ports15-7Fig. 15-2-2 Port 0 Block Diagram (P01, P00)15.2.2 Register DescriptionsPort 0 is a general-purpose output port that is also used for addr

Seite 306

I/O Ports15-8Port 0 output mode registerRegister symbol: P0MDAddress: x'36008020Purpose: This register selects the content output on the port 0

Seite 307 - I/O Port Block

I/O Ports15-915.2.3 Pin ConfigurationsTable 15-2-1 shows the pin configurations for port 0.Table 15-2-1 Port 0 ConfigurationPort Pin P0n P0nMD = &quo

Seite 308

I/O Ports15-1015.3 Port 115.3.1 Block DiagramFigs. 15-3-1 and 15-3-2 show block diagrams for port 1.Fig. 15-3-1 Port 1 Block Diagram (P17 to P12)Int

Seite 309

I/O Ports15-11Fig. 15-3-2 Port 1 Block Diagram (P11, and P10)Internal data busMPXP1OUTP1nOD1(n=1),D0(n=0)P1MP1MDP1DIRP1nDP... Represents one bit of e

Seite 310

I/O Ports15-1215.3.2 Register DescriptionsPort 1 is a general-purpose input/output port that is also used for data bus signals D[7:0], address strobe

Seite 311

I/O Ports15-13Port 1 input/output control registerRegister symbol: P1DIRAddress: x'36008061Purpose: This register sets the port 1 pins for input

Seite 312

2-4CPU31D0D1D2D3031A0A1A2A3031SP031PC031MDR015PSW031LIR031LAR0Data RegisterAddress RegisterStack PointerProgram CounterMultiply/Divide RegisterProcess

Seite 313 - Interrupt request

I/O Ports15-1415.3.3 Pin ConfigurationsTable 15-3-1 shows the pin configurations for port 1.Table 15-3-1 Port 1 ConfigurationPort Pin P1n P1M = &quo

Seite 314

I/O Ports15-1515.4 Port 215.4.1 Block DiagramFigs. 15-4-1 shows a block diagrams for port 2.Fig. 15-4-1 Port 2 Block Diagram (P27 to P20)Internal dat

Seite 315

I/O Ports15-1615.4.2 Register DescriptionsPort 2 is a general-purpose input/output port that is also used for data bus signals D[15:8].Each register

Seite 316 - Undirectional transfer

I/O Ports15-17Port 2 input/output control registerRegister symbol: P2DIRAddress: x'36008064Purpose: This register sets the port 2 pins for input

Seite 317

I/O Ports15-1815.4.3 Pin ConfigurationsTable 15-4-1 shows the pin configurations for port 2.Table 15-4-1 Port 2 ConfigurationPort Pin P2n P2M = &quo

Seite 318

I/O Ports15-1915.5 Port 315.5.1 Block DiagramFig. 15-5-1 shows a block diagram for port 3.Fig. 15-5-1 Port 3 Block Diagram (P30)Internal data busMPXP

Seite 319

I/O Ports15-2015.5.2 Register DescriptionsPort 3 is a general-purpose input/output port that is also used for the bus grant signal BG.Each register f

Seite 320

I/O Ports15-21Port 3 output mode registerRegister symbol: P3MDAddress: x'36008025Purpose: This register selects the content output on the port 3

Seite 321

I/O Ports15-2215.6 Port 415.6.1 Block DiagramFigs. 15-6-1 to 15-6-4 show block diagrams for port 4.Fig. 15-6-1 Port 4 Block Diagram (P45 and P43)P4n

Seite 322

I/O Ports15-23Fig. 15-6-2 Port 4 Block Diagram (P44)Internal data busP44P4OUTP44IP4INP44MP4MDP4DIRP44DP44OP... Represents one bit of each register.P4

Seite 323

2-5CPU0Z1500S1 S0 IE IM2 IM10000IM0VCNFig. 2-3-2 Processor Status Word Data Register (32-bit x 4)This register can be used generally for all operat

Seite 324

I/O Ports15-24Fig. 15-6-3 Port 4 Block Diagram (P42, P40)Fig. 15-6-4 Port 4 Block Diagram (P41)Internal data busP4n(n=2,0)P4OUTP4DIRP4nDP4nOP... Re

Seite 325 - Start sequence resend

I/O Ports15-2515.6.2 Register DescriptionsPort 4 is a general-purpose input/output port that is also used for serial interface input/output signals SB

Seite 326

I/O Ports15-26Port 4 input/output control registerRegister symbol: P4DIRAddress: x'36008068Purpose: This register sets the port 4 pins for input

Seite 327 - (n = 1, 2)

I/O Ports15-27Port 4 dedicated output control registerRegister symbol: P4SSAddress: x'36008048Purpose: Along with P4MD, this register selects the

Seite 328

I/O Ports15-2815.6.3 Pin ConfigurationsTable 15-6-1 shows the pin configurations for port 4.Table 15-6-1 Port 4 ConfigurationPort Pin P4n P4nM = &qu

Seite 329

I/O Ports15-2915.7 Port 515.7.1 Block DiagramFigs. 15-7-1 to 15-7-5 show block diagrams for port 5.Fig. 15-7-1 Port 5 Block Diagram (P55)Internal dat

Seite 330

I/O Ports15-30Fig. 15-7-2 Port 5 Block Diagram (P54)Internal data busP5OUTP54OTM12IOMPXP54MPXP... Represents one bit of each register.P54IP5INTM12IO

Seite 331

I/O Ports15-31Fig. 15-7-3 Port 5 Block Diagram (P53)Internal data busP5OUTP53OTM11IOMPXP53MPXP... Represents one bit of each register.P53IP5INTM11IO/

Seite 332

I/O Ports15-32Fig. 15-7-4 Port 5 Block Diagram (P52, P50)P5n(n=2,0)Internal data busP5OUTP5DIRP5nDP5nOP... Represents one bit of each register.MPXMP

Seite 333

I/O Ports15-33Fig. 15-7-5 Port 5 Block Diagram (P51)Internal data busTM1IOP5OUTP51OMPXTM1IO/SBI2P51P... Represents one bit of each register.P51IP5INP

Seite 335

2-6CPUZ: Zero FlagThis flag is set when an operation result is all zeroes, and is cleared by any other result. This flag isalso cleared by a reset.N:

Seite 336

I/O Ports15-3415.7.2 Register DescriptionsPort 5 is a general-purpose input/output port that is also used for the serial interface input/output signa

Seite 337

I/O Ports15-35Port 5 input/output control registerRegister symbol: P5DIRAddress: x'36008069Purpose: This register sets the port 5 pins for input

Seite 338

I/O Ports15-36Port 5 dedicated output control registerRegister symbol: P5SSAddress: x'36008049Purpose: Along with P5MD, this register selects th

Seite 339 - Serial interface 3

I/O Ports15-3715.7.3 Pin ConfigurationsTable 15-7-1 shows the pin configurations for port 5.Table 15-7-1 Port 5 ConfigurationPort Pin P5n P5nM = &quo

Seite 340

I/O Ports15-3815.8 Port 615.8.1 Block DiagramFigs. 15-8-1 shows the block diagrams for port 6.Fig. 15-8-1 Port 6 Block Diagram (P63 to P60)Internal

Seite 341

I/O Ports15-3915.8.2 Register DescriptionsPort 6 is a general-purpose input/output port that is also used for external interrupt inputs IRQ3 to IRQ0;

Seite 342

I/O Ports15-40Port 6 output mode registerRegister symbol: P6MDAddress: x'3600802CPurpose: This register selects the content output on the port 6

Seite 343

I/O Ports15-4115.9 Port 715.9.1 Block DiagramFig. 15-9-1 and Fig. 15-9-2 show block diagrams for port 7.Fig. 15-9-1 Port 7 Block Diagram (P73)Fig. 15

Seite 344

I/O Ports15-4215.9.2 Register DescriptionsPort 7 is a general-purpose output port that is also used for address bus signal A23, DRAM RAS signals RAS2

Seite 345 - Access RRRRRRRR

I/O Ports15-43Port 7 dedicated output control registerRegister symbol: P7SSAddress: x'3600804DPurpose: This register selects the content output o

Seite 346

2-7CPU2.3.2 Control RegistersThis microcontroller uses the memory-mapped-I/O method and allocates the peripheral circuit registers to theinternal I/O

Seite 347

I/O Ports15-4415.9.3 Pin ConfigurationsTable 15-9-1 shows the pin configurations for port 7.Table 15-9-1 Port 7 ConfigurationPort Pin P7n P7nM = &qu

Seite 348

I/O Ports15-4515.10 Port 815.10.1 Block DiagramFigs. 15-10-1 shows the block diagrams for port 8.Fig. 15-10-1 Port 8 Block Diagram (P83 to P80)Intern

Seite 349 - Serial Interface

I/O Ports15-4615.10.2 Register DescriptionsPort 8 is a general-purpose input port that is also used for analog signal inputs AN3 to AN0 and externali

Seite 350

I/O Ports15-4715.10.3 Pin ConfigurationsTable 15-10-1 shows the pin configurations for port 8.Table 15-10-1 Port 8 ConfigurationPortPin No.P8n P8nA =

Seite 351

I/O Ports15-4815.11 Port 915.11.1 Block DiagramFig. 15-11-1 to Fig. 15-11-4 show block diagrams for port 9.Fig. 15-11-1 Port 9 Block Diagram (P97)Fi

Seite 352

I/O Ports15-49Fig. 15-11-3 Port 9 Block Diagram (P95, P91, P90)Fig. 15-11-4 Port 9 Block Diagram (P94, P93, P92)Internal data busP... Represents one

Seite 353

I/O Ports15-5015.11.2 Register DescriptionsPort 9 is also used for extension mode setting signals EXMOD1 and EXMOD0; memory write signals WE1and WE0;

Seite 354

I/O Ports15-51Port 9 output mode registerRegister symbol: P9MDAddress: x'36008031Purpose: This register selects the content output on the port 9

Seite 355

I/O Ports15-5215.11.3 Pin ConfigurationsTable 15-11-1 shows the pin configurations for port 9.Table 15-11-1 Port 9 ConfigurationPort Pin P9n P9nM =

Seite 356 - Selector

I/O Ports15-5315.12 Port A15.12.1 Block DiagramFig. 15-12-1 shows a block diagram for port A.Fig. 15-12-1 Port A Block Diagram (PA7 to PA0)Internal d

Seite 357 - 14.2 Features

2-8CPUInterrupt Vector Register (IVARn)The interrupt vector register (IVAR0 to IVAR6) contains the lower 16 bits of the start address of the interrupt

Seite 358 - 14.3 Block Diagram

I/O Ports15-5415.12.2 Register DescriptionsPort A is a general-purpose input/output port that is also used for address bus signals A[7:0], and addres

Seite 359 - 14.4 Description of Registers

I/O Ports15-55Port A input/output control registerRegister symbol: PADIRAddress: x'36008074Purpose: This register sets the port A pins for input

Seite 360

I/O Ports15-5615.12.3 Pin ConfigurationsTable 15-12-1 shows the pin configurations for port A.Table 15-12-1 Port A ConfigurationPort Pin PAn PAM = &

Seite 361 - ■ Operating mode selection

I/O Ports15-5715.13 Port B15.13.1 Block DiagramFig. 15-13-1 shows a block diagram for port B.Fig. 15-13-1 Port B Block Diagram (PB7 to PB0)Internal d

Seite 362

I/O Ports15-5815.13.2 Register DescriptionsPort B is a general-purpose input/output port that is also used for address bus signals A[15:8], and addre

Seite 363

I/O Ports15-59Port B input/output control registerRegister symbol: PBDIRAddress: x'36008075Purpose: This register sets the port B pins for input

Seite 364

I/O Ports15-6015.13.3 Pin ConfigurationsTable 15-13-1 shows the pin configurations for port B.Table 15-13-1 Port B ConfigurationPort Pin PBn PBM = &

Seite 365 - Sampling cycle

I/O Ports15-6115.14 Port C15.14.1 Block DiagramFig. 15-14-1 shows a block diagram for port C.Fig. 15-14-1 Port C Block Diagram (PC3 to PC0)Internal d

Seite 366

I/O Ports15-6215.14.2 Register DescriptionsPort C is a general-purpose output port that is also used for address bus signals A[19:16].Each register f

Seite 367

I/O Ports15-6315.14.3 Pin ConfigurationsTable 15-14-1 shows the pin configurations for port C.Table 15-14-1 Port C ConfigurationPort Pin No. PCn PCnM

Seite 368 - 15.1 Overview

2-9CPUCPU Mode Register (CPUM)The CPU mode register (CPUM) sets the clock operating mode for the CPU and peripheral blocks. This register isallocated

Seite 369

I/O Ports15-6415.15 Treatment of Unused PinsUnused pins should be treated as shown in Table 15-15-1 below.Table 15-15-1 Treatment of Unused PinsPin

Seite 370

16. Internal Flash Memory16

Seite 371

Internal Flash Memory16-216.1 OverviewThe MN1030F01K has 256 KB of internal flash memory for use as instruction memory in place of instructionROM. Us

Seite 372 - 15.2 Port 0

Internal Flash Memory16-316.4 Flash Memory Overwrite Mode and SettingsThere are two flash memory overwrite modes: flash memory mode and on-board writ

Seite 373 - Access R R R R R R/W R/W R/W

Internal Flash Memory16-416.5 Flash Memory Mode16.5.1 Description of External PinsFig. 16-5-1 and Table 16-5-1 show the pin assignments for the MN1030

Seite 374

Internal Flash Memory16-5Table 16-5-1 MN1030F01K Pin AssignmentsI: Input; O: Output; I/O: Input/output; H: High level input; L: Low level inputPinN

Seite 375

Internal Flash Memory16-6Table 16-5-2 lists the functions of the external pins in flash memory mode.Table 16-5-2 Pin FunctionsWhen first applying po

Seite 376 - 15.3 Port 1

Internal Flash Memory16-716.5.2 Erasure BlocksThe flash memory is partitioned into 32 8 KB erasure blocks. Fig. 16-5-2 shows the configuration of th

Seite 377 - I/O Ports

Internal Flash Memory16-816.6 On-board Write ModeIn on-board write mode, flash memory is overwritten by manipulating the control registers through sof

Seite 378

1717. Ordering Mask ROM

Seite 379

2-10CPUAm/An031PC031031031(32-bit address)031(32-bit address)031(32-bit address)031(32-bit address)031Register directImmediate value Dm / DnAm / Anim

Seite 380

Ordering Mask ROM17-217.1 OverviewThis chapter describes the procedure for ordering mask ROM. This chapter also describes the difference inprogrammin

Seite 381 - 15.4 Port 2

Ordering Mask ROM17-3Fig. 17-2-2 ROM Ordering Method 2x'40000000x'40000000x'40002000User programUser programLoader program8 KBx'

Seite 382

Ordering Mask ROM17-4

Seite 383

Appendix

Seite 384

AppendixAppendix-2Appendix A. Register Map List0IVAR0MEMCTR0BMEMCTR1BMEMCTR2BMEMCTR3Bx'3200004Xx'3200400Xx'3400010Xx'3400011Xx&ap

Seite 385 - 15.5 Port 3

AppendixAppendix-3TMOSLTM10MDATM0MDTM0BRTM0BCSC1CTRSC0CTRx'3400080Xx'3400082Xx'3400083Xx'3400081XSC3CTRSC2CTRSC0ICRSC1ICRSC2ICRSC3

Seite 386

AppendixAppendix-4FEDCBA9876543210x'3600800XAddressI/O portP1OUTP9OUTP0MDP1MDP8ADP0SSP1DIRP8INP9INP9DIRx'3600801Xx'3600802Xx'36008

Seite 387

AppendixAppendix-5Appendix B. Instruction SetList of Instructions ( Code Length, Execution Cycle*)Execution cycle is defined under the following cond

Seite 388 - 15.6 Port 4

AppendixAppendix-6Instruction Source Destination Format RemarksMOVBU MOVBU (Am) Dn D0 2 1MOVBU (d8,Am) Dn D1 3 1MOVBU (d16,Am) Dn D2 4 1MOVBU (d32,Am)

Seite 389

AppendixAppendix-7Instruction Source Destination Format RemarksMOVM 4 Registers specified by regs = 48 Registers specified by regs = 79 Registers spec

Seite 390 - I/O Ports

2-11CPU2.4.2 Data TypesData types can be processed in the four types of bit, byte, halfword and word data. Byte data, halfword data andword data can b

Seite 391

AppendixAppendix-8* Varies according to the state of the instruction buffer.Code lengthExecution CycleInstruction Source Destination Format RemarksAND

Seite 392

AppendixAppendix-9Instruction Source Destination Format RemarksSETLB SETLB S0 1 1JMP JMP (An) D0 2 3JMP (d16,PC) S2 3 2JMP (d32,PC) S4 5 4CALL CALL (d

Seite 393 - Access R R R/W R/W R/W R R R

AppendixAppendix-10List of Extension Instructions ( Code Length, Execution Cycle)Instruction Source Destination Format Code length Execution cycle Rem

Seite 394

AppendixAppendix-11Appendix C. Memory Connection ExampleFig. C-1 shows a connection example for the memory configuration described below.Block 0: 16-

Seite 395 - 15.7 Port 5

AppendixAppendix-12Appendix D. Pins and Their Operating Statuses upon ResetIn the address/data separate modePinNo.Pin nameOperatingstatus1 A19 L 26 PV

Seite 396

AppendixAppendix-13Note 1) Hi-Z: High impedanceH: High level outputL: Low level outputPull-up: Pull-upInput: Input an appropriate value.Note 2) The pi

Seite 397

AppendixAppendix-14Appendix E. Package OutlineThe package outline and dimensions of this microcontroller are shown below.Package code : LQFP100-P-141

Seite 398

ErrorsPageCorrectionsPage- i -P.1-3P.1-8P.2-9P.2-13P.2-14P.2-15P.2-15P.2-17P.2-18P.2-18P.2-18P.2-19P.2-19P.2-20P.3-5P.3-7P.1-3P.1-8P.2-9P.2-13P.2-14P.

Seite 399

ErrorsPageCorrectionsPage- ii -P.3-8P.3-9P.3-10P.3-21P.3-22P.3-23P.3-23P.3-24P.3-25P.3-25P.3-26P.3-26P.3-27P.3-29(Following sentences are added to [Pr

Seite 400

ErrorsPageCorrectionsPage- iii - (Omit)Note that operation is not assured when attempting to accessunmounted space.Note that operation is not assured

Seite 401

2-12CPU2.4.3 Instruction SetThe instruction set has a simple organization, and features the generation of compact and optimized code through aC compil

Seite 402 - Reset 00111111

ErrorsPageCorrectionsPage- iv -P.6-3P.6-3P.6-4P.8-5P.8-11,P.8-15P.8-15,P.8-20P.8-35P.8-35P.8-36P.8-41P.6-3P.6-3P.6-4P.8-5P.8-11,P.8-15P.8-15,P.8-20P.8

Seite 403

ErrorsPageCorrectionsPage- v -P.8-42P.8-43toP.8-44P.8-48P.8-49P.8-49P.8-50P.8-56P.8-57P.8-58P.8-59-P.8-42P.8-43toP.8-44P.8-48P.8-49P.8-49P.8-50P.8-56P

Seite 404 - 15.8 Port 6

ErrorsPageCorrectionsPage- vi -P.9-3P.9-7P.9-7P.9-7P.9-7P.9-7P.9-8P.9-30P.9-30P.11-6P.12-2P.12-2P.12-2(In fig. 9-4-1.)(Register's purpose)This re

Seite 405

ErrorsPageCorrectionsPage- vii -(In the table of Example.)(The 2nd line from the bottom.)An oscillation stabilization wait time of at least 14 ms is

Seite 406

(All of the series name in this manual is changed as shown below: • "MN10300 Series" is changed the name into "MN1030 Series".

Seite 407 - 15.9 Port 7

MN103001G/F01KLSI User's ManualFebruary, 2002 5th EditionIssued by Matsushita Electric Industrial Co., Ltd.© Matsushita Electric Industrial Co.,

Seite 408

Semiconductor Company, Matsushita Electric Industrial Co., Ltd.Nagaokakyo, Kyoto 617-8520, JapanTel: (075) 951-8151http://www.panasonic.co.jp/semicon/

Seite 409 - Access RRRRR/WRRR

2-13CPU• Bit instructionsBTST Bit TestBSET Test and set (processing unit: byte)BCLR Test and clear (processing unit: byte)• Shift instructionsASR Shif

Seite 410

2-14CPU2.5 Interrupts2.5.1 Overview of InterruptsThe most important key to real-time control is the ability to shift quickly to interrupt handler proc

Seite 411 - 15.10 Port 8

2-15CPU0ID1501413121110987654321000000 000000ID1501413121110987654321LV IE IRG0ICR (NMICR)GnICR (n = 2 to 19)2.5.2 Registers[Flags in the PSW] (CPU)In

Seite 412

2. CPU3. Extension Instruction Specifications4. Memory Modes5. Operating Mode6. Clock Generator7. Internal Memory8. Bus Controller (BC)9. Interrupt Co

Seite 413

2-16CPULV2 to LV0 (Interrupt Priority Level) R/W• This 3-bit field sets the interrupt priority level. When the interrupt priority level set in LV2 to

Seite 414 - 15.11 Port 9

2-17CPU[Interrupt Accept Group Register (IAGR)] R halfword/byte accessDuring a register read, the interrupt accept group register (IAGR) indicates the

Seite 415

2-18CPU2.5.3 Interrupt TypesThe three types of interrupts are listed below:[Reset interrupt]The reset interrupt is the interrupt with the highest prio

Seite 416

2-19CPU[Level interrupts]Level interrupts are interrupts for which the interrupt level can be controlled through the interrupt enable (IE) andinterrup

Seite 417 - Reset 01100000

2-20CPU(Example of pre-processing by the interrupt handler)1. The registers are saved.The saved registers are those used by the interrupt handler.2. T

Seite 418

2-21CPUAn even higher interrupt response speed can be realized by assigning only one factor or only a few factors to asingle interrupt level.Fig. 2-5-

Seite 419 - 15.12 Port A

2-22CPU[Stack Frame]When an interrupt is accepted, a stack frame is allocated and the total 6 bytes of information in the PC and PSW aresaved in order

Seite 420

3. Extension Instruction Specifications3

Seite 421

Extension Instruction Specifications3-23.1 Operation Extension FunctionThe MN1030 series 32-bit microcontrollers are provided with 32 extension instru

Seite 422

Extension Instruction Specifications3-33.2 Extension Instructions3.2.1 Explanation of NotationsThe notations used to describe instruction manual are s

Seite 424

Extension Instruction Specifications3-4Multiply RegisterMultiply & AccumulateRegister (Higher)Multiply & AccumulateRegister (Lower)Multiply &a

Seite 425

Extension Instruction Specifications3-53.2.3 Extension Instruction DetailsPUTX (Register transfer instruction for high-speed multiplication: Load)[Ins

Seite 426

Extension Instruction Specifications3-6PUTCX (Register transfer instruction for multiply-and-accumulate operation: Load)[Instruction Format (Macro Nam

Seite 427 - 15.14 Port C

Extension Instruction Specifications3-7GETX (Register transfer instruction for high-speed multiplication: Store)[Instruction Format (Macro Name)]GETX

Seite 428

Extension Instruction Specifications3-8GETCHX (Register high-order 32-bit transfer instruction for multiply-and-accumulate operation: Store)[Instructi

Seite 429

Extension Instruction Specifications3-9GETCLX (Register low-order 32-bit transfer instruction for multiply-and-accumulate operation: Store)[Instructio

Seite 430 - Pin name Treatment

Extension Instruction Specifications3-10CLRMAC (Register clear instruction for multiply-and-accumulate operation)[Instruction Format (Macro Name)]CLRM

Seite 431

Extension Instruction Specifications3-11MULQ (Signed high-speed multiplication instruction: between registers)[Instruction Format (Macro Name)]MULQ D

Seite 432 - 16.3 Block Diagram

Extension Instruction Specifications3-12MULQI (Signed high-speed multiplication instruction: between immediate value and register)[Instruction Format

Seite 433

Extension Instruction Specifications3-13MULQU (Unsigned high-speed multiplication instruction: between registers)[Instruction Format (Macro Name)]MULQ

Seite 434

14. A/D Converter15. I/O Ports16. Internal Flash Memory17. Ordering Mask ROMAppendix14151617

Seite 435 - Internal Flash Memory

Extension Instruction Specifications3-14MULQIU (Unsigned high-speed multiplication instruction: between immediate value and register)[Instruction Form

Seite 436 - Table 16-5-2 Pin Functions

Extension Instruction Specifications3-15MAC (Signed multiply-and-accumulate operation instruction: between registers)[Instruction Format (Macro Name)]

Seite 437

Extension Instruction Specifications3-16MACH (Signed half word data multiply-and-accumulate operation instruction: between registers)[Instruction Form

Seite 438 - 16.6 On-board Write Mode

Extension Instruction Specifications3-17MACB (Signed byte data multiply-and-accumulate operation instruction: between registers)[Instruction Format (M

Seite 439

Extension Instruction Specifications3-18MACU (Unsigned multiply-and-accumulate operation instruction: between registers)[Instruction Format (Macro Nam

Seite 440 - 17.1 Overview

Extension Instruction Specifications3-19MACHU (Unsigned half word data multiply-and-accumulate operation instruction: between registers)[Instruction F

Seite 441 - Ordering Mask ROM

Extension Instruction Specifications3-20MACBU (Unsigned byte data multiply-and-accumulate operation instruction: between registers)[Instruction Format

Seite 442 - Ordering Mask ROM

Extension Instruction Specifications3-21SAT16 (16-bit saturation operation instruction)[Instruction Format (Macro Name)]SAT16 Dm, Dn[Assembler Mnemon

Seite 443

Extension Instruction Specifications3-22SAT24 (24-bit saturation operation instruction)[Instruction Format (Macro Name)]SAT24 Dm, Dn[Assembler Mnemon

Seite 444 - Appendix-2

Extension Instruction Specifications3-23MCST (Multiply-and-accumulate operation results 8-, 16-, 32-bit saturation operation instruction)[Instruction

Seite 446 - Appendix-4

Extension Instruction Specifications3-24[Flag Changes]When multiply-and-accumulate operation overflow was not detected (MCVF = 0)Flag Change Condition

Seite 447 - Appendix B. Instruction Set

Extension Instruction Specifications3-25MCST9 (Multiply-and-accumulate operation results 9-bit saturation operation instruction/positive valueconversi

Seite 448 - Appendix-6

Extension Instruction Specifications3-26MCST48 (Multiply-and-accumulate operation results 48-bit saturation operation instruction)[Instruction Format

Seite 449 - Appendix-7

Extension Instruction Specifications3-27Bit 31 Bit 010000000000000000Dn before execution Dn after executionSearch rangeSearch directionMSB LSBBSCH (Bi

Seite 450 - Appendix-8

Extension Instruction Specifications3-28SWAP (Data swapping instruction that swaps bytes [high-order to low-order and vice versa] in four-byte data)[I

Seite 451 - Appendix-9

Extension Instruction Specifications3-29[Flag Changes]Flag Change ConditionV * UndefinedC * UndefinedN * UndefinedZ * Undefined[Programming Cautions]P

Seite 452 - Appendix-10

Extension Instruction Specifications3-30Bit 31Bit 0MSBLSBDm before executionDn after executionDm[31:24]Dm[23:16] Dm[15:8] Dm[7:0]Bit 31Bit 0MSBLSBDm[7

Seite 453

Extension Instruction Specifications3-31Multiply-and-accumulateinstruction *3MCRH, MCRLaccess instruction *4MCRH, MCRLaccess instruction *4Multiply-an

Seite 454 - Appendix-12

Extension Instruction Specifications3-32(a) Note on the description of word/half-word data multiply-and-accumulate instructions and multiply-and-accum

Seite 455 - Appendix-13

Extension Instruction Specifications3-33(b) Note on the description of word/half-word data multiply-and-accumulate instructions and MCRH, MCRLaccess i

Seite 456

Table of Contents/List of Figures and Tables0

Seite 457

Extension Instruction Specifications3-34(c) Note on the description of byte data multiply-and-accumulate instructions and MCRH, MCRL access instructio

Seite 458 - Corrections

Extension Instruction Specifications3-35(d) Note on the description of multiply-and-accumulate instructions and multiply-and-accumulate instructions o

Seite 459

Extension Instruction Specifications3-36(e) Note on the description of memory access and multiply-and-accumulate instruction or high-speed multiplicat

Seite 460

Extension Instruction Specifications3-37If a stack area is in the internal RAM, any error making potential condition shown on the following cases 4 t

Seite 461

Extension Instruction Specifications3-38<Error actualizing condition>Error actualizing condition is generated by the first extension instruction

Seite 462 - Note) n= 0, 1, 2, 3

Extension Instruction Specifications3-39In addition, please obey the following recommended conditions of 3 points when a program is developed by theas

Seite 463

Extension Instruction Specifications3-40

Seite 464

4. Memory Modes34

Seite 465 - LSI User's Manual

Memory Modes4-24.1 Memory Mode Types and SelectionThis microcontroller has a 32-bit linear address space of up to 4 Gbytes.The address space is compri

Seite 466 - SALES OFFICES

Memory Modes4-34.2 Memory Mode Pin ProcessingFix the input levels for the memory mode pins (MMOD0,1) as shown in Table 4-2-1 and Fig. 4-2-1 w

Kommentare zu diesen Handbüchern

Keine Kommentare