ST72F521M9T6 STMicroelectronics, ST72F521M9T6 Datasheet - Page 154

IC MCU 8BIT 60K FLASH 80-TQFP

ST72F521M9T6

Manufacturer Part Number
ST72F521M9T6
Description
IC MCU 8BIT 60K FLASH 80-TQFP
Manufacturer
STMicroelectronics
Series
ST7r
Datasheet

Specifications of ST72F521M9T6

Core Processor
ST7
Core Size
8-Bit
Speed
8MHz
Connectivity
CAN, LINSCI, SPI
Peripherals
LVD, POR, PWM, WDT
Number Of I /o
64
Program Memory Size
60KB (60K x 8)
Program Memory Type
FLASH
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
3.8 V ~ 5.5 V
Data Converters
A/D 16x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TQFP, 80-VQFP
Processor Series
ST72F5x
Core
ST7
Data Bus Width
8 bit
Data Ram Size
2048 B
Interface Type
CAN, I2C, SCI, SPI
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
64
Number Of Timers
5
Operating Supply Voltage
3.8 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit
For Use With
497-6453 - BOARD EVAL BASED ON ST7LNBX497-5046 - KIT TOOL FOR ST7/UPSD/STR7 MCU
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
Other names
497-8244
ST72F521M9T6

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST72F521M9T6
Manufacturer:
ST
Quantity:
37 800
Part Number:
ST72F521M9T6
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST72F521M9T6
Manufacturer:
ST
0
Part Number:
ST72F521M9T6TR
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST72F521M9T6TR
Manufacturer:
ST
0
ST72F521, ST72521B
CONTROLLER AREA NETWORK (Cont’d)
Workaround Description
The bus-off entry works correctly in almost all cas-
es, only when REC is greater than 127 a bus-off
will not be recognized by pCAN. Therefore the
pCAN bus-off signalling (BOFF) is still used but it
needs to be complemented by monitoring TEC by
software.
To detect the bus-off condition by software the ap-
plication has to monitor the value of the TEC reg-
ister periodically. An overflow signals a bus-off
condition. When a bus-off condition has been de-
tected the application must execute the following
sequence to recover from bus-off properly: the ap-
plication stops pCAN by clearing the RUN bit in the
CANCSR register resets all pending transmission
by clearing the LOCK bit in the BCSR register and
starts it again by setting the RUN bit.
To detect the bus-off condition properly, the TEC
monitoring period must be lower than the time be-
tween two overflows. As the problem only occurs
when pCAN is in Error Passive State (REC > 127)
pCAN will continuously try to send a SOF followed
by an Error Passive Flag and a Suspend Trans-
mission. This leads to 26 (1 + 6 + 8 + 3 + 8) bit
times. Each time TEC is incremented by 8, hence
154/215
*
/* INITIALISATION
/************************************************/
unsigned char TECReg=0; //Previous value of TEC
unsigned char BusOffFlag=0; //Set to one if bus-off
/************************************************/
/* BUS-OFF MONITORING SEQUENCE
/************************************************/
if( (CANCSR & BOFF) || ( CANTECR+1 < TECReg) )
{
}
else
{
}
***********************************************/
TECReg = CANTECR;
BusOffFlag = 1;
to reach 256 the sequence must be executed 32
times. Under these conditions the shortest se-
quence leading to a TEC overflow lasts 832 bit
times.
Depending on the baudrate the application will
have to adapt the monitoring period, for example
at 500kbps the period must be less than 1600us.
The ‘C’ code below shows an implementation ex-
ample of the monitoring sequence. This code is
called periodically as described above.
To detect the overflow, the test condition must
take into account that TEC might also have been
decremented due to a successful transmission. So
an overflow condition is detected:
IF the current TEC value is lower than the previous
TEC value
AND the difference is greater than the number of
possible successful transmissions during the mon-
itoring period.
In the example above, one message can be sent,
therefore one is added to CANTECR.

Related parts for ST72F521M9T6