PSoC™ 4 Forum Discussions
Hi,
I am developing a cnc controller using a CY8CKIT-049-41xx kit. For this I need to generate specific number of pulses of set pulse width (equal pulse widths no PWM), pulses for both X and Y axis is required.
The first approach I used consists of pulsing an output high and low, however I also want the kit to send back UART data to a PC. There must be no delays as this can affect the pulse motion.
Is this possible to do this using PWM or the Counter components, ?
My scheme is to do this...
I set the pulse widths, count values, then start the pulsing, since the main program loop is not involved in the actual pulsing I can send data to a PC via UART using the UART component
thanks
a
Show LessDevice: CyBle - 224116-01
Hello Guys,
The datasheet mentions that in order to turn the PA/LNA ON we need to write these set of instructions..
/* Enable the Skyworks SE2438T PA/LNA */
CSD_Write(1);
CPS_Write(1);
/* Configure the Link Layer to automatically switch PA control pin P3[2] and LNA control pin P3[3] */
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLESS_RF_CONFIG), 0x0331);
CY_SET_XTND_REG32((void CYFAR *)(CYREG_SRSS_TST_DDFT_CTRL), 0x80000302);
What happens when we configure the link layer(what happens when we write 0x0331 to that register location)?
Do we need to change the parameter 0x0331 when we want to turn the PA/LNA off (or switching to any other mode)?
Show LessI am trying to make an example (Project #020: UART to BLE Bridge | Cypress Semiconductor ) works using CY8CKIT-042-BLE Pioneer kit . I cant find the way to make BLE dongle to communicate with PC (using UART) without Cysmart.
Show LessSo I bougth the CY8CKIT 042 and I want to do that when you click something an engine small engine gets turn on, can you guys link me an engine I can buy ? and how to plug it in ?
Show LessHi!
I'm trying to run a 12 V, 0.6 A unipolar stepper motor from PSoC4 using 4 MOSFETs. The problem is that the motor doesn't rotate, it seems that nothing happens.
It is 6 wires stepper motor and I determined the middle wires for the each coil and connected them to 12 V. Other 4 wires are connected to 4 N-channel MOSFETs. I use four 100 ohm gate resistors and four 2.2 k resistors as pull down resistors, as shown on the schematic. I wasn't sure how to calculate values for the gate and pull down resistors, maybe I use too big resistors? Is there any formula how to calculate these values?
I use IRF630 MOSFETs and I'm not sure can I drive them from PSoC4?
Code is quite simple:
#include "project.h"
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
int currentState = 0;
for(;;)
{
/* Place your application code here. */
switch (currentState){
case 0:
Pin_1_Write (1);
Pin_2_Write (0);
Pin_3_Write (0);
Pin_4_Write (0);
break;
case 1:
Pin_1_Write (0);
Pin_2_Write (1);
Pin_3_Write (0);
Pin_4_Write (0);
break;
case 2:
Pin_1_Write (0);
Pin_2_Write (0);
Pin_3_Write (1);
Pin_4_Write (0);
break;
case 3:
Pin_1_Write (0);
Pin_2_Write (0);
Pin_3_Write (0);
Pin_4_Write (1);
break;
}
if (currentState < 4)
{
currentState++;
}
else
{
currentState = 0;
}
CyDelay (100);
}
}
/* [] END OF FILE */
Show LessHello,
I am using PSoC 4200 BLE controller. I want to use SCB block as UART and also want "API control enabled" functionality. I select configuration setting according to requirement and then build project then get error "Pin guidance unavailable: Resource limit: Maximum number of Unique P-terms exceeded (max=64, needed=75)."
Anybody have solution for this error. I attached snapshot of Schamatic with configuration setting & build error.
Thanks,
Pranay Joshi
Show LessI'm prototyping with the PROC 222014 and I would like to use some of the library functions from the PDL but I don't see an mcu.h file for the 222014. Am I missing something?
Show LessI was led to believe that each CYBLE-022001-00 radio module has a unique MAC address within.
This appears to be true, as I can see it display, on the top of the screen, when I talk to the device with CySmart.
I was told to use an API CyBle_GetDeviceAddress() to read this address. However, the address this returns is the same every time, on every device.
I'm reading "91:95:19:29:49:99" on every one of my boards, which doesn't look like a MAC address to me.
CySmart displays a unique number for each device I connect to. [FD:CB:A2:14:16:29] and [FD:CB:A2:14:16:18].
How can I access this value with the software? is CyBle_GetDeviceAddress() the right service? or is there another one to get what I'm after??
Thanks
Show LessI've added 25 buttons in a single Capsense P4. Is it too many buttons? It shows the below error.
The assignment for pin "\CapSense:Sns(10)\" requires CSD block "\CapSense:CSD\" to be locked to F(CSD,0), but another pin assignment requires that it be placed in F(CSD,1)
Show LessI have an pioneer kit dongle (CY5677 cysmart 256k) that when loaded into PSoc Programmer identifies itself as CMSIS-DAP/247346. It resists any attempts to reprogram with dongle firmware, although it does report that has successfully connected to the device. Also, the upgrade firmware option under utilities is continually grayed out. Below is a screenshot. Any idea how to recover this or is this dongle bricked? Thanks
Show Less