完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
所有的,在过去的4个月里,我一直在努力使PIC32 MZEFX版本与DAC芯片接口,并使音频工作正常。使用MaqAddioOHiHiRes示例,我们中的几个人试图找出为什么在I2S DMA ISR中称为SycCrrCh的过程。这个过程被称为2000次关闭,然后迫使SPI模块关闭,然后迫使SS线(LRCK,Word时钟,无论你想调用它)到0或1取决于采样率。首先,ISR与I2S馈送不同步,因此在ISR SE中随机地强制该状态。疯狂,真的不需要。其次,评论似乎表明,有一个启动问题的SS线和正确的极性关于正确引用左或右通道。评论说,更好的是,但2000似乎疯狂。此外,无论是PIC32 MX270和PIC32 MX470产品,我开发,从来没有任何问题的字时钟线,我们有超过100K的产品在该领域。同样,对于所有寄存器的比特指定是相同的,因此我只能猜测在PIC32 MZ中这个模块的IP是相同的。当然,我们都知道,SPI模块之外的一些东西会影响到这一点,因此会引起一个误报。沮丧的是,我采用了蓝牙开发板和PIC32 MZ2048 EF专用PIM,并进行了一些测试。真的,如果你把采样率设置为选中的,然后连续流,McAyAddiooHiSiRes工作得很好。问题是,除了iTunes以外的任何应用程序都不会改变采样率,而是将歌曲的速率重新调整到音频MIDI中所选的速率,问题真正开始了。使用比特完美、Audirva、AAMRA、Roon、J河甚至一些DoW SOF。TWALE改变采样率以匹配轨道的采样率,下面的问题将发生:嗡嗡无音频,嗡嗡启动,然后同步到帧,然后音频,根本没有音频,最后应用程序崩溃和重新启动。在飞行中的变化,并设置和保持这种方式。任何一个做过任何类型的音频的人都知道这不是真的。所以我正试图挽救这个产品,并且很快就要把PIC32 MZ(奴隶)从DAC(Master)中赶走,但是我认为从选择和帧同步控制(参见SPI/I2S模块框图中的图1)被打破和R。同样的问题也会反过来发生。但我稍后再给你答复。我的另一个问题是…在31位-gt;24中有框架细节,并强迫这些可能的帮助修正这个尚未被发现的勘误表吗?谢谢,戈登
以上来自于百度翻译 以下为原文 All, For the last 4 months I have been trying to get the PIC32MZ EFx versions to interface to a DAC chip and get audio to work correctly. Using the mac_audio_hi_res example there were several of us trying to figure out why there was this procedure in the I2S DMA ISR called syncLRClock. This procedure called 2000 times then turned off was forcing the SPI module off then forcing the SS line (LRCLK, word clock what ever you want to call it) to either a 0 or a 1 depending on sample rate. First the ISR is not synchronous with the I2S feed so forcing this state randomly during an ISR seemed crazy and really not required. Secondly the comments seemed to indicate that there was a startup problem with the SS line and correct polarity with regard to correctly referencing the Left or Right channel. The comments said more is better, but 2000 seems crazy. Furthermore with both the PIC32MX270 and PIC32MX470 products that I developed, never was there any problem with the word clock line and we have over 100K products in the field. Also the bit designations for all the registers are identical and therefore I can only guess that the IP for this module in the PIC32MZ is the same. Of course we all know that something outside of the SPI module can be effecting this and therefore an errata can be caused. Frustrated I took the Bluetooth development board and the PIC32MZ2048EF specialized PIM and did some testing. Really if you set the sample rate to anything selected and then stream continuously the mac_audio_hi_res worked pretty well. The problem is using any application other than iTunes which does not change the sample rate on the fly, but which resamples the rate of the song to the selected rate in Audio Midi, the problems really started to mount. Using Bit Perfect, Audirvana, Amarra, Roon, J River and even some of the DAW software which changes sample rates to match the sample rate of the track the following problems would happen: Buzz-no audio, Buzz start then sync to frames then audio, no audio at all and finally the application crashes and restarts. Asking corporate about this they assumed that the sample rate never changes on the fly and is set and stays that way. Well anyone who has done audio of any kind knows that is not true. So I am trying to salvage this product and will be trying to drive the PIC32MZ (SLAVE) from the DAC (MASTER) soon, but I think the Slave Select and Frame Sync Control (see Figure 1 in the SPI/I2S module block diagram) is broken and really the same problem is going to happen in reverse. But I will get back to you later. My other question is this... There is framing details in bits 31->24 and would forcing these possible help fix this errata that has not been discovered yet? Thanks, Gordon |
|
相关推荐
5个回答
|
|
更新,似乎帧同步控制有点关闭这些芯片。虽然在SPIxCON寄存器中没有正确设置SSN,但在和声库中有一个错误,我可以得到从属模式。它被设置为0,禁用PIN SS的字时钟使用,并设置为GPIO。无论如何,它工作,我可以切换采样率为一段时间,然后它基本上失去它,它再次成为噪音箱。看起来是在帧同步控制中可能会受到热的影响。我在96MHz运行这个漂亮的光,MaqAdioOothiHiRes运行在192MHz。我运行应用程序大约10分钟左右,它开始拧紧。我把电源从电源上拔了回来,问题马上就来了。所以可能是热相关的,谢谢,戈登
以上来自于百度翻译 以下为原文 Gang, Update seems like the Frame Sync Control is a bit off on these chips. I am able to get SLAVE mode working though there is an error in the Harmony Libraries as SSEN is not set correctly in the SPIxCON register. It is set to 0 which disables the word clock usage of the pin SS and sets that to GPIO. Anyway it works and I can switch sample rates for awhile then it just basically losses it and it becomes a noise box again. Looks to be something in the Frame Sync Control that is effected maybe with heat. I am running this pretty light at 96Mhz, the mac_audio_hi_res runs at 192Mhz. I ran the application for about 10 minutes or so and it started to screw up. I removed the product from power plugged it back in and the problem was immediate. So probably heat related. Thanks, Gordon |
|
|
|
非常糟糕的消息。我们正在等待Microchip的响应。我找不到PIC32 MZ的任何替代方案:-USB HSS与PHY-I2S中的BID一起使用50MHz时钟-I2S,外部参考时钟为JAREKCPS。我的技术支持案例还没有答案。
以上来自于百度翻译 以下为原文 Very bad news for me.sad: We are waiting for the response from Microchip. I can not find any alternatives for PIC32MZ with: - USB HS with buid-in PHY - I2S with 50MHz clock - I2S with external reference clock Regards JarekC PS. I stil haven't any answer for my technical support case. |
|
|
|
Jarek,对我来说,这完全是浪费了几个月的工作!!!!我发了一封电子邮件给我当地的分部,我们一直在和公司和编写代码的工程师一起工作。我几乎所有的电子邮件都是与公司相关的电子邮件。首先要知道SPI速度有一个ELAX处理器限制到25MHz的勘误表。它在勘误表数据表中,但没有别的。但实际上我认为这可能是我所看到的总体问题。我用MaqAdioooHiHiRes的代码,在他们的评估板上设置了所有的测试,并显示了问题。我只打算使用这个部分,直到我没有运行的样本率(24.566MHz),只要你不改变采样率。我船上有49152MHz和45.1584MHz的时钟,所以你会尝试让这个工作到768千赫采样率?如果你PM我,我可以为其他可能对你有用的部分提出建议。我真的很失望Microchip处理这个问题的方式。在一次电话会议上,一位工程师真的不尊重我,我不得不说。真的????嘿,这是你的产品,你的软件,它不起作用。无论如何,它看起来不像微芯片对商业音频产品感兴趣,所以不要期望从他们那里得到任何回应。谢谢,戈登。
以上来自于百度翻译 以下为原文 Jarek, Well for me it's been a total waste of months of work!!! I sent an email to my local branch, we have been working with corporate and the engineers who wrote the code. I pretty much have all the emails for anyone at corporate related to this. First do know that there is an errata for the SPI speed that limits EFx processors to 25MHz. It's in the errata data sheet, but nothing else. But actually I think this maybe the overall problem with what I am seeing. I laid out all the testing on their evaluation board with unaltered code from the mac_audio_hi_res and showed the problems. I was only going to use the part to 384Khz which I had running (24.576Mhz) as long as you don't change sample rates. I have both 49.152Mhz and 45.1584MHz clocks on board. So you were going to try and get this to work to 768KHz sample rate? If you PM me I can make suggestions for other parts that may work for you. I am actually really frustrated with the way Microchip handled this. In a conference call one of the engineers was really disrespectful of me and what I had to say. Really??? Hey it's your product, your software and it doesn't work. Anyway it does not look like Microchip is interested in commercial audio products so don't expect any response back from them. Thanks, Gordon |
|
|
|
嗨,你在PIC32 MX项目中使用了和声吗?在新的和声2.06“释放笔记”:MaqAddiooHiHiRes演示:不改变采样率在音频播放,但它意味着什么重放?当I2S IE启用时,当I2S启用且FIFO不为空时,当AppDATA活动界面AdTeNeSeTeTe= APPUSUBSSPACKERY PARBACKIX立体声?关于JAREKC
以上来自于百度翻译 以下为原文 Hi, Did you use Harmony in the project with PIC32MX ? In new Harmony 2.06 "Release note": mac_audio_hi_res Demonstration: •Do not change the sample rate during audio playback But what does it mean during playback? - when I2S ie enabled - when I2S is enabled and FIFO is not empty - when appData.activeInterfaceAlternateSetting = APP_USB_SPEAKER_PLAYBACK_STEREO? Regards JarekC |
|
|
|
Jarek,好的,他们最终测试了它,并发现它失败并杀死了应用程序。好的,这里有……所以我有BT DEV工具包,包括ECx和EFX版本的PIC32 MZ。在我的产品上工作了四个月(其中3个试图解决采样率变化的问题)之后,我认为最好的办法是通过硬件和软件不受影响地把它吸引到微芯片上。我既有TEKTRONIX I2S模块,也有棱镜DSTITEII和几种USB协议。分析器。我可以在链中的任何地方验证数据。当然,如果你使用音频MIDI(应用程序/实用程序)设置采样率,然后断电并上电DEV板,这意味着MACO将在插入到设定速率后立即设置采样率,然后运行iTunes,然后iTunes W。Microchip的开发团队是如何在18个月前写下这一点的。所以他们知道这个问题。如果你使用Audirva、AAMRA、鲁恩、位完美、分贝、J河、纯音乐或任何与采样率匹配的DAW软件,那么输出通常会被完全损坏或者应用程序崩溃并重新启动并重新枚举。我把所有的数据和测试结果发送给我当地的FAE。然后我在Chandler和Microchip召开了一个电话会议,他们说这是唯一可行的方法。我说,我们一直使用PIC32 MX(PIC32 MX270和PIC32 MX470)这样的方式,在过去的2年中,有超过100K的客户。在那一刻,我被称为说谎者,有问题的工程师离开了电话会议。他们显然认为MX和MZ以相同的方式工作,而它们不这样。事实上,MX和MZ寄存器之间找不到任何差异。当然,假设在2X的频率(勘误表指出当前25MHz最大)时,新的EF系列出来,并有一些修复的I2C速度。但是坦率地说…如果I2S在改变采样率时不起作用。这对我来说是一个要求,对于任何商业音频回放或录制设备来说,正如我在其他帖子中所说的,我花了20个多小时转换应用程序,使得PIC32 MZ1024EF处理器是一个奴隶,而我的ESS技术DAC芯片就是主人。我真的很高兴当这工作了最初的10分钟,然后似乎PIC32 MZ丢失了位时钟和字时钟的边缘,声音变得模糊,然后完全死亡。这可能是在测试中错过的,因为MaqAdioooHiSyRes是以一个采样率测试的。如果你使用PIC32 MZ的SPI部分,那么你可能是很好的,因为你没有改变时钟速度,并且可能保持固定。我仍然认为,这应该写在所有PIC32 MZ处理器的勘误表数据表中。我和其他公司有过相同的经历。我并不真的想回到XMOS公司,但看起来我可能不得不这么做。谢谢,戈登。
以上来自于百度翻译 以下为原文 Jarek, Ok so they finnally tested this and sees that it fails and kills the application. Ok here goes... So I have the BT Dev kit with both the ECx and EFx versions of the PIC32MZ. After working on my product for four months (3 of which trying to fix the sample rate change problem) I figure the best way to bring this to the attention of Microchip was via their hardware and their software untouched. I have both a Tektronix I2S module and Prism dScopeIII and several USB protocol analyzers. I can verify data at pretty much anywhere in the chain. Sure enough if you set the sample rate using Audio Midi (Applications/Utilities) and then power down and power up the Dev board, meaning that macOS will set the sample rate immediately when plugged into the set rate and run iTunes then iTunes will resample what ever the track is to that sample rate. This is how the development team at Microchip wrote this over 18 months ago. So they knew about this problem then. If you use Audirvana, Amarra, Roon, Bit Perfect, Decibel, J River, Pure Music or any of the DAW software which matches the sample rate to the track sample rate then the output is usually totally corrupted or the application crashes and reboots and re-enumerates. I sent all this data and test results to my local FAE. I then had a conference call with Microchip in Chandler and they stated that this is the only way it works. I said that we have been using the PIC32MX (PIC32MX270 and PIC32MX470) that way for the last 2 years, have over 100K customers. I was called a liar at that point and the engineer in question left the conference call. They obviously thought that the MX and MZ worked the same way and they don't. The fact is, I cannot find any differences between the MX and MZ registers. Sure it is suppose to work at 2x the frequency (errata of course points out currently 25MHZ max) when the new EF series comes out and some fixes to the I2C speeds. But frankly... if the I2S doesn't work when changing sample rate on the fly. Then it's pretty much dead to me as this is a requirement for any commercial Audio playback or record device. As I said in the other posts I did spend more than 20 hours converting the application so that the PIC32MZ1024EF processor was a SLAVE and my ESS Technologies DAC chip was the master. I was really happy when this worked for the first 10 minutes, then it seemed as though the PIC32MZ was missing the edge of the bit clock and the word clock and the sound got fuzzy and then died completely. This was probably missed in testing because the mac_audio_hi_res was tested at one sample rate. If your using the SPI portion of the PIC32MZ then you are probably fine as you are not changing the CLOCK speed and probably keep that fixed. Oh well, boat load of time wasted. I am still arguing that this should be written up in the errata data sheet for all PIC32MZ processors. I have been in contact with other companies experiencing the same issue. I didn't really want to go back to XMOS but it looks as though I might have to. Thanks, Gordon |
|
|
|
只有小组成员才能发言,加入小组>>
5253 浏览 9 评论
2038 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3219 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2267 浏览 5 评论
792浏览 1评论
686浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
617浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
686浏览 0评论
586浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 08:57 , Processed in 1.383615 second(s), Total 56, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号