Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all 764 articles
Browse latest View live

PSoC UAB Components for CY8C4A CoProcessor?

$
0
0

I was really excited to crack open my pioneer kit and dig into CY8C4A, but unfortunately a little underwhelmed. I'm seeing things like "14-bit incremental delta-sigma ADC" in the co-processor datasheet, but really no UAB based components in creator...anyone else notice this? Am I missing the boat or are these things just nonexistent at this point? Is the part just still way ahead of the PSoC Creator tools?

With UDB there's a nice system in place to build custom components with verilog - anything like this coming down the pipe for the UAB?

 


Bluetooth with A2DP

$
0
0

Hi everyone,

   I like the PSoC software and I am considering using cypress components just because of it. 

   I wonder if there is a Psoc 4 or 5 with standard Bluetooth, or if there is a external component library I can import in the PSoC software?

   If any of  the above is feasible at the moment, could you tell me what would be a feasible approach to have a embedded device to have A2DP and SPP simultaneously?  

   Thank you for your time and advice,

 

Filipe

PSoC4 confidential - Unofficial PSoC4 manual/FAQ/errata/rumor & wild guess repository

PSoC Production programming using J-Link

$
0
0

Hello,

I'm trying to find information on how to use SEGGER J-Link for production programming a PSoC CY8C4247 device.

I have found the CY8C42xx Programming Specifications document (http://www.cypress.com/file/125271/download) but it seems to be more low-level than I need.

 

Is there any documentation on how to use J-Link for erasing/flashing a PSoC?

The reason we won't be using the MiniProg3 is that it's not supported on Linux, which is what we use in production.

Or is there another, better, option?

Thanks, Jacob

Measure battery level

$
0
0

I am trying to implement battery measurment by connecting vref to SAR_ADC internally but get un expected results.

I must connect externally between VREF pin to P1[7].

I have 1uF on VREF pin and 1uF on P1[7], i used the firmware code inorder to connect VREF and delay for a few miliseconds, then reconnect VDD. The results i get are wrong until i connect externally between VREF and P1[7].

I am using PSOC 4 BLE?

 

I2C Master status

$
0
0

Hello

I read the return value of SCB_I2CMasterStatus() after executing SCB_I2CMasterReadBuf(). The value is infinitely 0x04, SCB_I2C_MSTAT_XFER_INP. Its mean are "Transfer in progress". It seems that Slave returns Nak.

So even if I try to send next transaction by SCB_I2CMasterWriteBuf(), I2C does not work anything.

Do you think why this is happned?

 

Thanks.

PSoC4: UART problem

$
0
0

Dear All,

I am trying to develop MODBUS SLAVE on PSoC4 board. I have written simple program initially to transmit whatever received. Code works when I type on Hyper terminal nicely. But when I send MODBUS frame through Modbus testing software (I tried two diff. s/w), software gets hang.

when I shorts two pins (RX- P0_4, Tx- P0_5) on PSoC 5LP I/O Header (J8) , board transmits whatever I types on Hyperterinal. But Modbus testing softwares gets hang.. Testing software works fine on PC UART ports.

What could be the problem ?

Thanx in advance

Ravi

 

 

 

BLE LocalName

$
0
0

Hello guys,

I need your help again :)

I configured my PSoC 4200 BLE as I²C to BLE Bridge as shown in the PSoC 100 projects in 100 day (No.35).
The project works great, my data sent by an Arduino Uno to the PSoC.
With the Cypress BLE App I can read the Characteristics and the value.

But I want to display the value without reading the characteristics(a scanning client should be able to read the value just by scanning).
I heard that it is possible to directly transfer the value as the name of the device.
So I want to let a variable be the "Local Name" of the device.

I know that there is the API " CyBle_GapSetLocalName" but how do I get the I²C value in this command?

 


CY8CKIT-041 - PSoC4 S-Series pioneer KIT - Problems with PWM

3-Wire SPI, Bidirectional, Half-Duplex Issue

$
0
0

I am having an issue with an attempt to get 3-Wire SPI working.  First the vitals:

uC: CYBC4247LQI-BL483

IDE: PSoC Creator v4.0 Update 1 (4.0.0.432)

SPI Component: SPIM_1 created with the SPI Master Bidirecional mode Macro (v 2.50)

Device being communicated with: STMicro LSM303C (Datasheet)

 

Issue:

