File tree 3 files changed +6
-6
lines changed
dspic33e-fft-dsplib/firmware/src/system_config/exp16
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
of an input signal and then the peak frequency is calculated.
15
15
*******************************************************************************/
16
16
/*******************************************************************************
17
- Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
17
+ Copyright (c) 2025 released Microchip Technology Inc. All rights reserved.
18
18
19
19
Microchip licenses to you the right to use, modify, copy and distribute
20
20
Software only when embedded on a Microchip microcontroller or digital signal
@@ -178,7 +178,7 @@ int main(void)
178
178
VectorMax (FFT_BLOCK_LENGTH /2 , output , & peakFrequencyBin );
179
179
180
180
/* Compute the frequency (in Hz) of the largest spectral component */
181
- peakFrequency = peakFrequencyBin * (SAMPLING_RATE /FFT_BLOCK_LENGTH );
181
+ peakFrequency = ( uint32_t ) peakFrequencyBin * (( float ) SAMPLING_RATE /FFT_BLOCK_LENGTH );
182
182
#ifdef TEST_MODE
183
183
while (1 )
184
184
{
Original file line number Diff line number Diff line change 14
14
of an input signal and then the peak frequency is calculated.
15
15
*******************************************************************************/
16
16
/*******************************************************************************
17
- Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
17
+ Copyright (c) 2025 released Microchip Technology Inc. All rights reserved.
18
18
19
19
Microchip licenses to you the right to use, modify, copy and distribute
20
20
Software only when embedded on a Microchip microcontroller or digital signal
@@ -182,7 +182,7 @@ int main(void)
182
182
VectorMax (FFT_BLOCK_LENGTH /2 , output , & peakFrequencyBin );
183
183
184
184
/* Compute the frequency (in Hz) of the largest spectral component */
185
- peakFrequency = peakFrequencyBin * (SAMPLING_RATE /FFT_BLOCK_LENGTH );
185
+ peakFrequency = ( uint32_t ) peakFrequencyBin * (( float ) SAMPLING_RATE /FFT_BLOCK_LENGTH );
186
186
187
187
#ifdef TEST_MODE
188
188
while (1 )
Original file line number Diff line number Diff line change 14
14
of an input signal and then the peak frequency is calculated.
15
15
*******************************************************************************/
16
16
/*******************************************************************************
17
- Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
17
+ Copyright (c) 2025 released Microchip Technology Inc. All rights reserved.
18
18
19
19
Microchip licenses to you the right to use, modify, copy and distribute
20
20
Software only when embedded on a Microchip microcontroller or digital signal
@@ -189,7 +189,7 @@ int main(void)
189
189
VectorMax (FFT_BLOCK_LENGTH /2 , output , & peakFrequencyBin );
190
190
191
191
/* Compute the frequency (in Hz) of the largest spectral component */
192
- peakFrequency = peakFrequencyBin * (SAMPLING_RATE /FFT_BLOCK_LENGTH );
192
+ peakFrequency = ( uint32_t ) peakFrequencyBin * (( float ) SAMPLING_RATE /FFT_BLOCK_LENGTH );
193
193
194
194
#ifdef TEST_MODE
195
195
while (1 )
You can’t perform that action at this time.
0 commit comments