Operation Adc With Interrupt; Registers (Base Address : 0X4100_0000); Adc Control Register (Adc_Ctr) - Wiznet W7500 Reference Manual

W7500 series
Hide thumbs Also See for W7500:
Table of Contents

Advertisement

Operation ADC with interrupt

Figure 21 shows the flowchart of ADC operation with interrupt.
Operation is almost the same as the non-interrupt mode except checking INT register bit to
know when enabling interrupt mask bit and conversion is completed.
Figure 21. The ADC operation flowchart with interrupt

20.4 Registers (Base address : 0x4100_0000)

ADC control register (ADC_CTR)

Address offset : 0x000
Reset value : 0x0000_0003
W7500x Reference Manual Version1.1.0
START
ADC Power On
(PWD = 0)
Interrupt MASK enable
(MASK = 1)
Select Channel
(ADC_CHSEL)
ADC Start
(ADC_SRT)
Wait until
Interrupt occured
Read ADC conversion data
(ADC_DATA)
YES
ADC again?
NO
ADC Power off
(PWD = 1)
183 / 399

Advertisement

Table of Contents
loading

This manual is also suitable for:

W7500p

Table of Contents