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

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
The main processing by the program begins with the setting of LED output and switch
input pins. This setting was described in Chapter 3. Next, the program makes the
settings related to the external interrupt and enables the external interrupt. Then, the
program makes LED1 be blinking. Blinking of LED1 continues until the stop or reset
button is pressed on the ACCEMIC screen. When SW1 is pressed after the external
interrupt is enabled, an INT5 interrupt is generated, and an interrupt routine is called.
The interrupt routine clears the interrupt factor and switches LED3 between on and off
states. In summary, this program makes LED1 blinking processing usually as the main
processing, and switches LED3 between the on and off states only when the interrupt is
generated by switch operation.
Set output pins for LED1 and LED3
ELVR.bit10 = 1, ELVR.bit11 = 1,
(PDR1.bit0 = 0,DDR1.bit0 = 1,
PDR1.bit2 = 0,DDR1.bit2 = 1)
below. Figure 5.3 shows the flow of the program.
(1) When the program starts, LED1 starts blinking.
(2) When SW1 is pressed, LED3 goes on.
(3) Each time SW1 is pressed, LED3 goes off and on alternately.
Set external interrupt of SW1
(PDR1.bit0 = !(PDR1.bit0))
Start of main processing
Set input pin for SW1
Turn on or off LED1
(DDR2.bit5 = 0)
Enable interrupt.
(ENIR.bit5 = 1)
ENRR.bit5 = 0)
(ENIR.bit5 = 0,
3000 counted?
Figure 5.3 Flow of the program
- - - (1)
- - - (2)
- - - (3)
- - - (4)
- - - (6)
(5)
-
66
-
Start of external interrupt processing
End of external interrupt processing
Interrupt
Clear external interrupt factor
(PDR1.bit2 = !(PDR1.bit2))
Turn on or off LED3
(ENRR.bit5 = 0)
generated
by
SW1
© Fujitsu
- - - (7)
- - - (8)

Related parts for CT-161-CD