PSoC™ Creator & Designer Forum Discussions
Today I updated from Creator 3.0 SP2 to 3.1, and since then I haven't been able to get a board using a Cypress USB-UART bridge to show up in Bootloader Host. It shows up in Device Manager, but not in Bootloader Host.
I have unstalled everything Cypress and reinstalled 3.1, but still no luck. Any ideas before I uninstall 3.1 and reinstall 3.0?
Show LessI'm using PSoCCreator 3.3.
I'd like to use Frequency Divide.
http://www.cypress.com/documentation/component-datasheets/frequency-divider
How to add component Frequency Divider ?
Thank you.
Kenji
Show LessHello all,
Please guide me coding this 4x4 Matrix. Please tell me,
Will I be able to read the Button press with API- CapSense_GetMatrixButtonPos(uint32 widget, uint* pos)?
Do I need to write it for each of the BTN i.e. 16 times as it was with Normal BTNs scanned individually? Or calling it once will work; while assigning particular o/p's to each BTN, as I have done in my code?
(Please ref. it in attached project, correct & guide me wherever needed)
In this API, CapSense_GetMatrixButtonPos(uint32 widget, uint* pos)- the POINTER * pos will return 2 values, namely pos[0]=Column position & pos[1]=Row position. This means that it's pointing to the elements of an array, right? I want to ask, if I wish to check their Pos by row & column how can I do that? I mean I wish to have it indicating o/p LED's for corresponding ROW & COL @ BTN pressed.
Will the GetMatrixButtonPos() will give me the active button number? If it does; to check the row & column position of same button, DO I need to read the array as we do in 'C'?
OR will it also give me the row & column position with button number?
Guys Please help, waiting.
Thanks & Regards-
Amit
Show LessI just purchased the pioneer kit above and installed PSoc 3.3. When starting a new project I do not get a window open that allows me the choice of processor or design kit as described in the application note for PSoC designer or as described in the training video 101 #4.
Show LessHi...
How do I update my Standard P/S2 Keyboard ?
Dear All:
Just starting to say that I am new on PSOC Creator and maybe you can tell me what is wrong with the code below. When I try to build the SW that I attache (timing.h, timing.c and main.c) I get the error above. Anyhelp will be appreciated. Thanks in advance to all.
Regards,Joaquin
-----timing.h code:-----
#include <project.h>
#include <device.h>
/******************************************
* Global Variables
******************************************/
extern uint8 milliSecond;
extern uint8 tenthSeconds;
extern uint8 oneSecond;
extern uint8 tenSeconds;
/******************************************
* Function Prototypes
******************************************/
/******************************************
* Function Name: InitTiming()
*******************************************
void InitTiming(void);
//[] END OF FILE
---Code for timing.c:---
#include <device.h>
#include <timing.h>
#include "stdio.h"
#include "stdint.h"
/******************************************
* Global Variables
******************************************/
//Event flags for each of the time periods
uint8 tenthSeconds= 0U;
uint8 oneSecond= 0U;
uint8 tenSeconds= 0u;
/******************************************
* Private Functions
******************************************/
/******************************************
*Function Name: TimeISR()
******************************************
*******************************************/
static CY_ISR(TimerIsr)
{
// Counters for the longer periods
static uint8 tenthSecondsCount= 0U;
static uint16 oneSecondCount= 0U;
static uint16 tenSecondsCount= 0U;
(void)PWM_Timer_STATUS;
//milliSecond = 1U; // Always set the millisecond global event flag
//Check if a tenth second has passed
if (tenthSecondsCount > 99U)
{ tenthSeconds = 1U;//tenthSecond global event flag
tenthSecondsCount=0;
}
else
tenthSecondsCount++;
//Check if a second has passed
if (oneSecondCount > 999U)
{
oneSecond = 1U; //oneSecond global event flag
oneSecondCount=0;
}
else
oneSecondCount++;
//Check if a tenseconds has passed
if (tenSecondsCount > 9999U)
{
tenSeconds = 1U; //tenSeconds global event flag
tenSecondsCount=0;
}
else
tenSecondsCount++;
} //End of TimeIsr();
/******************************************
* Global Functions
******************************************/
/******************************************
*Function Name: InitTiming()
******************************************/
void InitTiming(void)
{
isr_PWM_Start();
isr_PWM_SetVector(TimerIsr);
} // End of InitTiming()
/* [] END OF FILE */
---Code for main C---
#include <project.h>
#include <device.h>
#include <stdio.h>
#include "timing.h"
#include "UART.h"
#define LCD_NUM_COLUMNS (16u)
uint8 datos[3]= {0x65, 0x66, 0x67};
void main()
{
char8 ch; /* Data received from the Serial port */
uint8 count = 0u;
uint8 pos = 0u;
CyGlobalIntEnable; /* Enable all interrupts by the processor. */
InitTiming(); // Interrupt
PWM_Timer_Start(); //Source of interrupt
LCD_Char_1_Start();
UART_OXI_Start();
CyDelay(30); // just to be sure the UART is up and running
isr_1_Start(); /* Initializing the ISR */
UART_OXI_ClearRxBuffer();//Clear RXbuffer
while(1)
{
/* Check the UART status */
ch = UART_OXI_GetChar();
/* If byte received */
if(ch > 0)
{
count++;
/* If the count value reaches the count 16 start from first location */
if(count % LCD_NUM_COLUMNS == 0u)
{
pos = 0u; /* resets the count value */
/* Display will be cleared when reached count value 16 */
LCD_Char_1_WriteControl(LCD_Char_1_CLEAR_DISPLAY);
}
LCD_Char_1_Position(0u, pos++);
LCD_Char_1_PutChar(ch); /* Print the received character */
LCD_Char_1_Position(1u, 0u);
LCD_Char_1_PrintInt8(count); /* Prints the count in the LCD */
UART_OXI_SendData(ch);/* Sending the data to Hyperterminal */
}
}
}
/* [] END OF FILE */
Hello,
In the new Creator, there is the new feature to handle API callback that will handle also interrupts.
What will be the preferred way to code isrs:
- Add the code in the generated file between the defined region?
- Write the external function and register it with StartEx()?
- Use the cyapicallbacks.h mechanism?
Best regards
Juan-Carlos
Show LessNew to both Cypress Creator and FreeRTOS. Trying to build a demo project from FreeRTOS that targets a PSoC 5LP. The development board I have is the Cypress CY8CKIT-059. I have successfully built and programmed some of the example projects so I know the Creator IDE and hardware work with my computer system (Lenovo running Windows 7 pro 64-bit).
I keep getting these errors:
Build error: FreeRTOS.h: No such file or directory
Build error: The command 'arm-none-eabi-gcc.exe' failed with exit doce '1'.
The file is in the project tree and can be view and edited. I don't understand why the compiler can't find it.
I contacted FreeRTOS and they had no solutions.
Show LessWhere are the template files located that are used when creating a new C file or H file in Creator? I want to edit the comment that is created at top of the files.
Thanks
Show LessHey everyone,
I am trying to make a dedicated component for future use, and I want that component to force a few pin assignments.
I found that you can use "control files" to do this, at least I thought so.
I tried the following line in the control file:
attribute port_location of Reset : label is "PORT(1,2)";
The pin instance name is Reset.
When I include this component en build the project, the pin is just randomly fitted like there was no control file.
What is it that I am doing wrong?
Kind regards,
Niels Kool