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

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
7.2.2
Let us now create the actual program.
Appendix A.1, open the source file "main.c" in the "sample.prj," and input the program
that is the circled part in Figures A.1 and A.1. Use all files except main.c without any
changes. After the program is input, "build" the program according to the procedure
described in Appendix A.2. If an error is output, reconfirm that the program accords to
the contents of Figure 6-4 Example of program code (main routine) and Figure 6-4
Example of program code (main routine) .
ACCEMIC MDE ” starts automatically.
When the “ ACCEMIC MDE ” window appears, execute the program and check the
operation. For the procedure of the program execution, see Appendix A.3. When the
program starts correctly, check the operation. It can be confirmed that the LEDs 1 to 5
are lighted according to the size of the applied voltage that has been adjusted on the
volume.
voi main(void)
{
}
Creation and execution of the program
__set_il(7);
__EI();
IO_PDR1.byte = 0x1F;
IO_DDR1.byte = 0x1F;
IO_DDR5.bit.D50 = 0;
IO_ICR03.byte = 0x06;
IO_ADCSH.bit.BUSY = 0;
IO_ADER.byte = 0x01;
IO_ADCSL.byte = 0x80;
IO_ADCRLH.byte.ADCRH = 0xF8;
IO_ADCSH.bit.INTE = 1;
IO_ADCSH.bit.STRT = 1;
while(1);
Figure 7-6 Example of program code (main routine)
Program code to be added
-
80
-
According to the procedure described in
When the "build" is succeeded, “
(1) Port 1 (LED control) output setting
(2) Port 5 (AD input) input setting
(4) A/D converter initialization
(5)
interrupt permission
(6) A/D conversion starts
(3) Stop A/D converter.
- A/D converter channel setting
- A/D converter mode setting
- A/D sampling condition setting
A/D
conversion
© Fujitsu

Related parts for CT-161-CD