Fujitsu FR81S Manual Do Utilizador

Página de 2342
CHAPTER 49: BUS DIAGNOSIS FUNCTION 
 
 
5. Operation 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : BUS DIAGNOSIS FUNCTION 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
22 
5.2.  Test function 
This section explains the test function of bus diagnosis function. 
In this function, a pseudo error can be generated if bus diagnosis test register (BUSTSTR) is used.   
The key code processing is necessary for being set to this register. 
If "00", "01", "10", and "11" are not continuously written in the KEY1 and KEY0 bits, the register is not set. 
At this time, if it is not the same value as four times, the register value is not updated as for the written data.   
However, even if the bus diagnosis test register is set, the pseudo data error is not detected for ALL "1" the 
reading data. 
Note: 
ALL "1" read might detect the error according to the register setting and the access requirement.     
Please refer to " Data error setting (Notes)" for details. 
Only when the test function is used, the foregoing limitation is applied. 
 
  Bus error setting 
A pseudo error can be caused for the set bus by setting "1" to RBEN, APBEN, and AHBEN.   
However, it is necessary to set "1" to either of AEN[3:0], CEN or DEN[3:0] bit at the same time. 
  Address error setting 
The pseudo address error can be caused in the responding address bit by setting "1" to AEN[3:0].   
However, it is necessary to set "1" to either of RBEN, APBEN or AHBEN bit at the same time. 
  Control error setting 
The pseudo control error can be caused in the control bit by setting "1" to CEN.   
However, it is necessary to set "1" to either of RBEN, APBEN or AHBEN bit at the same time. 
  Data error setting 
The pseudo data error can be caused in the responding data bit by setting "1" to DEN[3:0].   
However, it is necessary to set "1" to either of RBEN, APBEN or AHBEN bit at the same time. 
Notes: 
  Set only the bit corresponding to the access size when you set DEN[3:0].   
When DEN[3:0] is set to the bit that doesn't respond to the access size, the error of the data not accessed 
might be detected. 
  When you set DEN[3:0] to the bit that doesn't respond to the access size, it might be different from the 
method of detecting the data error described in " Data error detection". 
 
  Bus diagnosis pseudo error generation procedure 
The procedure that causes a pseudo error is the following. 
1.  Set the type of the diagnosed bus error by bus diagnosis test register (BUSTSTR). 
 In the key code, the same error setting is written four continuous times, "00" → "01" → "10" → "11". 
2.  Access the resource in the diagnosis area with the bus that does the pseudo error setting. 
 When you set the address error and the control error (When you do not set the data error.) 
 A pseudo error occurs by accessing the resource in the diagnosis area. 
 When you set the data error 
 A pseudo error occurs by accessing the resource in the diagnosis area by the access size 
corresponding to DEN[3:0]. (See note in " Data error setting." 
MB91520 Series
MN705-00010-1v0-E
2115