English
Language : 

COP8AME9_14 Datasheet, PDF (66/102 Pages) Texas Instruments – COP8AME9 8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEPROM, Temperature Sensor, 10-Bit A/D and Brownout Reset
COP8AME9, COP8ANE9
SNOS930F – MARCH 2001 – REVISED MARCH 2013
www.ti.com
20. If the three most significant bits of the result are all ones, go to step 22.
– Else, if the three most significant bits are all zeros, go to step 21.
– Else, goto step 29.
21. Set ATRMN6 = 0
22. First time through loop, set ATRMN5=1
– Second time through loop, set ATRMN4=1
– Third time through loop, set ATRMN3=1
– Fourth time through loop, set ATRMN2=1
– Fifth time through loop, set ATRMN1=1
– Sixth time through loop, set ATRMN0=1
– Seventh time through loop, go to step 29.
23. Wait 1.05 ms for the amplifier to settle.
24. Load 01h into ENAD to perform an A/D Conversion.
25. Store the result registers.
26. If the three most significant bits of the result are all ones and ATRMN6 = 1, go to step 22.
– Else, if the three most significant bits are all zeros and ATRMN6 = 1, go to step 27.
– Else, if the three most significant bits are all ones and ATRMN6 = 0, go to step 27.
– Else, if the three most significant bits are all zeros and ATRMN6 = 0, go to step 22.
– Go to step 29.
27. First time through loop, set ATRMP5 = 0
– Second time through loop, set ATRMP4 = 0
– Third time through loop, set ATRMP3 = 0
– Fourth time through loop, set ATRMP4 = 0
– Fifth time through loop, set ATRMP1 = 0
– Sixth time through loop, set ATRMP0 = 0
28. Go to step 22.
29. Reset CALP bit = 0, but leave ATRMP6:0 unchanged.
30. Reset the TRIM bit to 0.
A/D OPERATION
The A/D conversion is completed within fifteen A/D converter clocks. The A/D Converter interface works as
follows. Setting the ADBSY bit in the A/D control register ENAD initiates an A/D conversion. The conversion
sequence starts at the beginning of the write to ENAD operation which sets ADBSY, thus powering up the A/D.
At the first edge of the Converter clock following the write operation, the sample signal turns on for three clock
cycles. At the end of the conversion, the internal conversion complete signal will clear the ADBSY bit and power
down the A/D. The A/D 10-bit result is immediately loaded into the A/D result registers (ADRSTH and ADRSTL)
upon completion during TCSTART. This prevents transient data (resulting from the A/D writing a new result over
an old one) being read from ADRSLT.
Inadvertent changes to the ENAD register during conversion are prevented by the control logic of the A/D. Any
attempt to write any bit of the ENAD Register except ADBSY, while ADBSY is a one, is ignored. ADBSY must be
cleared either by completion of an A/D conversion or by the user before the prescaler, conversion mode or
channel select values can be changed. After stopping the current conversion, the user can load different values
for the prescaler, conversion mode or channel select and start a new conversion in one instruction.
Prescaler
The A/D Converter (A/D) contains a prescaler option that allows two different clock selections. The A/D clock
frequency is equal to MCLK divided by the prescaler value. Note that the prescaler value must be chosen such
that the A/D clock falls within the specified range. The maximum A/D frequency is 1.67 MHz. This equates to a
600 ns A/D clock cycle.
66
Submit Documentation Feedback
Copyright © 2001–2013, Texas Instruments Incorporated
Product Folder Links: COP8AME9 COP8ANE9