The following document contains information on Cypress products. The document has the series
name, product name, and ordering part numbering with the prefix “MB”. However, Cypress will
offer these products to new and existing customers with the series name, product name, and
ordering part number with the prefix “CY”.
How to Check the Ordering Part Number
1. Go to
www.cypress.com/pcn.
2. Enter the keyword (for example, ordering part number) in the
SEARCH PCNS
field and click
Apply.
3. Click the corresponding title from the search results.
4. Download the Affected Parts List file, which has details of all changes
For More Information
Please contact your local sales office for additional information about Cypress products and
solutions.
About Cypress
Cypress is the leader in advanced embedded system solutions for the world's most innovative
automotive, industrial, smart home appliances, consumer electronics and medical products.
Cypress' microcontrollers, analog ICs, wireless and USB-based connectivity solutions and reliable,
high-performance memories help engineers design differentiated products and get them to market
first. Cypress is committed to providing customers with the best support and development
resources on the planet enabling them to disrupt markets by creating new product categories in
record time. To learn more, go to
www.cypress.com.
MB90387/387S/F387/F387S
MB90V495G
16-bit Microcontrollers
F
2
MC-16LX MB90385 Series
MB90385 series devices are general-purpose high-performance 16-bit micro controllers designed for process control of consumer
products, which require high-speed real-time processing. The devices of this series have the built-in full-CAN interface.
The system, inheriting the architecture of F
2
MC family, employs additional instruction ready for high-level languages, expanded
addressing mode, enhanced multiply-divide instructions, and enriched bit-processing instructions. Furthermore, employment of 32-
bit accumulator achieves processing of long-word data (32 bits).
The peripheral resources of MB90385 series include the following:
8/10-bit A/D converter, UART (SCI), 8/16-bit PPG timer, 16-bit input-output timer (16-bit free-run timer, input capture 0, 1, 2, 3 (ICU)),
and CAN controller.
Features
Clock
■
■
■
■
■
■
Time-base timer mode (a mode that operates oscillation clock,
sub clock, time-base timer and watch timer only)
Watch mode (a mode that operates sub clock and watch timer
only)
Stop mode (a mode that stops oscillation clock and sub clock)
CPU blocking operation mode
Built-in PLL clock frequency multiplication circuit
Selection of machine clocks (PLL clocks) is allowed among
frequency division by two on oscillation clock, and multiplication
of 1 to 4 times of oscillation clock (for 4-MHz oscillation clock,
4 MHz to 16 MHz).
Operation by sub-clock (8.192 kHz) is allowed. (MB90387,
MB90F387)
Minimum execution time of instruction: 62.5 ns (when operating
with 4-MHz oscillation clock, and 4-time multiplied PLL clock).
Process
■
■
■
CMOS technology
I/O Port
■
General-purpose input/output port (CMOS output):
MB90387, MB90F387: 34 ports (including 4 high-current out-
put ports)
MB90387S, MB90F387S: 36 ports (including 4 high-current
output ports)
16 Mbyte CPU memory Space
■
24-bit internal addressing
Instruction System Best Suited to Controller
■
■
■
■
Wide choice of data types (bit, byte, word, and long word)
Wide choice of addressing modes (23 types)
Enhanced multiply-divide instructions and RETI instructions
Enhanced high-precision computing with 32-bit accumulator
Timer
■
■
■
■
Time-base timer, watch timer, watchdog timer: 1 channel
8/16-bit PPG timer: 8-bit x 4 channels, or 16-bit x 2 channels
16-bit reload timer: 2 channels
16-bit input/output timer
❐
16-bit free run timer: 1 channel
❐
16-bit input capture: (ICU): 4 channels
Interrupt request is issued upon latching a count value of 16-
bit free run timer by detection of an edge on pin input.
Instruction System Compatible with High-level
Language (C language) and Multitask
■
■
■
Employing system stack pointer
Enhanced various pointer indirect instructions
Barrel shift instructions
■
■
■
■
CAN Controller: 1 channel
Compliant with Ver2.0A and Ver2.0B CAN specifications
8 built-in message buffers
Transmission rate of 10 kbps to 1 Mbps (by 16 MHz machine
clock)
CAN wake-up
Increased Processing Speed
■
4-byte instruction queue
Powerful Interrupt Function with 8 Levels and 34
Factors
Automatic Data Transfer Function Independent of CPU
■
UART (SCI): 1 channel
■
■
Expanded intelligent I/O service function (EI
2
OS): Maximum
of 16 channels
Equipped with full-duplex double buffer
Clock-asynchronous or clock-synchronous serial transmission
is available.
Low Power Consumption (standby) Mode
■
Sleep mode (a mode that halts CPU operating clock)
Cypress Semiconductor Corporation
Document Number: 002-07765 Rev. *A
•
198 Champion Court
•
San Jose
,
CA 95134-1709
•
408-943-2600
Revised February 5, 2018
MB90387/387S/F387/F387S
MB90V495G
DTP/External Interrupt: 4 channels, CAN wakeup:
1channel
■
Module for activation of expanded intelligent I/O service
(EI
2
OS), and generation of external interrupt.
Delay Interrupt Generator Module
■
Generates interrupt request for task switching.
8/10-bit A/D Converter: 8 channels
■
■
■
Resolution is selectable between 8-bit and 10-bit.
Activation by external trigger input is allowed.
Conversion time: 6.125
s
(at 16 MHz machine clock, including
sampling time)
Program Patch Function
■
Address matching detection for 2 address pointers.
Document Number: 002-07765 Rev. *A
Page 2 of 81
MB90387/387S/F387/F387S
MB90V495G
Contents
Product Lineup ...................................................................... 4
Packages And Product Models ............................................ 5
Product Comparison ............................................................. 5
Pin Assignment ..................................................................... 6
Pin Description ...................................................................... 7
I/O Circuit Type ...................................................................... 9
Handling Devices................................................................. 10
Block Diagram ..................................................................... 12
Memory Map......................................................................... 12
Memory Allocation of MB90385 ..................................... 12
Memory Map .................................................................. 13
I/O Map.................................................................................. 14
Interrupt Sources, Interrupt Vectors, And Interrupt Control
Registers .............................................................................. 21
Peripheral Resources..........................................................
I/O Ports .........................................................................
Time-Base Timer............................................................
Watchdog Timer .............................................................
16-bit Input/Output Timer ...............................................
16-bit Reload Timer........................................................
Watch Timer Outline.......................................................
8/16-bit PPG Timer Outline ............................................
22
22
28
30
32
35
37
39
Delay Interrupt Generation Module Outline....................
DTP/External Interrupt and CAN Wakeup Outline .........
8/10-bit A/D Converter....................................................
UART Outline .................................................................
CAN Controller ...............................................................
Address Matching Detection Function Outline ...............
ROM Mirror Function Selection Module Outline.............
512 Kbit Flash Memory Outline ......................................
Electrical Characteristics....................................................
Absolute Maximum Rating .............................................
Recommended Operating Conditions ............................
DC Characteristics .........................................................
AC Characteristics..........................................................
A/D Converter.................................................................
Definition of A/D Converter Terms .................................
Notes on A/D Converter Section ....................................
Flash Memory Program/Erase Characteristics...............
42
43
45
47
49
51
52
53
55
55
57
58
60
67
68
70
70
Example Characteristics..................................................... 71
Ordering Information........................................................... 77
Package Dimension............................................................. 78
Major Changes..................................................................... 79
Document History................................................................ 80
Sales, Solutions, and Legal Information ........................... 81
Document Number: 002-07765 Rev. *A
Page 3 of 81
MB90387/387S/F387/F387S
MB90V495G
1. Product Lineup
Part Number
Parameter
Classification
ROM capacity
RAM capacity
Process
Package
Operating power supply voltage
Special power supply for
emulator*
1
CPU functions
Number of basic instructions
Instruction bit length
Instruction length
Data bit length
3.5 V to 5.5 V
: 351 instructions
: 8 bits and 16 bits
: 1 byte to 7 bytes
: 1 bit, 8 bits, 16 bits
MB90F387
MB90F387S
Flash ROM
64 Kbytes
2 Kbytes
CMOS
LQFP-48 (pin pitch 0.50 mm)
PGA-256
MB90387
MB90387S
Mask ROM
MB90V495G
Evaluation product
6 Kbytes
4.5 V
to
5.5 V
None
Minimum instruction execution time: 62.5 ns (at 16 MHz machine clock)
Interrupt processing time: 1.5
s
at minimum (at 16 MHz machine clock)
Low power consumption
(standby) mode
I/O port
Time-base timer
Sleep mode / Watch mode / Time-base timer mode / Stop mode / CPU intermittent
General-purpose input/output ports (CMOS output): 34 ports (36 ports*
2
)
including 4 high-current output ports (P14 to P17)
18-bit free-run counter
Interrupt cycle: 1.024 ms, 4.096 ms, 16.834 ms, 131.072 ms
(with oscillation clock frequency at 4 MHz)
Reset generation cycle: 3.58 ms, 14.33 ms, 57.23 ms, 458.75 ms
(with oscillation clock frequency at 4 MHz)
Watchdog timer
16-bit input/
output timer
16-bit free-run
timer
Input capture
Number of channels: 1
Interrupt upon occurrence of overflow
Number of channels: 4
Retaining free-run timer value set by pin input (rising edge, falling edge, and both edges)
Number of channels: 2
16-bit reload timer operation
Count clock cycle: 0.25
s,
0.5
s,
2.0
s
(at 16-MHz machine clock frequency)
External event count is allowed.
15-bit free-run counter
Interrupt cycle: 31.25 ms, 62.5 ms, 12 ms, 250 ms, 500 ms, 1.0 s, 2.0 s
(with 8.192 kHz sub clock)
Number of channels: 2 (four 8-bit channels are available also.)
PPG operation is allowed with four 8-bit channels or two 16-bit channels.
Outputting pulse wave of arbitrary cycle or arbitrary duty is allowed.
Count clock: 62.5 ns to 1
s
(with 16 MHz machine clock)
Interrupt generator module for task switching. Used for realtime OS.
Number of inputs: 4
Activated by rising edge, falling edge, “H” level or “L” level input.
External interrupt or expanded intelligent I/O service (EI
2
OS) is available.
16-bit reload timer
Watch timer
8/16-bit PPG timer
Delay interrupt generator module
DTP/External interrupt
Document Number: 002-07765 Rev. *A
Page 4 of 81