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

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
2.5
This section explains how to create a program that makes the LED be blinking.
2.5.1
Descriptions ”IO_XXX.byte” and ”IO_YYY.bit” included in the above program code are
the convenient formats of description defined in the I-O header file.
information, see Appendix B.1.
How to create and execute a program to make the LED blinking
Here, you will create a program that switches the output from pin P14 of the
microcomputer between the low and high levels repeatedly to make LED5 turn on and
off repeatedly. While 0 and 1 are written alternately to the bit 4 of the PDR1 register ,
LED5 is blinking as shown below.
Figure 2.10 shows the flow of the program. The only difference of this program from
the LED lighting program shown in Figure 2.8 is that this program has additional steps
of LED off and LED on/off time count processing. The LED on/off time count
processing is described by the for-statement as shown below to enable you to visually
confirm the on/off operation of the LED. You can vary the on/off time by changing
the currently set value (30000).
void main(void)
{
}
- On/off time count
LED5 is on. (LED1 to LED4 are off.)
Outline of the program to be created
IO_PDR1.byte=0xEF;
IO_DDR1.byte=0x1F;
while(1);
Program to be added
Figure 2.9
for(i=0;i<30000;i++);
On
Program to turn on the LED
-
46
-
(1) LED5 on setting (P14=Low, P10 to P13=High)
(2) P10 to P14 output setting
(3) Infinite loop
LED5 is off. (LED1 to LED4 are off)
Off
For further
© Fujitsu

Related parts for CT-161-CD