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

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
It is generally required to register the interrupt routine on the vector table so that the
ADC_int function is executed when an interrupt of the A/D converter is generated. In
this sample project, however, it has already been registered, so it can be used without the
registration.
In the above code, there are some expressions such as "IO_XXX.byte" or "IO_YYY.bit."
These are the useful description formats, which are defined in the IO header file. For
more information, see the Appendix.
ADC_int function is to be executed when an interrupt of the A/D converter is generated.
__interrupt void ADC_int(void)
{
}
Figure 7-7 Example of program code (interrupt routine)
unsigned char AD_DATA;
IO_ADCSH.bit.INT = 0;
AD_DATA = IO_ADCRLH.DATA8;
if(AD_DATA > 171){
}
else if(AD_DATA > 142){
}
else if(AD_DATA > 113){
}
else if(AD_DATA > 87){
}
else if(AD_DATA > 66){
}
else{
}
Program code to be added
IO_PDR1.byte = 0x1F;
IO_PDR1.byte = 0x1E;
IO_PDR1.byte = 0x1C;
IO_PDR1.byte = 0x18;
IO_PDR1.byte = 0x10;
IO_PDR1.byte = 0x00;
-
81
-
(9) LED control based on AD value.
(7) Clearing interrupt factor
(8) Obtain A/D converted value.

Related parts for CT-161-CD