数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1335 数据表(PDF) 7 Page - STMicroelectronics

部件名 AN1335
功能描述  ST10F280 is a new member of ST10 family
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1335 数据表(HTML) 7 Page - STMicroelectronics

Back Button AN1335 Datasheet HTML 2Page - STMicroelectronics AN1335 Datasheet HTML 3Page - STMicroelectronics AN1335 Datasheet HTML 4Page - STMicroelectronics AN1335 Datasheet HTML 5Page - STMicroelectronics AN1335 Datasheet HTML 6Page - STMicroelectronics AN1335 Datasheet HTML 7Page - STMicroelectronics AN1335 Datasheet HTML 8Page - STMicroelectronics AN1335 Datasheet HTML 9Page - STMicroelectronics AN1335 Datasheet HTML 10Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 7 / 10 page
background image
AN1335 - APPLICATION NOTE
7/10
8.2.1 - ADC Software Driver Considerations
The handling of bit XADCMUX shall be done preferably by a unique piece of software.
If ADC automatic scan is used (with or without PECC) to fill-up a table of conversion channels, it shall be
the software driver responsibility to handle this bit and generate the correct address to write to this table).
8.3 - XTimer
Xtimer, which allows to activate an external pin, which in the end can trigger an ADC conversion request
can also be fully supported by the emulator.
Allthough it is fully supported, some care is necessary :
The conversion-injection-request will be triggered without knowing the value of bit XADCMUX.
Practically, in engine control application, this bit may change dynamically and ensuring a predefined value
during injection request may be difficult.
As a result, it is advised to duplicate to 2 analog channels the analog signal to compare on injection
request.
Note:
It is better to allocate P5.15 and P10.15 to the channel to convert on injection request : this allow
to optimise the number of channels to scan during the auto-scan of the ADC channels.
8.3.1 - Manual Injection Conversion Request
Injection conversions can be initiated by software rather than Xtimer. This feature is already existing on
ST10 and requires to write to bit INJ_REQ in ADCON register.
8.3.2 - Proposal of ADC Driver When Converting All Channels Regularly
This proposal is showing how to configure ST10F280 when scanning regularly all channels and storing
conversion results with PECC :
ADC scan start routine : unchanged
PECC : end-of-count interrupt routine :
– Must be changed to distinguish between 1st half of scan and second half of scan (new variable needed).
– To summarize :
– Check bit XADCMUX,
– If 1st half (assume XADCMUX=0), change bit XADCMUX, start another scan,
– If 2nd half : re-init PECC for xx channels (1 to 16), change bit XADCMUX.
– Here, we assume that ADC scan are initiated by another routine (either timer based, ...).
ADC + PECC init routine : to allow more room for the table of conversion results.
8.3.3 - Example
The example hereafter illustrates how to generate of X_ADC_INJ output for the channel injection mode of
the A/D converter. It both describes the software and hardware configurations. XTIMER is used as a
counter that is clocked with XCLK divided by 8 and that counts from 0 (start value) to F (end value). It is
configured with "continue" and "reload start value" mode.



Html Pages

1 2 3 4 5 6 7 8 9 10


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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