- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Trying to interface digital mic with PSoC 4 and send decibel level to UART. The datasheet and examples are not geared to the PSoC 4 - i.e. no rx/tx DMA etc.
Video and datasheet www.cypress.com/
Example project but w/ PSoC 5LP www.element14.com/community/thread/28830/l/psoc-4-pioneer-kit-community-project102-usb-audio-using-t...
I have available both a PDM mic as well as an i2c mic store.invensense.com/datasheets/invensense/INMP441.pdf and can use either. Just assuming the i2s mic will be easier?
One issue seems to be the clock - max audio sampling in the i2c - PSoC 4 seems to be 96kHZ while microphone min. is .5 MHz. Seems like this can't be right or I am missing something?
Any similar projects or guidance on the clock issue (or other thoughts) are much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The sample rate of your I2C-mic will be quite less than 0.5Msps, I presume that it will be in the order of 20ksps, 40ksps when stereo.
The PSoC4 I2C max bit rate is 1Mbps which will be something like 100ksps (8 bit samples), quite sufficent for your application to sample and calculate min/max.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The mike interface specs -
At 24 bit 20 Khz spec makes sense.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob and Dana - Thanks for the help. I still can't get it to work. I've attached a file. If you could take a look I'd greatly appreciate.
Thanks
D.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does your project started working? i am also facing the same issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your response but since i am using i2s (SPH0645LM4H-B) microphone so this will not work here, i found out that code given by the d.k..willardson is of my use. but can we really do that thing without using DMAs. and if yes what is the problem with code given above?