Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1335 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN1335
Description  ST10F280 is a new member of ST10 family
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1335 Datasheet(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


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