Electronic Components Datasheet Search
  English  ▼

X  

AN1131 Datasheet(PDF) 14 Page - STMicroelectronics

Part # AN1131
Description  This application note provides information
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1131 Datasheet(HTML) 14 Page - STMicroelectronics

Back Button AN1131 Datasheet HTML 9Page - STMicroelectronics AN1131 Datasheet HTML 10Page - STMicroelectronics AN1131 Datasheet HTML 11Page - STMicroelectronics AN1131 Datasheet HTML 12Page - STMicroelectronics AN1131 Datasheet HTML 13Page - STMicroelectronics AN1131 Datasheet HTML 14Page - STMicroelectronics AN1131 Datasheet HTML 15Page - STMicroelectronics AN1131 Datasheet HTML 16Page - STMicroelectronics AN1131 Datasheet HTML 17Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 14 / 17 page
background image
14/17
MIGRATING APPLICATIONS FROM ST72511/311/314/124 TO ST72521/321/324
In the ST72521/321R, 321/324J PWM mode, any new values written in the four OC1R and
OC2R registers are taken into account only at the end of the PWM period (OC2 event) to avoid
spikes on the PWM output.
Note: Any modification on the OC1R and OC2R registers must be done just after the OC2
event (using the ICF1 interrupt routine for example).
7.1.2 One Pulse Mode
To be used more efficiently, the One Pulse mode sequence of the ST72511/311R, 314N, 314/
124J has been improved in the ST72521/321R, 321/324J. When the ICAP1 event occurs (on
falling or rising edge) the following sequence occurs:
– 1. IC1R is loaded with the value of the counter when the event occurred (not FFFDh as in
the ST72511/311R, 314N, 314/124J)
– 2. The counter is immediately reset to FFFCh (not at the end like in the ST72511/311R,
314N, 314/124J)
– 3. OLVL2 is applied to OCMP1 pin if OC1E=1
– 4. ICF1 is set
7.1.3 ST72324J Timer A Limitations
If the Timer A IC2/OC2 functions are required when migrating from ST72314/124J then you
should migrate to the ST72321J. Timer A on the ST72324 only has one IC and one OC func-
tion. This has the following impact on the application software:
– The OC2HR and OC2LR registers are reserved (see Note 2).
– The IC2HR and IC2LR registers are reserved (see Note 2).
– The FOLV2 and OLVL2 i control bits in the CR1 register must be kept cleared.
– The OC2E and IEDG2 control bits in the CR2 register must be kept cleared.
– The ICF2 and OCF2 flags must always be masked (meaningless).
– The PWM generated by timer A has a frequency given only by the timer overflow value
(FFFFh) and the prescaler ratio selected by the CR2 CC[1:0] control bits.
Notes:
1. Migration from the ST72314 to the ST72324 must take into account the discrepancy in Tim-
er A functionality between these two devices.
2. A dummy read to the OC2LR and IC2LR registers has to be performed at the end of the
Timer A interrupt routine.
7.2 SPI
7.2.1 Baud Rate
On the ST72521/321R, 321/324J the baud rate configurations are extended to fCPU/4 and
fCPU/32. The SPR2 bit in the SPICR register controls these new baud rates. To keep the SPI



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


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