PSoC™ 4 Forum Discussions
Hi,
I'm using PSOC4 on my project.
I have a DC motor connected to a PWM (through H bridge) and the motor axle is connected to encoder that is counting the motor steps.
I want to stop a motor on exact place using the quadrature decoder peripheral.
I tried to configure the encoder to set an interrupt on specific value (not 0x0 or 0xFFFF) using the TCPWM_CNT1_CC register, but I don't get the desired interrupt.
Is it possible to get such an interrupt on quadrature decoder mode?
Thanks,
Barak.
Show LessI am trying to check the contents of the user programmable flash on startup as a basic integrity check.
The plan was to perform a 32-bit checksum on the contents and compare the 2 LS Bytes to the value that is supposed to be stored in 0x90300000 (This is entered during the programming phase). When I try to read this location using a normal flash pointer read, the system crashes as I am obviously performing an illegal operation.
1) Doe anyone know how I should go about this operation OR
2) Does the processor check the contents of the flash on startup and I don't need to do this
Many thanks
Simon
Show LessI built the BOARD which contains the attached wiring diagram
If I connect only the CYBLE-022001-00 module to the programming connector
CN8, the component is programmed.
If I connect the whole circuit, the module is not programmed.
I ask if anyone can give me directions to find the problem.
Thanks
Sergio
Show Less
hello,
My device holds a Bootloader that loads first and then loads the Bootloadable.
My goal is to create a Bootloader that can determine if the BootLoadable is "compatible" without the need to load it.
In case the Bootloader detects the BootLoadable is "incompatible" it will not load the BootLoadable and will wait for a correct BootLoadable to be sent.
For that, I would like to know :
How can I place some parameter in the Bootloadable, and indicate the Bootloader to read that specific parameter/location?
Show LessBelow, the same sentences are written in English and Japanese.
・English
I want to identify the cause of the error when a reception error occurs in LIN Slave.
(Possible error cause → bit error, checksum error, parity error, sync data error, bus error,etc)
If you check which API and register, can you check the cause of the error?
・日本語(Japanese)
LIN Slaveで受信エラーが発生した際に、エラー要因を特定したいです。
(考えられるエラー要因→ビットエラー、チェックサムエラー、パリティエラー、Syncデータエラー、バスエラー等)
どのAPI,レジスタを確認すればエラー要因確認できますか?
Hey,
I began to design my proximity sensor with the example with Capsense CSD v2.60 but it seems that the Capsense v6 more recent.
Then I wonder if it's better to use Capsense v6 or Capsense CSD and Why?
Is there any better performance?
I only need the self capacitance in my project.
Thank you,
Alex
Show LessTo install Psoc 4.2 creator, what to choose install with Custom, Remove, or Repair?
Is it normal to install everytime, or should the software stays on the computer?
The installed Psoc creator 4.2 is different than the tutorial on youtube?
Please help. Thank you
Show LessHello,
I am trying to program the CY8C4245 via SWD interface.
I implement it in accordance with the programming specifications document
https://www.cypress.com/file/136281/download
But I encountered a problem in the Acquisition sequence (figure 4-3 in the specs). The last step I am able to correctly do is the Check Test Mode, it returns correct value.
But when I try to do another step (Poll SROM_PRIVILIGED_BIT), the ACK of the second Read_DAP in this step always returns FAULT.
When I try to read CTRL/STAT register after this, it returns 0xF4000020, STICKYERR is set.
This happens always, it does not depend on the communication frequency used.
The CY8C4245 I communicate with is alone MCU soldered on a PCB with several decoupling capacitors only.
What could be wrong?
Show LessHI ,
I am trying to use Magsens to develop a linear position sensor. Since the Magsense does not support linear sition application, I have to decode the value of the raw count and apply it for linear position sensor. so my question is :
what is raw count? like is it the voltage amplitude of the LC tank or it is the inductance or current( because of the IDAC)? I am realy confused. As described in datasheet "The change in Vamp is proportional to the change in inductance seen at the LC tank circuit." then what is relation between Vamp and raw count?
Show LessI have an ADC SAR with two analog inputs:
- A slowly varying signal (its basically a 50Hz AC voltage that is always present on the relevant input) that I sample and calculate the RMS value for once every 10 seconds or so
- A rapid, randomly appearing impulse signal (its a voltage spike of around 5-20usec in duration) that I want to capture using the Limit Detect feature for that channel
What I want to be able to do is capture Signal 2 if/when it occurs, whilst still being able to measure Signal 1 at the defined periods I want to. The problem I appear to be having is that I have my ADC free-running to pick up Signal 2, but this is generating an endless series of EOS interrupts, which is causing my processor to go into a WDT reset as the code is just continuously servicing my ISR.
So, what I think I need to be able to do is disable EOS interrupts, but allow Limit Detect interrupts. But, my questions are:
- Is it possible to selectively disable particular ADC SAR interrupts from running my ISR?
- If I do disable EOS interrupts, how will this impact my ability to undertake measurements of Signal 1? I'm using the command: ADC_1_IsEndConversion(ADC_1_WAIT_FOR_RESULT);
to take samples of Signal 1, and from the looks of the function block for this, its relying on the EOS bit in the ADC SAR interrupt register to get set in order for it to work.
Thanks for your help
Cheers,
Mike
Show Less