mirror of
https://github.com/marqs85/ossc.git
synced 2024-12-31 22:31:25 +00:00
pcm1862: fix ADC clkdiv value and use low-latency IIR filter
This commit is contained in:
parent
9a2c9bb020
commit
1cc42b808d
File diff suppressed because it is too large
Load Diff
@ -56,5 +56,11 @@ int pcm1862_init()
|
||||
//pcm1862_writereg(0x00, 0xff);
|
||||
pcm1862_writereg(PCM1862_CLKCONFIG, 0x90);
|
||||
|
||||
pcm1862_writereg(PCM1862_DSP1_CLKDIV, 0x00);
|
||||
pcm1862_writereg(PCM1862_DSP2_CLKDIV, 0x00);
|
||||
pcm1862_writereg(PCM1862_ADC_CLKDIV, 0x03);
|
||||
pcm1862_writereg(PCM1862_PLLCONFIG, 0x00);
|
||||
pcm1862_writereg(PCM1862_DSP_CTRL, 0x30);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -47,5 +47,12 @@
|
||||
#define PCM1862_DIN_RESAMPLE 0x1B
|
||||
|
||||
#define PCM1862_CLKCONFIG 0x20
|
||||
#define PCM1862_DSP1_CLKDIV 0x21
|
||||
#define PCM1862_DSP2_CLKDIV 0x22
|
||||
#define PCM1862_ADC_CLKDIV 0x23
|
||||
|
||||
#define PCM1862_PLLCONFIG 0x28
|
||||
|
||||
#define PCM1862_DSP_CTRL 0x71
|
||||
|
||||
#endif /* PCM1862_REGS_H_ */
|
||||
|
@ -2,8 +2,8 @@
|
||||
<sch:Settings xmlns:sch="http://www.altera.com/embeddedsw/bsp/schema">
|
||||
<BspType>hal</BspType>
|
||||
<BspVersion>default</BspVersion>
|
||||
<BspGeneratedTimeStamp>Dec 7, 2017 9:34:03 PM</BspGeneratedTimeStamp>
|
||||
<BspGeneratedUnixTimeStamp>1512675243152</BspGeneratedUnixTimeStamp>
|
||||
<BspGeneratedTimeStamp>Feb 22, 2018 9:52:06 PM</BspGeneratedTimeStamp>
|
||||
<BspGeneratedUnixTimeStamp>1519329126233</BspGeneratedUnixTimeStamp>
|
||||
<BspGeneratedLocation>./</BspGeneratedLocation>
|
||||
<BspSettingsFile>settings.bsp</BspSettingsFile>
|
||||
<SopcDesignFile>../../sys.sopcinfo</SopcDesignFile>
|
||||
|
Loading…
Reference in New Issue
Block a user