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

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
In the above code, there are 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 .
© Fujitsu
The
It is normally 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
registration.
ADC_int function is to be executed when an interrupt of the A/D converter is generated.
__interrupt void ADC_int(void)
{
}
Figure 8-5 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;
-
89
-
(9) LED control based on AD value
(7) Clearing interrupt factor
(8) Obtain A/D converted value

Related parts for CT-161-CD