- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DEAR
I have a project that use CY8C5668-LP034
I refer PioneerKit_P5LP_USB_Audio-master project that download form community
I have a question about PDM_CIC (Psoc Creator v2.2)
can we modify the ShiftCount and ShiftDircetion value in the c code
I need to modify the ShiftCount and ShiftDircetion value with GPIO input pin
james
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello James,
The shiftDirection and ShiftCount are declared as parameters in the verilog files. Parameters are constants which cannot be modified during run time.
In order to modify the value of ShiftCount and ShitDirection you can instantiate a control register in your design and assign its value to these.
You can then write to the Control Register in the C file.
A control register is writable by the CPU. Each of its 8 bits are available in the interconnect routing to control PLD operations or datapath functionality. Multiple control registers may be defined within a design but they will act independently.
Please refer to the component author guide (page 62) for the same: https://www.cypress.com/file/137436/download
You can also refer to the verilog file and C file of the I2S_v2_40 component attached below where a similar Control register Implementation has been done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello James,
The shiftDirection and ShiftCount are declared as parameters in the verilog files. Parameters are constants which cannot be modified during run time.
In order to modify the value of ShiftCount and ShitDirection you can instantiate a control register in your design and assign its value to these.
You can then write to the Control Register in the C file.
A control register is writable by the CPU. Each of its 8 bits are available in the interconnect routing to control PLD operations or datapath functionality. Multiple control registers may be defined within a design but they will act independently.
Please refer to the component author guide (page 62) for the same: https://www.cypress.com/file/137436/download
You can also refer to the verilog file and C file of the I2S_v2_40 component attached below where a similar Control register Implementation has been done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dear
ok
thanks
james