Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

TMP89FS60 Datasheet(PDF) 314 Page - Toshiba Semiconductor

Part # TMP89FS60
Description  8 Bit Microcontroller
PDF  410 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TOSHIBA [Toshiba Semiconductor]
Direct Link  http://www.semicon.toshiba.co.jp/eng
Logo TOSHIBA - Toshiba Semiconductor

TMP89FS60 Datasheet(HTML) 314 Page - Toshiba Semiconductor

Back Button TMP89FS60 Datasheet HTML 310Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 311Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 312Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 313Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 314Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 315Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 316Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 317Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 318Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 314 / 410 page
background image
Page 300
20. 10-bit AD Converter (ADC)
20.4 Register Setting
TMP89FS60
RA001
20.4
Register Setting
1. Set the AD converter control register 1 (ADCCR1) as described below:
• From the AD input channel select (SAIN), select the channel in which AD conversion is to be per-
formed.
• Set the analog input control (AINEN) to "Analog input enable".
• At AMD, specify the AD operating mode (single or repeat mode).
2. Set the AD converter control register 2 (ADCCR2) as described below:
• At the AD conversion time (ACK), specify the AD conversion time. For information on how to specify
the conversion time, refer to the AD converter control register 2 and Table 20-1.
3. After the above two steps are completed, set "1" on the AD conversion start (ADRS) of the AD converter
control register 1 (ADCCR1), and AD conversion starts immediately if single mode is selected.
4. As AD conversion is finished, the AD conversion end flag (EOCF) of the AD converter control register 2
(ADCCR2) is set to "1", the AD conversion result is stored in the AD converted value registers (ADCDRH
and ADCDRL), and the INTADC interrupt request is generated.
5. After the conversion result is read from the AD converted value register (ADCDRH), EOCF is cleared to
"0". EOCF will also be cleared to "0" if AD conversion is performed once again before reading the AD con-
verted value register (ADCDRH). In this case, the previous conversion result is retained until AD conver-
sion is finished.
20.5 Starting STOP/IDLE0/SLOW Modes
If STOP/IDLE0/SLOW mode is started, registers ADCCR1<ADRS, AMD, AINEN>, ADCCR2<EOCF, ADBF>,
ADCDRL and ADCDRH are initialized to "0". If any of these modes is started during AD conversion, AD conver-
sion is suspended, and the AD converter stops (registers are likewise initialized). When restored from STOP/ IDLE0/
SLOW mode, AD conversion is not automatically restarted. Therefore, registers must be reconfigured as necessary.
If STOP/IDLE0/SLOW mode is started during AD conversion, analog reference voltage is automatically discon-
nected and, therefore, there is no possibility of current flowing into the analog reference voltage.
Example: After selecting the conversion time 19.5
µs at 8 MHz and the analog input channel AIN3 pin, perform AD con-
version once. After checking EOCF, store the conversion result in the HL register. The operation mode is single
mode.
: (Port setting)
; Before setting AD converter registers, make an appropriate port regis-
ter setting.(For further details, refer to the section that describes I/O
ports.)
LD
(ADCCR1), 0y00110011
; Select AIN3.
LD
(ADCCR2), 0y00000011
; Select conversion time (156/fcgck) and operation mode.
SET
(ADCCR1). 7
; ADRS = 1 (AD conversion start)
SLOOP :
TEST
(ADCCR2). 7
; EOCF = 1 ?
JRS
T, SLOOP
LD
HL, (ADCDRL)
; Read result data



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com