ST72561AR7 STMicroelectronics, ST72561AR7 Datasheet - Page 261

no-image

ST72561AR7

Manufacturer Part Number
ST72561AR7
Description
8-bit MCU
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72561AR7

Hdflash Endurance
100 cycles, data retention 40 years at 85°C
5 Power Saving Modes
Halt, Auto Wake Up From Halt, Active Halt, Wait and Slow
IMPORTANT NOTES (Cont’d)
Figure 154.LINSCI Interrupt Routine
16.1.6 TIMD set simultaneously with OC
interrupt
If the 16-bit timer is disabled at the same time the
output compare event occurs then the output com-
pare flag gets locked and cannot be cleared be-
fore the timer is enabled again.
Impact on the application: If output compare in-
terrupt is enabled, then the output compare flag
cannot be cleared in the timer interrupt routine.
Consequently the interrupt service routine is called
repeatedly and the application get stuck which
causes the watchdog reset if enabled by the appli-
cation.
Workaround: Disable the timer interrupt before
disabling the timer. Again while enabling, first ena-
ble the timer, then the timer interrupts.
Perform the following to disable the timer:
– TACR1 or TBCR1 = 0x00h; // Disable the com-
– TACSR | or TBCSR | = 0x40; // Disable the timer
– Perform the following to enable the timer again:
– TACSR & or TBCSR &= ~0x40; // Enable the tim-
– TACR1 or TBCR1 = 0x40; // Enable the compare
pare interrupt
er
interrupt
@interrupt void LINSCI_IT ( void ) /* LINSCI interrupt routine */
{
}
/* clear flags */
SCISR_buffer = SCISR;
SCIDR_buffer = SCIDR;
if ( SCISR_buffer & LHE )/* header error ? */
{
}
if (!LHLR)/* header time-out? */
{
}
{
}
if ( !(SCICR2 & RWU) )/* active mode ? */
SCISR;
SCIDR;/* Clear RDRF flag */
SCICR2 |= RWU;/* set mute mode */
SCISR;
SCIDR;/* Clear RDRF flag */
SCICR2 |= RWU;/* set mute mode */
_asm("rim");/* enable interrupts */
_asm("sim");/* disable interrupts */
16.1.7 CAN FIFO Corruption
The beCAN FIFO gets corrupted when a message
is received and simultaneously a message is re-
leased while FMP = 2. For details and a descrip-
tion of the workaround refer to
page
16.2 FLASH/FASTROM DEVICES ONLY
16.2.1 LINSCI Wrong Break Duration
SCI mode
A single break character is sent by setting and re-
setting the SBK bit in the SCICR2 register. In
some cases, the break character may have a long-
er 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 generate one break more than expect-
ed.
Occurrence
The occurrence of the problem is random and pro-
portional to the baud rate. With a transmit frequen-
cy
of
187.
19200
Example using Cosmic compiler syntax
baud
(f
CPU
Section 10.9.7.1 on
= 8 MHz
ST72561
261/265
and

Related parts for ST72561AR7