CT-161-CD Fujitsu Semiconductor America Inc, CT-161-CD Datasheet - Page 51

KIT 16LX FOR MB90F387

CT-161-CD

Manufacturer Part Number
CT-161-CD
Description
KIT 16LX FOR MB90F387
Manufacturer
Fujitsu Semiconductor America Inc
Series
F²MC-16LXr
Type
MCUr
Datasheets

Specifications of CT-161-CD

Contents
Board, Cable, CD
For Use With/related Products
MB90F387S
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
865-1103

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CT-161-CD
Manufacturer:
Fujitsu Semiconductor America
Quantity:
135
© Fujitsu
2.4.1
2.4.2
Here, you will create a program that outputs a low-level signal from pin P14 of the
microcomputer to turn on LED5. Figure 2.8 shows the flow of the program. In the
flow, a value is set in the PDR1 register first, and then output setting is made using the
DDR1 register. For port output, be sure to set the output level in the PDR1 register
before the output setting using the DDR1 register. The setting operation should be
performed in this order because the initial value that is applied after the microcomputer is
reset is not defined for the PDR1 register (to set the output level).
Let us now create the actual program.
Appendix A.1, open the source file "main.c" stored in ”sample.prj”, and input the program
portion enclosed by dotted line in Figure 2.9. Use the files other than "main.c" without
modification.
procedure described in Appendix A.2. If an error message is output, check that the
content of the input program is exactly the same as the description shown in Figure 2.9.
When the build operation ends successfully, ACCEMIC MDE starts automatically.
For how to execute the program, see Appendix B.1. While the program is executed,
you can see that LED5 goes on on the board.
After the ACCEMIC MDE window appears, execute the program and check its operation.
Outline of program to be created
Creating and executing of program
Figure 2.8
After the input of the program, build the program according to the
Set P14 output level to low (PDR1.bit4=0).
Flow of the program to turn on the LED
Set P14 to output mode
Set LED5 to on.
(DDR1.bit4=1)
Infinite loop
-
START
45
-
According to the procedure described in
(3)
(1)
(2)

Related parts for CT-161-CD