background image

Implementation

Configure and control the LEDs

Four LEDs are configured to be switched on/off by the 

controlling port pins 

to 

which they are connected using methods from the iLLD header 

IfxPort.h

.

In the setup phase, the port pins of the LEDs have to be 

configured as push-

pull output 

using the function 

IfxPort_setPinMode()

.

If CRC calculation errors occur, the related LEDs are 

switched on 

using the 

function 

IfxPort_setPinLow()

.

6

2019-10-17

Copyright © Infineon Technologies AG 2019. All rights reserved.

Summary of Contents for FCE CRC 1

Page 1: ...AURIX TC2xx Microcontroller Training V1 0 0 FCE_CRC_1 FCE CRC calculation Please read the Important Notice and Warnings at the end of this document...

Page 2: ...ws how to configure the FCE to calculate CRC of a known message with all supported algorithms CRC32 CRC16 and CRC8 The FCE interrupt is enabled to report execution errors Any CRC kernel calculation er...

Page 3: ...odule supported algorithms IEEE 802 3 Ethernet CRC32 polynomial CCITT CRC16 polynomial SAE J1850 CRC8 polynomial CRC algorithms are used to calculate message signatures that can be used to check messa...

Page 4: ...Hardware setup This code example has been developed for the board KIT_AURIX_TC297_TFT_BC Step 4 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved...

Page 5: ...rc_Demo_Run which calculates CRC32 algorithm using IfxFce_Crc_calculateCrc32 CRC16 algorithm using IfxFce_Crc_calculateCrc16 CRC8 algorithm using IfxFce_Crc_calculateCrc8 All functions needed for usin...

Page 6: ...ed using methods from the iLLD header IfxPort h In the setup phase the port pins of the LEDs have to be configured as push pull output using the function IfxPort_setPinMode If CRC calculation errors o...

Page 7: ...ilation and flashing the device observe the LEDs behavior All LEDs 1 should be switched Off if all CRC algorithms calculation are correct Result Expected 1 7 2019 10 17 Copyright Infineon Technologies...

Page 8: ...D109 switches On Could be tested by setting the macro CRC16_WRONG_CHECK_VAL to 1 CRC8 calculation error D110 switches On Could be tested by setting the macro CRC8_WRONG_CHECK_VAL to 1 All macros menti...

Page 9: ...www infineon com aurix expert training AURIX Development Studio is available online https www infineon com aurixdevelopmentstudio Use the Import function to get access to more code examples For questi...

Page 10: ...ty of the product for the intended application and the completeness of the product information given in this document with respect to such application For further information on the product technology...

Reviews: