Check-in [8a4059fa2f]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Widen CICREG for safety with current bit depth computed at exactly 16 bits. Note that this reduced the per-interrupt time from 3.33 to 3.02 us in the fast case.
Timelines: family | ancestors | descendants | both | better-CIC
Files: files | file ages | folders
SHA1: 8a4059fa2fcbc7e7167cafc152fe5858df8a6510
User & Date: rberteig 2015-07-17 18:00:05
Context
2015-07-21
22:54
Get the manifest into the project. Leaf check-in: de135a2a11 user: rberteig tags: better-CIC
2015-07-17
18:00
Widen CICREG for safety with current bit depth computed at exactly 16 bits. Note that this reduced the per-interrupt time from 3.33 to 3.02 us in the fast case. check-in: 8a4059fa2f user: rberteig tags: better-CIC
17:34
Move definitions for the EEK pin and hobby servo pulse pin to slpear.h where they belong. Correct implementation of pdmspi_pulse() for 500 kHz MCLK. check-in: 5a7ff9e994 user: rberteig tags: better-CIC
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to LPCWorkspace/PDMSPL/src/pdmspi.c.

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
};
uint8_t TESTSHIFT=3;
#define TESTMASK (((sizeof testsamples) / (sizeof testsamples[0]))-1)
#endif

/* CIC filter state */
#define CIC2_R 8
#ifdef TWOSTEPCIC
typedef int16_t CICREG;
#else
typedef int32_t CICREG;
#endif
CICREG s2_sum1 = 0;
CICREG s2_comb1_1 = 0;
CICREG s2_comb1_2 = 0;
CICREG s2_sum2 = 0;
CICREG s2_comb2_1 = 0;
CICREG s2_comb2_2 = 0;
CICREG s2_sum3 = 0;







<
<
<

<







31
32
33
34
35
36
37



38

39
40
41
42
43
44
45
};
uint8_t TESTSHIFT=3;
#define TESTMASK (((sizeof testsamples) / (sizeof testsamples[0]))-1)
#endif

/* CIC filter state */
#define CIC2_R 8



typedef int32_t CICREG;

CICREG s2_sum1 = 0;
CICREG s2_comb1_1 = 0;
CICREG s2_comb1_2 = 0;
CICREG s2_sum2 = 0;
CICREG s2_comb2_1 = 0;
CICREG s2_comb2_2 = 0;
CICREG s2_sum3 = 0;