======================================================================
            CRC16/Checksum Project for 96348rw Series                   
======================================================================

              (C) Fujitsu Semiconductor Europe GmbH                  
                                                                     
The following software deliverable is intended for and must only be  
used for reference and in an evaluation laboratory environment.      
It is provided on an as-is basis without charge and is subject to    
alterations.                                                         
It is the user's obligation to fully test the software in its        
environment and to ensure proper functionality, qualification and    
compliance with component specifications.                            
                                                                     
In the event the software deliverable includes the use of open       
source components, the provisions of the governing open source       
license agreement shall apply with respect to such software          
deliverable.                                                         
FSEU does not warrant that the deliverables do not infringe any      
third party intellectual property right (IPR). In the event that     
the deliverables infringe a third party IPR it is the sole           
responsibility of the customer to obtain necessary licenses to       
continue the usage of the deliverable.                               
                                                                     
To the maximum extent permitted by applicable law FSEU disclaims all 
warranties, whether express or implied, in particular, but not       
limited to, warranties of merchantability and fitness for a          
particular purpose for which the deliverable is not designated.      
                                                                     
To the maximum extent permitted by applicable law, FSEU's liability  
is restricted to intention and gross negligence.                     
FSEU is not liable for consequential damages.                        
                                                                     
(V1.4) 

======================================================================
History
Date        Ver     Author  Softune     Description
2010-03-19  1.0     PSt     V30L35      Initial version
2010-04-16  1.1     MWi     V30L35      CRC_calculator.exe bug fix
2010-08-11  2.0     MWi     V30L36      completely revised version
======================================================================

Scope:
------
This project uses a CRC16/Checksum algorithm to check Flash contents
in areas (Flash blocks) the user defines.
The CRC16/Checksum result is also a content of the Flash memeory and
its address can also be defined by the user. It may be included in the
Flash blocks to be checked, because the address of the CRC16/Checksum
result is automatically excluded.
After calculation during runtime of the application the result of the
CRC16/Checksum is compared to the CRC16 in the Flash. A match is
displayed by a 'running' LED on a FLASH-CAN-100P-340 board. Otherwise
all LEDs are blinking together.

All user definitions can be done in 'Crc16Utility.h'.


Preparations:
-------------
This project comes together with a procedure file, which patches the
built MHX file using an external CRC16-MHX DOS tool with the CRC16 result
at the user defined Flash address for the simulator/emulator.
The parameters of the DOS tool *must* fit to the user settings in
'Crc16Utility.h'. Please see menu:
Project -> Customize Build -> Converter-After: Option.

The file "opt.txt" contains the options for the "CRC_calculator.exe" tool.


Note:
-----
Please also read application note
  mcu-an-300253-e-vXX-16fx_crc_calculation_for_flash_memory.pdf
for further details.


Clock settings:
---------------
Crystal:  4 MHz
CLKB:    56 MHz
CLKP1:   56 MHz
CLKP2:   14 MHz
