Revision 1.1
On p.12, type corrected. Correct: NL565050T-103J, Incorrect: L565050T-103J
October 22, 2008
Revision 1.2
On p.13, a download web page is changed.
On p.20, "1.1.1 Downloading the software" is added.
On p.25, p.30, p.36 and p.43,
Description is corrected about the extracting file.
The file path is added.
(left blank)
Revision History
AN07-00180-3E
- 2 -
AN07-00180-3E
Note
- The contents of this document are subject to change without notice. Customers are advised to consult
with FUJITSU sales representatives before ordering.
- The information, such as descriptions of function and application circuit examples, in this document are
presented solely for the purpose of reference to show examples of operations and uses of Fujitsu
semiconductor device; Fujitsu does not warrant proper operation of the device with respect to use based
on such information. When you develop equipment incorporating the device based on such information,
you must assume any responsibility arising out of such use of the information. Fujitsu assumes no
liability for any damages whatsoever arising out of the use of the information.
- Any information in this document, including descriptions of function and schematic diagrams, shall not
be construed as license of the use or exercise of any intellectual property right, such as patent right or
copyright, or any other right of Fujitsu or any third party or does Fujitsu warrant non-infringement of any
third-party’s intellectual property right or other right by using such information. Fujitsu assumes no
liability for any infringement of the intellectual property rights or other rights of third parties which
would result from the use of information contained herein.
- The products described in this document are designed, developed and manufactured as contemplated for
general use, including without limitation, ordinary industrial use, general office use, personal use, and
household use, but are not designed, developed and manufactured as contemplated (1) for use
accompanying fatal risks or dangers that, unless extremely high safety is secured, could have a serious
effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss
(i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport
control, medical life support system, missile launch control in weapon system), or (2) for use requiring
extremely high reliability (i.e., submersible repeater and artificial satellite).
Please note that Fujitsu will not be liable against you and/or any third party for any claims or damages
arising in connection with above-mentioned uses of the products.
- Any semiconductor devices have an inherent chance of failure. You must protect against injury, fire,
damage or loss from such failures by incorporating safety design measures into your facility and
equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal
operating conditions.
- If any products described in this document represent goods or technologies subject to certain restrictions
on export under the Foreign Exchange and Foreign Trade Law of Japan, the prior authorization by
Japanese government will be required for export of those products from Japan.
Table 4-2 Functions employed by the motor driving macro ....................................................... 69
Table 4-3 Description of the timer control registers and setting values ........................................ 70
Table 4-4 Description of the output compare registers and setting values .................................... 72
Table 4-5 Correspondence between the output compare values and the switchings .......... 73
Table 5-1 Description of the error types ................................................................................. 90
Table 5-2 Description of the entire CAN communication control registers and setting values......... 94
Table 5-3 CAN communication conditions of the sample program ............................................. 95
Table 5-4 CAN message IDs in the sample program ................................................................ 96
Table 6-1 Sample program folder/file configuration ............................................................... 104
- 9 -
AN07-00180-3E
Introduction
Thank you very much for purchasing the bits pot red (referred to as this starter kit or the starter kit
hereafter).
This starter kit is a beginner’s kit intended for those who wish to start learning microcontrollers and
on-board network processors. The kit is designed so that the beginners who ask “What is a
microcontroller?”, “How does it work?” and “How does it control a network?” can easily learn what it is.
The kit includes flash microcontroller development tools, so if you have slight understanding about the C
language, you can rewrite a program to let the microcontroller perform in various ways. Even if you do
not know of programming, you may be able to enjoy learning a microcontroller with a study-aid book
about the C language.
This starter kit can also serve as an introductory training tool for electronic circuit practice or future
embedded software development in a class of a college or high school of technology or training for
freshman engineers of a manufacturer.
- 10 -
Contact
For inquiries about this starter kit, contact the following address.
Zip code: 105-8420 2-5-3 Nishi-Shinbashi, Minatoku, Tokyo
E-mail: pd-bitspot@tsuzuki-densan.co.jp
bits pot URL: http://www.tsuzuki-densan.co.jp/bitspot/
Microcontroller made by Fujitsu
FR Family FR60 Lite, MB91F267N
mounted
See Figure 1-1
2
USB cable
1
USB (A to miniB)
Accessory
3
BLDC Motor
1
Tsukasa Electronic TG-22D-F539,
12 V
Accessory
4
AC adapter
1
12 V, 1 A
Accessory
Be sure to use the adapter
included in the kit
5
Motor cable
1
8-pin cable
Accessory
6
CAN cable
1
3-pin cable
Accessory
7
PC 1 On which Windows XP normally
runs and USB2.0 ports are
supported
Prepare the PC by yourself.
1 Setting up the starter kit
Before using this starter kit, be sure to check the components listed in Table 1-1 are fully supplied.
Before connecting the bits pot red CAN-Motor board (referred to as the board hereafter), you need to
install software in your PC. You can download the software required for the starter kit from the following
web site.
bits pot URL:http://www.tsuzuki-densan.co.jp/bitspot/
Table 1-1 Component list
- 13 -
AN07-00180-3E
(2) Target device oscillator
(1) Target device
(16) Extension pins
(3) CAN transceiver
(4) CAN connector
(5) USB to UART converter
(6) USB connector
(9) DC jack
(15) Fuse
(7) Motor driver circuit
(8) Motor connector
(14) Temperature sensor
(13) LED lamps
(12) Test SW
(11) Reset SW
(10) Mode SW
(19) Extension GND
(18) Extension power
(17) Jumper pin
Figure 1-1 External board view
- 14 -
AN07-00180-3E
No.
Name
Function
Description
(1)
Target device
MB91F267N
Main microcontroller (MB91F267N).
(2)
Target device oscillator
CSTCR4M00G15C
Ceralock made by Murata Manufacturing
Oscillator for the main microcontroller.
(3)
CAN transceiver
MAX3058ASA+
Transceiver IC for CAN communication.
(4)
CAN connector
3-pin connector
Connector for CAN communication.
Connect this connector to the CAN connector on the
bits pot white.
(5)
USB to UART converter
FT232RL
IC for conversion between UART and USB.
(6)
USB connector
miniB
USB connector for connection with the PC to
write/debug a program.
(7)
Motor driver circuit
3-phase motor driver
circuit
Driver circuit for 3-phase motor operation by the main
microcontroller.
(8)
Motor connector
8 pins
Connector for connection with the 3-phase motor
included in the kit.
(9)
DC jack
-
Power connector for the operation of the motor.
(10)
Mode SW
Slide switch
Switch for selection of operation mode of the board.
(11)
Reset SW
Push switch
Switch to reset the board.
(12)
Test switches
Push switch x 2
Slide switch x 1
Connected to the general-purpose I/O port.
The sample program uses this switch for motor rotation.
(13)
LED lamps
LED (green) x 6
LED (red) x 3
General-purpose LED lamps.
(14)
Temperature sensor
NTCG164BH103
NTC thermistor made by TDK
Temperature sensor connected to the A/D converter.
(15)
Fuse
0217001P
Fuse for the 12-V power supply.
(16)
Extension pins
-
Extension pins of the main microcontroller.
For details, see the circuit diagram.
(17)
Jumper pins (JP1, JP2)
-
Jumper pins for USB-UART conversion setting.
UART communication handshake setting.
1-2: Handshake by software.
2-3: Handshake by hardware.
The default setting is 2-3 (common to JP1/JP2).
“Table 1-2 Description of the respective board parts” provides descriptions of the respective board parts.
Table 1-2 Description of the respective board parts
- 15 -
(18)
Extension power (5V)
-
Extension 5-V power terminal.
(19)
Extension GND
-
Extension GND terminal.
AC adapter (accessory)
* Prepare the PC by yourself.
BLDC motor (accessory)
Use the AC adapter included in the
kit for the connection. (The motor
power is supplied from the AC
adapter.)
Use the USB cable included in the kit for
the connection. (The power is supplied
from the USB bus power.)
“Figure 1-2 System connection diagram” shows the connection of the system.
AN07-00180-3E
Figure 1-2 System connection diagram
Connect the PC with the board by using the USB cable included in the kit.
The power is supplied to the board from the USB bus power.
Directly connect the USB port to that on the PC. Do not make the connection via a USB hub.
- 16 -
AN07-00180-3E
Pin No.
Description
Connected to:
Remarks
1
AVss
GND
2 ACC
GND
3 AN0/P50
Motor driver circuit
4 AN1/P51
Motor driver circuit
5 AN2/P52
Motor driver circuit
6 AN3/P53
- 7
AN4/P54
LED6
L output = On
8
AN5/P55
LED7
L output = On
9
AN6/P56
LED8
L output = On
10
AN7/P57
LED9
L output = On
11
AN8/P44
LED10
L output = On
12
AN9/P45
LED11
L output = On
13
AN10/P46
Thermistor
14
NMI
5 V 15 C GND
16
Vss
GND
17
Vcc
5 V 18
INT4/PPG1/P00
LED12
19
PPG2/P01
LED13
20
INT5/PPG3/P02
LED14
21
TIN0/P03
- 22
TIN1/P04
- 23
TIN2/P05
- 24
TOT1/P06
- 25
TOT2/P07
- 26
SOT0/P10
USB-UART conversion
27
SIN0/P11
USB-UART conversion
28
SCK0/P12
-
29
SOT1/P13
- 30
SIN1/P14
-
31
SCK1/P15
-
“Table 1-3 MB91F267N pin assignment” shows the pin assignment of the main microcontroller
MB91F267N.
Table 1-3 MB91F267N pin assignment
- 17 -
AN07-00180-3E
32
INT6/PPG5/RX0/P16
CAN TRANSCEIVER
33
PPG6/TX0/P17
CAN TRANSCEIVER
34
ADTG1/IC2/P20
Motor driver circuit
Hall W-phase
35
ADTG2/IC3/P21
- 36
PWI0/P22
- 37
DTTI/P23
- 38
CKI/P24
- 39
IC0/P25
Motor driver circuit
Hall U-phase
40
IC1/P26
Motor driver circuit
Hall V-phase
41
P27
SW5
42
PPG0/PG1
- 43
MD2
SW4
44
MD1
GND
45
MD0
GND
46
X0
Q1
4-MHz oscillator
47
X1
Q1
4-MHz oscillator
48
Vss
GND
49
PPG4/P37
-
50
INT7/PPG7/P36
-
51
INIT
RESET(SW1)
52
RTO5/P35
Motor driver circuit
W-phase Low
53
RTO4/P34
Motor driver circuit
W-phase High
54
RTO3/P33
Motor driver circuit
V-phase Low
55
RTO2/P32
Motor driver circuit
V-phase High
56
RTO1/P31
Motor driver circuit
U-phase Low
57
RTO0/P30
Motor driver circuit
U-phase High
58
INT0/P40
SW2
SW pressed = L
59
INT1/P41
SW3
SW pressed = L
60
INT2/P42
USB-UART conversion
61
INT3/P43
USB-UART conversion
62
AVRH1
5 V
63
AVRH2
5 V
64
AVcc
5 V
- 18 -
1.1 Setting up the PC
Install the software required to operate this starter kit into the PC.
To set up the PC, take the following procedures.
(1) Downloading the software
(2) Installing a USB driver
(3) Installing the integrated development environment SOFTUNE (function-limited version)
(4) Installing PC Writer FUJITSU FLASH MCU Programmer (bits pot red dedicated version)
(5) Configuring the evaluation board and connecting it to the PC
AN07-00180-3E
- 19 -
AN07-00180-3E
Click on the driver version to
download.
1.1.1 Downloading the software
Download the file from the following web site, and extract the file.
bits pot URL:http://www.tsuzuki-densan.co.jp/bitspot/
1.1.2 Installing a USB driver
Install a USB driver.
From the FTDI web page shown below, download the Windows driver as directed in “Figure 1-3
Downloading the USB driver”.
http://www.ftdichip.com/Drivers/D2XX.htm
- 20 -
Figure 1-3 Downloading the USB driver
AN07-00180-3E
After downloading the driver, decompress it, and then connect the board to the PC by using the USB
cable included in the kit. As shown in “Figure 1-4 Installing FT232R USB UART”, the dialog for
“FT232R USB UART” installation is displayed; select “Install from a list or specific location”, and then
click the “Next” button.
Figure 1-4 Installing FT232R USB UART
- 21 -
AN07-00180-3E
As shown in “Figure 1-5 Selecting the search locations”, to search for the installation file, check
“Search for the best driver in these locations” and “Include this location in the search” only, select the
location at which the driver was decompressed, and then click the “Next” button; installation of the driver
starts.
Figure 1-5 Selecting the search locations
When the driver installation ends, the dialog shown in “Figure 1-6 Completing the USB Serial
Converter ” is displayed; click the “Finish” button.
Figure 1-6 Completing the USB Serial Converter installation
- 22 -
AN07-00180-3E
After that, as shown in “Figure 1-7 Installing USB Serial Port”, installation of “USB Serial Port” is
indicated; select “Install from a list or specific location” and then click the “Next” button.
Figure 1-7 Installing USB Serial Port
As shown in “Figure 1-8 Selecting the search locations”, to search for the installation file, check “Search
for the best driver in these locations” and “Include this location in the search” only, select the location at
which the driver was decompressed, and then click the “Next” button; installation of the driver starts.
Figure 1-8 Selecting the search locations
- 23 -
AN07-00180-3E
When the driver installation ends, the dialog shown in “Figure 1-9 Completing the USB Serial Port
installation” is displayed; Click the “Finish” button.
Figure 1-9 Completing the USB Serial Port installation
- 24 -
AN07-00180-3E
1.1.3 Installing the integrated development environment SOFTUNE (bits pot dedicated
version)
Note
If SOFTUNE V6 of the product version has been installed, first uninstall it, and then install the bits
pot dedicated version.
Start installing the integrated development environment SOFTUNE. Extract the following file from the
inside of the folder extracted by “1.1.1 Downloading the software”.
¥softwares¥softune¥REV600010-BV.zip
Double-click “Setup.exe” in the decompressed folder; the dialog shown in “Figure 1-10 SOFTUNE setup
confirmation” is displayed. Click the “OK” button.
Figure 1-10 SOFTUNE setup confirmation
The setup wizard shown in “Figure 1-11 Starting SOFTUNE setup” is displayed; click the “Next” button.
Figure 1-11 Starting SOFTUNE setup
- 25 -
AN07-00180-3E
The dialog shown in “Figure 1-12 Caution on SOFTUNE setup” is displayed; click the “Next” button.
Figure 1-12 Caution on SOFTUNE setup
The dialog shown in “Figure 1-13 SOFTUNE setup/License agreement” appears; read through the
agreements and then click “Yes” button.
Figure 1-13 SOFTUNE setup/License agreement
- 26 -
AN07-00180-3E
The version information is displayed as shown in “Figure 1-14 SOFTUNE setup/Version ”; click the
“Next” button.
Figure 1-14 SOFTUNE setup/Version information
The dialog about the destination of installation shown in “Figure 1-15 SOFTUNE setup/Selecting the
destination of installation” appears; select the default folder or desired folder and then click the “Next”
button.
Figure 1-15 SOFTUNE setup/Selecting the destination of installation
- 27 -
AN07-00180-3E
The dialog for component selection is displayed as shown in “Figure 1-16 SOFTUNE setup/Selecting the
components”; keep the default settings and then click the “Next” button.
Figure 1-16 SOFTUNE setup/Selecting the components
As shown in “Figure 1-17 SOFTUNE setup/Confirming the installation settings”, the dialog for
confirmation of the installation settings is displayed. Click the “Next” button; installation begins.
Figure 1-17 SOFTUNE setup/Confirming the installation settings
- 28 -
AN07-00180-3E
The dialog shown in “Figure 1-18 SOFTUNE setup/Completion” appears to tell the completion of
installation; click the “Finish” button.
Figure 1-18 SOFTUNE setup/Completion
- 29 -
AN07-00180-3E
1.1.4 Installing PC Writer (bits pot red dedicated version)
Start installing PC Writer. Confirm the following file from the inside of the folder extracted by “1.1.1
Downloading the software”.
¥softwares¥pc writer¥MB91F267NA_setup.exe
Double-click “MB91F267NA_setup.exe”; the dialog shown in “Figure 1-19 PC Writer/Installation
dialog” appears and installation starts; click the “Next” button.
Figure 1-19 PC Writer/Installation dialog
- 30 -
Loading...
+ 74 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.