SPMA078 March 2021 TM4C1290NCPDT , TM4C1290NCPDT , TM4C1290NCZAD , TM4C1290NCZAD , TM4C1292NCPDT , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1297NCZAD , TM4C1297NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129CNCPDT , TM4C129CNCPDT , TM4C129CNCZAD , TM4C129CNCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
This example uses the FEE driver to maintain two counters. Upon reset, the count values are checked and the values are output on the virtual serial port attached to UART0. Then LEDs D1 and D2 are alternately illuminated while the status of user switches SW1 and SW2 are read. While SW1 is depressed, the counter in dataset zero will be incremented and the new value will be output on the serial port. Likewise, when SW2 is depressed, the counter in dataset one will be incremented and the new value will be output on the serial port.
In each dataset the counters are implemented with four copies of the count. Two copies in clear form, and two copies stored in one’s complement. Each time a dataset is read, the CRC is checked and all four copies are checked to verify they contain the same count. Any errors are reported out the serial port.