ADC & DAC - LPC23xx
ADC & DAC - LPC23xx
ADC & DAC - LPC23xx
Aa
8channels
for Analog
In
OFF By default I
Set bit 8 In PCONP
23
1 I 1
24
16
3
15 8
7 O
PCLA 48 12MHz
4
value in UK divide 260
11Am
In min
Turn on Abc in Peon
Pevey and now
turn it on in control neg
I set PDN 1
to start of Conn
Based on capture
Based on match
3
Larimorechannel
Status register
Indicates whether the conversion occurred or not
overrun status
off
conversion status veg g
To
when conversion is done a corresponding channel
bit is set to 1 Indicating that louver is done
and data is available in data hey
Overton
overrun status bit is sets it overrun happens
A DOG DR
ivey
global data register
Bit 26 24 mentions the currently converted
channel
general method 5
write a O'into the
general vector address
evey
How to handle Conversion using into
example read A to D controller every 10 seconds
2 to do this
ways
Wayt Analog Yp connected to Cho
Program the timer for 10 see intr
Laymen
Every co see timer intr will be raised
Conversion
of conversion
by software n'start
Isr enable soc using Software mean
write into scare bits of AldCtrl neg
END
when conversion completes intr Is
generated
As part of ADC intr service routine
read data
veg
conversion complete check status
neg
G Bit31
a
status 21
do
read elata
when doing something additional to conversion
use this method
way 2 Program timer for internal compare for
10sec
elegant not enable timer interrupt
generated data is
btw Aref to Vref
Always ON