After I use SPIM_1_TxDisable() to disable the SPI output from the PSoC device sdat line, I then call a dummy write to generate the required clock cycles to cause the slave device to shift its information out of its registers while also maintaining the CS line low.  What I am finding when I watch the signal buss with a logic analyzer is that the dummy write that I do is actually not just generating a dummy value, but seems to be being sent to the RX buffer when I call SPIM_1_ReadRxData() to pull the returned data out of the read buffer it actually seems to be pulling the value from 2 previous reads (still, though being the dummy value).

I have checked this with two different logic analyzers to confirm what is going on.  When I use the logic analyzer I see that actually the value that is being transmitted back appears to be just a repeat of what ever the dummy write byte is.  For tracking purposes, I am using just a repeat of the register value that I was trying to read.  So on the logic analyzer, I am getting a straight 1 for 1 correlation to the register that I am trying to read being pinged back to me as the "read" value, but when I am using the debugging register view, I see that what I pull from the register as the read value was the register of the slave device that I was trying to read two reads ago. 

In trying to solve this, I though that perhaps in the 4 byte min sided buffer that some values were behaving strangely, so I call both SPIM_1_ClearRxBuffer() and SPIM_1_ClearFIFO().  These did not change the behavior of what was happening.  I currently cannot upload the entire project, but I will see if I can extract the key parts into a new project and then upload it.  I have inserted some of the code that I am using that is causing the issue as well as a screen shot of the logic analyzer capture.

I have also uploaded screen shots of the SPIM component configuration for clarity till I can break this out into a separate project that I can upload.

 

for(;;)
{

    AccelRead();
    CyDelay(1);

}

 

uint8_t ReadSPI(uint8_t regValue)
{
    uint8_t returnVal;
    
    SPIM_1_ClearRxBuffer();
    SPIM_1_ClearTxBuffer();
    SPIM_1_TxEnable();
    SPIM_1_WriteTxData((regValue | 0b10000000));
   

    //Begin the read process by disabling the Transmit, but write dummy value to cycle the clock

    SPIM_1_TxDisable();
    SPIM_1_ClearRxBuffer();
    SPIM_1_ClearFIFO();
    SPIM_1_WriteTxData((regValue | 0b10000000));
    returnVal = SPIM_1_ReadRxData();
    SPIM_1_TxEnable();
     
    return returnVal;
}

 

double AccelRead(void)
{
    volatile int16_t valueX;
    volatile int16_t valueY;
    volatile int16_t valueZ;
    volatile double magnitude;
    volatile uint8_t whoAmI;
    
    //TODO Need to add register information and function definitions
    valueX = ReadSPI(0x28);
    CyDelay(1);
    valueX = valueX << 8 | ReadSPI(0x29);
    CyDelay(1);
    
    valueY = ReadSPI(0x2A);
    CyDelay(1);
    valueY = valueY << 8 | ReadSPI(0x2B);
    CyDelay(1);
    
    valueZ = ReadSPI(0x2C);
    CyDelay(1);
    valueZ = valueZ << 8 | ReadSPI(0x2D);
    CyDelay(1);
    
    whoAmI = ReadSPI(0b00001111);
    
    magnitude = sqrt(valueX * valueX + valueY * valueY + valueZ * valueZ);
    return 0;
}

 

psoc4 powered by UART?

$
0
0

Hi,

I am using a CY8CKIT-049-42xx, powered by a MINIPROG-3 at 3.3V.

I have an UART with TX and RX that is connected to a Raspberry Pi (3.3V). TX is on P1.5, RX is on P1.4.

As soon as I connect the RX and TX lines (and 0V) to the Raspberry, the PSoC gets powered over these lines, even if the MINIPROG is not connected. I have not yet checked if the firmware is really up and running, at least both LEDs on the CY8CKIT are on.

When I connect the MINIPROG-3 and start debugging, the program runs fine until a character is received from the PSOC. In this case the debugger steps into UART_1_GetRxBufferSize() and never returns. It is not possible to halt the software, only stop debugging works.

The UART is configured with 16 bytes receive buffer and 16 bytes send buffer, interrupts are enabled.

Two questions:

How can I avoid the PSoC to be powered over the UART connection?

Why does the firmware get stuck in UART_1_GetRxBufferSize()?

Any ideas are welcome.

what to change?

$
0
0

Hello professionals,

I have a question on FOC sensorless Bldc control. Can anyone please tell me what do we need to change in the program or in the parameters if I want to get output of the motor with low speed and with high torque?

 

Thanks

CY8CKIT-042 warp synthesis problem

$
0
0

Hello, I'm using CY8CKIT-042 PSoC Kit for my project but now when I open Psoc Creator it is showing me continuously one error i.e. warp synthesis not found. I'm attaching error image with this. So please help me to solve this error I even  tried to uninstall and reinstall the software but till now no luck.

