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

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
The reload_int function in Figure 6-5 Example of program code (interrupt routine) is
to be executed when an interrupt of the 16-bit reload timer is generated. It is normally
required to register the interrupt routine on the vector table so that the reload_int function
is executed when an interrupt of the 16-bit reload timer is generated. In this sample
project, however, it has already been registered, so it can be used without registration.
In the above code, there are some expressions such as "IO_XXX.byte" and "IO_YYY.bit".
These are the useful description formats, which are defined in the IO header file. For
more information, see the Appendix.
void main(void)
{
}
__interrupt void reload_int(void)
{
}
Figure 6-5 Example of program code (interrupt routine)
Figure 6-4 Example of program code (main routine)
IO_TMCSR0.bit.UF = 0;
IO_PDR1.bit.P14=~IO_PDR1.bit.P14;
IO_PDR1.byte=0xEF;
IO_DDR1.byte=0x1F;
__set_il(7);
__EI();
IO_ICR03.byte=0x06;
IO_TMR[0]=0xF424;
IO_TMCSR0.bit.CSL=2;
IO_TMCSR0.bit.RELD=1;
IO_TMCSR0.bit.INTE=1;
IO_TMCSR0.bit.CNTE=1;
IO_TMCSR0.bit.TRG=1;
while(1);
Program code to be added
Program code to be added
-
73
-
(10) Timer operation permission (wait for
a start factor)
(11) Software start factor of timer (starts
operation)
(7) Timer count clock setting
(8) Timer count repeat setting
(3) CPU interrupt level setting
(6) Timer count value setting
(4) Interrupt permission
(9) Timer interrupt permission
(12) Infinite loop
(5) Timer interrupt level setting
(1) LED5 on setting P14=Low
(2) P10 to P14 output setting
(13) LED-on/off switching
(12) Clearing interrupt factor

Related parts for CT-161-CD