PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello,
I have a quick question on DMA to Control Register setup. I've gone through the "Getting Started with DMA" guide, and there is certainly a lot to take in.
What I'm trying to do, mostly for the sake of understanding DMA usage within PSoC 3, is use a pushbutton which requests a DMA update from SRAM (let's assume there's "myVar", a uint8 variable which holds the data) to the value of an 8 bit control register. That is, "myVar"'s value is written via DMA to a control register upon a button press.
Based on my reading of the documents, I feel (and please correct me if I'm wrong) this can be accomplished by using a level (or edge) sensitive 'drq'. But I'm a little stuck on how to proceed from here (or maybe it's the lack of coffee) in code.
You guys at Cypress have, in my opinion, great reference documents for this platform (though I usually find that the most useful ones are the hardest to find!), and I am wondering if anyone can provide some guidance/point me to an app note that addresses my simple use case. Most of the examples seem to use arrays and multi-byte bursts.
I've included some relevant DMA code, which does not update the control register in hardware, and if anyone's up to the challenge of looking it over for blatant errors, your feedback would be much appreciated.
Thanks, and looking forward to figuring out how to harness the true power of this platform,
Some snippets of attempted code:
//Globally declared uint8 myVar = 0u; #define do_dma_BYTES_PER_BURST 1 #define do_dma_REQUEST_PER_BURST 1 #define do_dma_SRC_BASE (CYDEV_SRAM_BASE) #define do_dma_DST_BASE (CYDEV_PERIPH_BASE) //Snippets pulled from int main() do_dma_Chan = do_dma_DmaInitialize(do_dma_BYTES_PER_BURST, do_dma_REQUEST_PER_BURST, HI16(do_dma_SRC_BASE), HI16(do_dma_DST_BASE)); do_dma_TD[0] = CyDmaTdAllocate(); CyDmaTdSetConfiguration(do_dma_TD[0], 1, CY_DMA_DISABLE_TD, 0); CyDmaTdSetAddress(do_dma_TD[0], LO16((uint32)&myVar), LO16((uint32)Control_Reg_1_Control_PTR)); CyDmaChSetInitialTd(do_dma_Chan, do_dma_TD[0]); CyDmaChEnable(do_dma_Chan, 1);Show Less
Hello,
I have a question about the reset pins on a CY8C5467AXI-LP108 device.
From this datasheet (page 7) the JTAG connector uses the nTRST pin (P1.5). But regarding to the CY8C54LP family datasheet XRES and nTREST are used (page 60). Regarding the applicationnote AN61290 only the XRES is being used.
I would like to program and debug the device with the MiniProg3.
Do I need the trace connections for debugging using breakpoints and ISRs?
Best regards
Show LessHow to configure the number of data bits of the SPIM through Software?
I want to change the 11 bits of Manchester data to 10 bits or 9 bits only. how can I do this through Firmware?
Show LessI'm currently using the dma to transfer 8-bit data to a control register that my custom component reads. I'd like to take advantage of the 16-bit dma spoke and do 16-bit transfers. I can't just increase the the number of bits in my control register to 16 (that would be to easy). How do I do 16-bit dma transfers to my custom component?
Show LessHi,
I had built a project and when I trying to compile it Opamp 1 and Opamp 2 is OK but Opamp 3 and Opamp 4 is unrecognized ...
I am attaching the schematics... please help...
Show LessHi everyone and again I hope some of you can help me with that:
I am trying to save some variables when Vdda and /or Vddd drop down 2.95 V.
I have tried to adapt the example "D" on AN 54460 for Low voltage interrupt.
I have created a small project to test the LVI feature.
To verify that the ISR is working I have set the variable "Led_On" inside the ISR.
Later in the main loop, when Vddd or Vdda drop below the threshold, I should see the led connected to the Pin 1(2) turn on a some fraction of second .
That not happen, I do not know what is missing.
Thank you very much for any help.
Show LessI want to use the psoc1 usbfs model to design the Joystick ,but I want to the PC to identificate the Joystick when the PC restart and when the PC shutdown and turn on,just like the mouse is not subject to the computer restart and when the PC shutdown and turn on。Where is the problem in the project.
Show LessHi All;
I 'm using cirrus logic energy measurement ic. I success to communicate but I have to convert 24bit hexadecimal value to decimal value. I 'm using cy8c29466 ic. how can I convert it?
best regards,
Show LessHi everyone,
I'm working with a CY8C5888LTI-LP097 (PSOC5LP).
I'm want to program it with JTAG so I connected the 10 pins as my attachment. I use the [1.2] (pin13) XRES instead of pin10 but I can connect it with a strap if needed.
Now my problem is that when I connected JTAG from miniprog 3 with the parameters in attachment when I try to upload the program, the target doesn't appear, I have to clic on Port Acquire, and after 30second, it appears with a second target where it is write :"(Test Controller)" as you can see on attachment. And finally i can program the PSOC.
Why my target doesn't appear directly?!?
I tryed to enable the "Use Optional XRES" but its doesn't work better...
Should I use PullUp on Xres or Not?
When I try to program it with SWD( 10pin) the target is directly find but the programming doesn't work.
Thank you very much, I read lot of topic and subjects and I still confuse about using XRES...
Show Less