Attachments: 

psoc creator hx711

$
0
0

hi every one :)

am using psoc creator , try to implement hx711 in my soft 

any idea please !, all the tuto in internet use arduino for this device, there is no soft with a psoc creator 

thank u for your attention and have a good day

CapSense_P4_v3_10

$
0
0

I am working on CapSense_P4_v3_10 with CY8C4045-AZI controller for Touch sensing. I am getting problem with Touch sense detecting . I am attaching my code and Sensor settings with this mail. > After code loading I am getting all touch sensor detection. After a while suddenly one of the button was not detecting . I thought it was sensitity problem and changing sensor settings, after that also I am not getting its data. Please find attached code for your reference. Please suggest me solution for the above problem..

Attachments: 

switch case in switch case

$
0
0

bonjour tous le monde es possible de faire un switch case a l’intérieur d'un switch case ??

je travail sur un soft "commande d'une carte cypress psoc 4 a partir d'un port usb ou j'envoie des commande" donc quand je commande par exemple une fonction a l’intérieur de cette fonction je dois encore envoyer un autre code (sous commande) d'où l’intérêt d'un autre switch case

CY8CKIT-049-42xx cant program

$
0
0

I programmed my tiny dev board for the first time using the bootloader host and now the board blinks fast when i plug it in. I cant seem to program it any more either.  I followed the instructions on the PDF too. 

CY8CKIT-042 Tuner&I2C Control Panel Communication Power OFF

$
0
0

Hi,

I use the CY8C4245AXI-483(CY8CKIT-042 Board) design the CapSense design. Then using the MiniProg3 as bridge tool to debug it in CapSense Tuner GUI.
using the MiniProg3 supply power to kit board.

The debug steps as below:
1. Using 5 pins to connect with CY8CKIT-042 board. I2C SCL; I2C SDA; XRES; VTARG; GND

2. set up the CapSense Tuner communication parameters (keep corresponding with EZI2C component).
I2C address:0x08;      Sub-address:1-Byte;     I2C Speed:400khz;      Power: 5.0v (CY8CKIT-042 set the jump J9 to select 5v)

3. Click connect. connecting successfully, then click start, there can see the 4850mv power on in the Tuner GUI and the POWER led light on in the CY8CKIT-042 borad.

4. Touch the CapSense, observe the result. It can work normally about 10s, the POWER led light off automatic.

5. Change the Tuner communication parameters
I2C address:0x08;      Sub-address:1-Byte;     I2C Speed:400khz;      Power: 3.3v (CY8CKIT-042 set the jump J9 to select 3.3v)
It can work well.

I want to know that the CapSense Tuner tool whether can work with 5v? And MiniProg3 supply 5v power whether ok?
But I used the KitProg to debug it . it's OK no matter what 3.3v or 5.0v.

What's more, I used MiniProg3 supply for kit board and communication with I2C Control Panel tool. It can work normally for a while, then the kit board power off automatic.

Excepting reply.

Joan

 

 

 

 

 

Problems to refresh TCPWM Compare Value

$
0
0

Hello,

I use a TCPWM to drive the Power Source of an LED. Period is 20Khz.

I only change the Compare (Duty) Value of the PWM to drive the LED power.

Every time I put a new Value in the Compare Register the LED flickers after write  one time.

Illustration Sample:

if  (power>100)  { duty--; TCPWM_WriteCompare(duty); }

else { duty++; TCPWM_WriteCompare(duty); }

Seems to be a restart of the PWM each Time when write Compare Register. I need the change only when Period restarts not inside the Period.

I see there are an WriteCompareBuf but if I write there nothing happent in PWM Signal (swap + SetCompareSwap enabled)

Regards,

Michael

CY8CKIT-037 with stepper motor / wrong recommendation in user guide?

$
0
0

Hi,

 

I want to drive the -037 board with a stepper motor. The kits user manual states a stepper motor type 42BYGH403AA or similar. I tried to find a datasheet for comparison with my stepper motor, but it seems that a datasheet for the 42B... motor is rare.

Anyway, I found a site containing information about several types of 42B's, and the type 403 seems to be a 2.4V type. So, now I'm confused: if I understand the -037 kit schematic correctly, the motor will be driven with Vin, which is the input voltage on the power connectors J7/J8 and should be between 7-70V.

Anyone can confirm the 42B..403 type (and can provide a datasheet), or is this really the wrong type number?

 

Regards

Viewing all 764 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>