Fujitsu MB90428A manuals
MB90428A
Table of contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Overview of Product
- Features
- Block Diagram
- Package Dimension
- Fig. 1.3 Package Dimension (LQFP100)
- Pin Assignment
- Fig. 1.5 Pin Assignment (LQFP100)
- Pin Description
- I/O Circuits
- Notes on Handling Devices
- Fig. 1.6 Example of using external clock
- Fig. 1.8 Undefined-value Output Timing Chart
- Chapter 2 CPU
- Memory Space
- Memory Map
- Addressing
- Linear Type Addressing
- Bank Type Addressing
- Fig. 2.6 Example of Bank Type Addressing
- Allocation of Multi-byte Length Data on Memory
- Fig. 2.9 Storage of Multi-byte Length Data in Stack
- Register
- Dedicated Registers
- Table 2-3 Initial Values of Dedicated Registers
- Accumulator (A)
- Fig. 2.16 Example of 32-bit Data Transfer to Accumulator (A) (register indirect)
- Stack Pointer (USP, SSP)
- Fig. 2.18 Stack Operation Instructions and Stack Pointers
- Processor Status (PS)
- Condition Code Register (PS: CCR)
- Register Bank Pointer (PS: RP)
- Interrupt Level Mask Register (PS: ILM)
- Program Counter (PC)
- Direct Page Register (DPR)
- Bank Register (PCB, DTB, USB, SSB, and ADB)
- General-purpose Register
- Table 2-6 Typical Function of the General-Purpose Register
- Prefix Codes
- Bank Select Prefix (PCB, DTB, ADB, and SPB)
- Common Register Bank Prefix (CMR)
- Flag Change Inhibit Prefix (NCC)
- Restrictions on Prefix Code
- Fig. 2.29 Interrupt/hold Inhibition Instruction and Prefix Code
- Chapter 3 Reset
- Overview of Reset
- Reset Factors and Oscillation Stabilization Wait Time
- Table 3-3 Oscillation Stabilization Wait Time Based on Setting of Clock Selection Register (CKSCR)
- External Reset Pin
- Reset Operation
- Fig. 3.6 Transfer of Reset Vectors and Mode Data
- Reset Factor Bit
- Fig. 3.8 Configuration of Reset Factor Bit (Watchdog Timer Control Register)
- State of Each Pin at Reset
- Chapter 4 Clock
- Overview of Clock
- Fig. 4.1 Clock Supply Map
- Block Diagram of Clock Generation Section
- Clock Select Register (CKSCR)
- Table 4-1 Function of Each Bit of Clock Select Register (CKSCR)
- Clock Mode
- Fig. 4.3 Transition Diagram of Machine Clock Selection State
- Oscillation Stabilization Wait Time
- Connection of Oscillator and External Clock
- Chapter 5 Low-Power Consumption Mode
- Overview of Low-power Consumption Mode
- Block Diagram of Low-power Consumption Controller
- Low-power Consumption Mode Control Register (LPMCR)
- Table 5-1 Function of Each Bit of Low -pow er Consum ption M ode Control Register (LPM CR)
- Table 5-2 Instructions At Transition To Low-power Consumption Mode
- CPU Intermittent Operation Mode
- Standby Mode
- Sleep Mode
- Fig. 5.5 Cancellation of Sleep Mode by Interrupt
- Time-base Timer Mode
- Timer Mode
- Fig. 5.6 Cancellation of Timer Mode (External Reset)
- Stop Mode
- Fig. 5.7 Cancellation of Stop Mode (External Reset)
- State Transition Diagram
- Table 5-4 Operation State in Low-power Consumption Mode
- Pin State in Standby Mode, at Reset
- Precautions at Using Low-power Consumption Mode
- Chapter 6 Interrupt
- Overview of Interrupt
- Fig. 6.1 General Flow of Interrupt Operation
- Interrupt Factor and Interrupt Vector
- Interrupt Control Registers and Resources
- Interrupt Control Register (ICR00 to ICR15)
- Fig. 6.3 Interrupt Control Register (ICR00 to ICR15) at Reading
- Function of Interrupt Control Register
- Table 6-4 Relationship between Interrupt Level Setting Bits and Interrupt Levels
- Hardware Interrupt
- Fig. 6.5 Hardw are Interrupt Request during W riting to the Resource Control Register Area
- Operation of Hardware Interrupt
- Fig. 6.6 Operation of Hardware Interrupt
- Processing at Interrupt Operation
- Use Procedure for Hardware Interrupt
- Multiple Interrupts
- Hardware Interrupt Handling Time
- Software Interrupt
- Fig. 6.11 Operation of Software Interrupt
- EI 2 OS Descriptor (ISD)
- Table 6-10 Correspondence between Channel Number and Descriptor Address
- Fig. 6.14 Configuration of Data Counter (DCT)
- Fig. 6.17 Configuration of Buffer Address Pointer (BAP)
- Use Procedure for EI 2 OS
- Table 6-13 Compensation Value (Z) for Interrupt Handling Time
- Exception Handling Interrupt
- Stack Operation for Interrupt Handling
- Fig. 6.21 Stack Area
- Program Example for Interrupt Handling
- Chapter 7 Mode Setting
- Mode Setting
- Mode Pins (MD2 to MD0)
- Mode Data
- Fig. 7.3 Relationship betw een Access Areas and P hysical Addresses in Single-chip M ode
- Chapter 8 I/O Port
- Overview of I/O Port
- Table 8-1 List of Each Port Functions
- Registers and Assignment of Pins Serving as External Pins
- Port
- Fig. 8.1 Block Diagram of Pins of Port 0
- Registers for Port 0 (PDR0, DDR0)
- Operation of Port 0
- Table 8-6 State of Port 0 Pins
- Fig. 8.2 Block Diagram of Pins of Port 1
- Registers for Port 1 (PDR1, DDR1)
- Operation of Port 1
- Table 8-10 State of Port 1 Pins
- Fig. 8.3 Block Diagram of Pins of Port 3
- Registers for Port 3 (PDR3, DDR3)
- Operation of Port 3
- Table 8-14 State of Port 3 Pins
- Fig. 8.4 Block Diagram of Pins of Port 4
- Registers for Port 4 (PDR4, DDR4)
- Operation of Port 4
- Table 8-18 State of Port 4 Pins
- Fig. 8.5 Block Diagram of Pins of Port 5
- Registers for Port 5 (PDR5, DDR5)
- Operation of Port 5
- Table 8-22 State of Port 5 Pins
- Fig. 8.6 Block Diagram of Pins of Port 6
- Registers for Port 6 (PDR6, DDR6)
- Operation of Port 6
- Table 8-26 State of Port 6 Pins
- Fig. 8.7 Block Diagram of Pins of Port 7
- Registers for Port 7 (PDR7, DDR7)
- Operation of Port 7
- Table 8-30 State of Port 7 Pins
- Fig. 8.8 Block Diagram of Pins of Port 8
- Registers for Port 8 (PDR8, DDR8)
- Operation of Port 8
- Table 8-34 State of Port 8 Pins
- Fig. 8.9 Block Diagram of Pins of Port 9
- Registers for Port 9 (PDR9, DDR9)
- Operation of Port 9
- Table 8-38 State of Port 9 Pins
- Program Example Using I/O Ports
- Chapter 9 Watchdog Timer/Time-base Timer/Watch Timer (Sub-Clock)
- Block Diagram of Watchdog Timer, Time-base Timer, and Watch Timer
- List of Watchdog Timer, Time-base Timer, and Watch Timer Registers
- Watchdog Timer Control Register (WDTC)
- Table 9-2 WT1 and 0 (Interval Time Select Bits)
- Time-base Timer Control Register (TBTC)
- Watch timer control register (WTC)
- Table 9-4 Selection of Watch Timer Interval
- Operation of Watchdog Timer, Time-base Timer, and Watch Timer
- Operation of Watchdog Timer
- Fig. 9.6 Clearing Timing and Watchdog Timer Interval Time
- Operation of Time-base Timer
- Table 9-6 Time-base Timer Counter Clear and Oscillation Stabilization Wait Time
- Operation of Watch Timer
- Precautions at Using Watchdog Timer and Time-base Timer
- Fig. 9.7 Operation of Time-base Timer
- Program Examples of Watchdog Timer and Time-base Timer
- Chapter 10 16-bit Reload Timer
- Overview of 16-bit Reload Timer
- Table 10-2 Interval Time of 16-bit Reload Timer
- Configuration of 16-bit Reload Timer
- Pins of 16-bit Reload Timer
- Registers for 16-bit Reload Timer
- Timer Control Status Register (upper) (TMCSR0/1H)
- Table 10-5 Function of Each Bit of Timer Control Status Register (upper TMCSR0, TMCSR1: H)
- Timer Control Status Register (lower) (TMCSR0/1L)
- Table 10-6 Function of Each Bit of Timer Control Status Register (lower) (TMCSR0/1L)
- bit Timer Register (TMR0/1)
- bit Reload Register (TMRLR0/1L, TMRLR0/1H)
- Interrupt of 16-bit Reload Timer
- Operation of 16-bit Reload Timer
- Fig. 10.10 State Transition Diagram of Counter
- Internal Clock Mode (Reload Mode)
- Fig. 10.12 Count Operation in Reload Mode (Operation of External Trigger)
- Internal Clock Mode (One-shot Mode)
- Fig. 10.15 Count Operation in One-shot Mode (Operation of External Trigger)
- Event Count Mode
- Fig. 10.18 Count Operation in One-shot Mode (Operation of Event Count Mode)
- Precautions at Using 16-bit Reload Timer
- Program Example of 16-bit Reload Timer
- Chapter 11 Input Capture
- Overview of Input Capture
- Block Diagram of Input Capture
- List of Input Capture Registers
- Detailed Explanation of Registers for Input Capture
- Detailed Explanation of Registers for 16-bit Free-run Timer
- Explanation of Operation
- bit Input Capture
- bit Free-run Timer
- Fig. 11.6 Clearing Timing of 16-bit Free-run Timer
- Chapter 12 UART
- Overview of UART
- Table 12-2 Operation Mode of UART
- Configuration of UART
- Fig. 12.1 Block Diagram of UART
- Pin of UART
- Registers for UART
- Control Register (SCR0/1)
- Table 12-5 Function of Each Bit of Control Register (SCR0/1)
- Mode Register (SMR0/1)
- Table 12-6 Function of Each Bit of Mode Register (SMR0/1)
- Status Register (SSR0/1)
- Table 12-7 Function of Each Bit of Status Register (SSR0/1)
- Input-Data Register (SIDR0/1) and Output-Data Register (SODR0/1)
- Communication Prescaler Control Register (CDCR0/1)
- Interrupt of UART
- Generation of Receive Interrupt and Timing of Flag Set
- Generation of Transmit Interrupt and Timing of Flag Set
- Baud Rate of UART
- Fig. 12.11 UART Baud Rate Selector
- Baud Rate by Dedicated Baud Rate Generator
- Table 12-13 Selection of Division Ratio to Obtain Asynchronous Baud Rate
- Baud Rate by Internal Timer (16-bit Reload Timer)
- Baud Rate by External Clock
- Operation of UART
- Operation in Asynchronous Mode (Operation Mode 0 or 1)
- Fig. 12.15 Transmit Data when Parity Enabled
- Operation in Synchronous Mode (Operation Mode 2)
- Bidirectional Communication Function (Normal Mode)
- Fig. 12.19 Example of Bidirectional Communication Flow
- Master/Slave Mode Communication Function (Multiprocessor Mode)
- Table 12-16 Selection of Master/Slave Mode Communication Function
- Fig. 12.22 Flowchart of Master/Slave Mode Communications
- Precautions at Using UART
- Program Example of UART
- Chapter 13 PPG Timer
- Overview of PPG Timer
- Block Diagram of PPG Timer
- Registers for PPG Timer
- Detailed Explanation of Registers for PPG Timer
- Operation of PPG Timer
- One-shot Operation
- Interrupt Factors and Timing
- Chapter 14 LCD Controller/Driver
- Overview of LCD Controller/Driver
- Configuration of LCD Controller/Driver
- Internal Split Resistors of LCD Controller/Driver
- Fig. 14.3 State when Internal Split Resistors Used
- External Split Resistors for LCD Controller/Driver
- Fig. 14.6 State when External Split Resistors Used
- LCD Controller/Driver Pins
- Fig. 14.7 Block Diagram of Pins Related to LCD Controller/Driver
- LCD Controller/Driver Registers
- LCDC Control Register Lower (LCRL)
- Table 14-3 Function of Each Bit of LCDC Control Register Lower (LCRL)
- LCDC Control Register Higher (LCRH)
- LCD Controller/Driver Display RAM
- Table 14-6 Relationship between Duty, Common Output Pins, and Display RAM Bits
- Explanation of Operation of LCD Controller/Driver
- Output Waveform (1/2 duty) during Operation of LCD Controller/Driver
- Fig. 14.13 Example of Output Waveform on 1/2 Bias and 1/2 Duty
- Fig. 14.14 Example of LCD Panel Display Data
- Output Waveform (1/3 duty) during Operation of LCD Controller/Driver
- Fig. 14.15 Example of Output Waveform on 1/3 Bias and 1/3 Duty
- Fig. 14.16 Example of LCD Panel Display Data
- Output Waveform (1/4 duty) during Operation of LCD Controller/Driver
- Fig. 14.17 Example of Output Waveform on 1/3 Bias and 1/4 Duty
- Fig. 14.18 Example of LCD Panel Display Data
- Chapter 15 Stepping Motor Controller
- Fig. 15.1 Block Diagram of Stepping Motor Controller
- Stepping Motor Controller Registers
- PWM Control Register
- PWM1&2 Compare Registers
- PWM 1&2 Select Registers
- Explanation of Operation of Stepping Motor Controller
- Fig. 15.3 Example of PWM 1, 2 Waveform Output
- Precautions at Using Stepping Motor Controller
- Chapter 16 DTP/External Interrupt Circuit
- Overview of DTP/External Interrupt Circuit
- Configuration of DTP/External Interrupt Circuit
- Pins of DTP/External Interrupt Circuit
- Registers for DTP/External Interrupt Circuit
- DTP/Interrupt Enable Register (ENIR)
- Request Level Setting Register (ELVR)
- Explanation of DTP/External Interrupt Circuit Operation
- Fig. 16.8 Operation of DTP/External Interrupt Circuit
- External Interrupt Function
- DTP Function
- Precautions at Using DTP/External Interrupt Circuit
- Sample Programs for DTP/External Interrupt Circuit
- Chapter 17 Delayed Interrupt Generate Module
- Overview of Delayed Interrupt Generate Module
- Operation of Delayed Interrupt Generate Module
- Chapter 18 Timepiece Timer
- Overview of Timepiece Timer
- Timepiece Timer Registers
- Timepiece Timer Control Register
- Sub-second Data Register
- Second/Minute/Hour Data Register
- Chapter 19 8-/10- bit A/D Converter
- Overview of 8-/10-bit A/D Converter
- Configuration of 8-/10-bit A/D Converter
- Pins of 8-/10-bit A/D Converter
- Fig. 19.2 Block Diagram of P60/AN0 to P67/AN7 Pins
- Registers for 8-/10-bit A/D Converter
- A/D Control Status Register Upper (ADCSH)
- Table 19-4 Function of Each Bit of A/D Control Status Register Higher (ADCSH)
- A/D Control Status Register Lower (ADCSL)
- Table 19-5 Function of Each Bit of A/D Control Status Register Lower (ADCSL)
- A/D Data Register (ADCRH/ ADCRL)
- Table 19-6 Function of Each Bit of A/D Data Register (ADCR)
- Interrupt of 8-/10-bit A/D Converter
- Explanation of 8-/10-bit A/D Converter Operation
- Fig. 19.8 Setting in Continuous Conversion Mode
- Fig. 19.9 Setting in Pause-conversion Mode
- A/D-converted Data Protection Function
- Precautions at Using 8-/10-bit A/D Converter
- Chapter 20 Sound Generator
- Overview of Sound Generator
- Sound Generator Registers
- Sound Control Register
- Frequency Data Register
- Amplitude Data Register
- Decrement Grade Register
- Chapter 21 ROM Correction
- Overview of ROM Correction
- Application Example of ROM Correction
- Correction Example of Program Errors
- Example of Correction Processing
- Fig. 21.5 ROM Correction Processing Flow Diagram
- Chapter 22 ROM Mirror Function Select Module
- Overview of ROM Mirror Function Select Module
- ROM Mirror Function Select Register (ROMM)
- Chapter 23 Can Controller
- Features of CAN Controller
- Block Diagram of CAN Controller
- List of Overall Control Registers
- Table 23-2 List of CAN WAKE UP Control Registers
- List of Message Buffers (ID Registers)
- List of Message Buffers (DLC Registers and Data Registers)
- Table 23-5 List of Message Buffers (Data Registers)
- Classifying CAN Controller Registers
- Control Status Register (CSR)
- Fig. 23.2 Node Status Transition Diagram
- Bus Operation Stop Bit (HALT = 1)
- Last Event Indicate Register (LEIR)
- Receive and Transmit Error Counters (RTEC)
- Bit Timing Register (BTR)
- Message Buffer Valid Register (BVALR)
- Transmission Request Register (TREQR)
- Remote Frame Receiving Wait Register (RFWTR)
- Transmission Complete Register (TCR)
- Reception Complete Register (RCR)
- Receive Overrun Register (ROVRR)
- Acceptance Mask Select Register (AMSR)
- Acceptance Mask Registers 0 and 1 (AMR0 and AMR1)
- Message Buffers
- ID Register x (x = 0 to 15) (IDRx)
- DLC Register x (x = 0 to 15) (DLCRx)
- Data Register x (x = 0 to 15) (DTRx)
- CAN WAKE UP Control Register (CWUCR)
- Transmission of CAN Controller
- Fig. 23.5 Transmission Flowchart of the CAN Controller
- Reception of CAN Controller
- Fig. 23.6 Flowchart Determining Message Buffer (x) where Receive Messages Stored
- Reception Flowchart for CAN Controller
- How to Use CAN Controller
- Procedure for Transmission by Message Buffer (x)
- Procedure for Reception by Message Buffer (x)
- Setting Configuration of Multi-level Message Buffer
- Fig. 23.9 Examples of Operation of Multi-level Message Buffer
- CAN WAKE UP Function
- Chapter 24 Low Voltage and CPU Operation Detection Reset Circuit
- Overview of Low Voltage and CPU Operation Detection Reset Circuit
- Configuration of Low Voltage and CPU Operation Detection Reset Circuit
- Register for Low Voltage and CPU Operation Detection Reset Circuit
- Operation of Low Voltage and CPU Operation Detection Reset Circuit
- Cautions when Using Low Voltage and CPU Operation Detection Reset Circuit
- Sample Program for Low Voltage and CPU Operation Detection Reset Circuit
- Chapter 25 1-Mbit Flash Memory
- Overview of 1-Mbit Flash Memory
- Block Diagram for Entire Flash Memory and Flash Memory Sector Configuration
- Fig. 25.2 Sector Configuration of 1-Mbit Flash Memory
- Program/Erase Mode
- Table 25-1 Flash Memorr Control Signals
- Flash Memory Control Status Register (FMCS)
- Start Automatic Algorithm of Flash Memory
- Table 25-3 Bit Allocation of Hardware Sequence Flags
- Data Polling Flag (DQ7)
- Toggle Bit Flag (DQ6)
- Timing Limit Exceeding Flag (DQ5)
- Sector Erase Timer Flag (DQ3)
- Details of Programming to and Erasing from Flash Memory
- Data Programming to Flash Memory
- Fig. 25.3 Example of Data Programming Procedure
- All Data Erasing from Flash Memory (Chip Erase)
- Fig. 25.4 Example of Sector Erasing Procedure
- Sector Erasing Suspention
- Cautions when Using Flash Memory
- Sample Program for 1-Mbit Flash Memory
- Chapter 26 Examples of MB90F428/A Serial Write Connection
- Example of Serial Write Connection (User Power Supply Used)
- Example of Serial Write Connection (Power Supplied from the Writer)