主权项 |
1. A semiconductor device comprising:
a central processing unit; a plurality of peripheral circuits including first and second peripheral circuits; and a conversion portion that has a plurality of input channels including one or more first channels and one or more second channels, a channel selection portion for selecting one of the input channels, and analog-to-digital (A/D) converter for converting a signal input from a selected input channel and outputting a selection signal to the channel selection portion and a completion signal, wherein signal processing in the first peripheral circuit uses an A/D conversion result on a signal input from the one or more first channels, wherein signal processing in the second peripheral circuit uses an A/D conversion result on a signal input from the one or more second channels, wherein the conversion portion receives a scan conversion instruction from the central processing unit, sequentially selects a respective one of the input channels in accordance with a selection signal from the channel selection portion based on a specified selection order, and successively performs A/D conversion, and wherein when the conversion portion performs a scan conversion in response to the scan conversion instruction, the first peripheral circuit receives a conversion result of the one or more first channels in response to the selection signal identified completion of A/D conversion and the second peripheral circuit receives a conversion result of the one or more second channels in response to the selection signal identified completion of A/D conversion for all input channels. |