SPRAC94D September 2018 – March 2022 AFE030 , AFE031 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The resources consumed by the C2000 MCU when being used as an FSK receiver are listed in Table 5-5.
Resource Name | Type | Purpose | Usage/Restrictions |
---|---|---|---|
ADCINA | Module/IO | ADC input for sampling input signal | Restricted to ADC inputs that are available an accessible |
EPwm1 | Module | Triggers the interrupt for the signal sampling routine | Can be configured a number of ways to meet desired ISR frequency |
EPwm2 | Module | Triggers the interrupt for running the bit decision routine | Can be configured a number of ways to meet desired ISR frequency |
SPI | Module/IO | For accessing the AFE03x’s registers during initialization | Only needed for initialization for the RX solution |
CPU Timer 2 | Module | Can be used to create a timeout when no information has been received for a certain amount of time | ISR may have lower priority than other set ISRs |
The number of CPU cycles consumed by each fsk_corr_detect library function are listed in Table 5-6.
Function Name | Description | CPU Cycles | Type |
---|---|---|---|
FSK_CORR_DETECTOR_INIT | Initializes variables used by the FSK library, based off the frequency parameters the user sets within a fsk_corr_detector structure | 60 | Initialization |
FSK_CORR_DETECTOR_ RUN |
Performs necessary calculations on the sampled ADC values to demodulate the input signal | 59 | Run Time |
FSK_CORR_DETECTOR_ |
Performs the logic to decipher if a bit has been received | 134 | Run Time |
Packetize | Takes a received message data buffer and builds usable code words and packets | 1381 | Run Time |
The run-time CPU utilization of the software solution, when being used in its default state and receiving information specified in Table 4-1, can be calculated using the information in Table 5-7.
ISR/Function | Average Cycles | Frequency of Execution |
---|---|---|
ADC Sampling ISR | 74 | 300 kHz |
Bit-decision ISR | 175 | Approximately 586 Hz |
Packetization Function | 1381 | Approximately 1 Hz |
CPU Utilization Equation:
CPU Utilization = ((74*FS + 175*3*Fbit + 1381*FPacketization) / FCPU)*100%
CPU Utilization at F28379D's 200 MHz Clocking Frequency:
CPU Utilization =((74*300kHz + 175*586Hz + 1381*1Hz) / 200MHz)*100% = 11.15%