Hello DSPC
I have a schematic for audio playback at fs48kHz.
I added PulseGen module and GPIO module here.
When I checked with the developed hardware, the GPIO pulses are 2/3 of the setting.
Audio playback is normal.
When I run Native, I can see normal pulses.
What needs to be reviewed to make the pulses work correctly?
Best regards
AWE Designer v.8.D.1.1
For BSP ADSP-21569_SOM
PulseGen Properties
period: 60ms
onTime: 30ms
GPIO output for development hardware
period: 40ms
onTime: 20ms
1:22pm
Most likely, the block size of your embedded target is not the same as the PC running in Native mode.
Set the sampleRate argument of your PulseGen module to: $TOP_SAMPLERATE/$TOP_BLOCKSIZE and it should adjust automatically.
Let me know if you continue to face any issue.
Gary
2:27am
Thanks Gary for your answer.
It seems that the GPIO module will give an error if BlockSize=1.
Do you know of a workaround?
Thanks.
------------------------------
AWE ERROR
Routing error at module input pin 'GPIO1.in1'
Block sizes did not validate
------------------------------
10:13am
Hi Naomichi san, that is strange. I just made the change I suggested to you on your layout and it works OK here (in Native mode). I've attached the update AWD as well. Does it work OK in Native mode but not on your board or does it fail in both places?
Gary
1:17am
Hi Gary,
I understood.
If I add a module with BlockSize=1 to a system with BlockSize=32, the SampleRate should also be 1/32.
I am now able to output Pulse at the expected frequency without any problems.
My mistake about the BlockSize error.
I mistakenly thought that the BlockSize needed to be adjusted.
Thank you very much.
Naomichi