Auto Page CPX-3600 Specifikace Strana 239

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 243
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 238
ST72321xx-Auto Known limitations
Doc ID 13829 Rev 1 239/243
22.1.7 SCI wrong break duration
Description
A single break character is sent by setting and resetting the SBK bit in the SCICR2 register.
In some cases, the break character may have a longer duration than expected:
20 bits instead of 10 bits if M = 0
22 bits instead of 11 bits if M = 1
In the same way, as long as the SBK bit is set, break characters are sent to the TDO pin.
This may lead to generating one break more than expected.
Occurrence
The occurrence of the problem is random and proportional to the baud rate. With a transmit
frequency of 19200 baud (f
CPU
= 8 MHz and SCIBRR = 0xC9), the wrong break duration
occurrence is around 1%.
Workaround
If this wrong duration is not compliant with the communication protocol in the application,
software can request that an Idle line be generated before the break character. In this case,
the break duration is always correct assuming the application is not doing anything between
the idle and the break. This can be ensured by temporarily disabling interrupts.
The exact sequence is:
Disable interrupts
Reset and Set TE (IDLE request)
Set and Reset SBK (Break Request)
Re-enable interrupts
22.1.8 16-bit timer PWM mode
In PWM mode, the first PWM pulse is missed after writing the value FFFCh in the OC1R
register (OC1HR, OC1LR). It leads to either full or no PWM during a period, depending on
the OLVL1 and OLVL2 settings.
Zobrazit stránku 238
1 2 ... 234 235 236 237 238 239 240 241 242 243

Komentáře k této Příručce

Žádné komentáře