- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, there
I took for starting PSoC3_SW_Sin_X and adapt it for CY8CKIT-059.
Packet received by BCP has MSB always = 0 (it has to be 0x41) and received sin variable values are always = 40.
Other bytes are correct.
(Bytes 0x55 0x55 for serialplot sync)
For control I duplicate output values to UART and got correct results.
Pictures and archive applied.
- Labels:
-
PSoC Creator & Designer Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @VlYe_281166
Please use the following if condition in the for loop and check once whether you are getting same error again:
if(0u == (EZI2C_EzI2CGetActivity() & EZI2C_STATUS_BUSY))
{
if(MyI2C_Regs.fSync > 0)
{
x += PI / 36;
MyI2C_Regs.sinValue = MyI2C_Regs.amplitude*sin (x);
MyI2C_Regs.fSync = 0;
UART_PutChar(0x55);
UART_PutChar(0x55);
UART_PutChar(sinAm[3]);
UART_PutChar(sinAm[2]);
UART_PutChar(sinAm[1]);
UART_PutChar(sinAm[0]);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd like to, but:
main.c:75:11: warning: implicit declaration of function 'EZI2C_1_EzI2CGetActivity' [-Wimplicit-function-declaration]
if(0u == (EZI2C_1_EzI2CGetActivity() & EZI2C_1_STATUS_BUSY))
^
main.c:75: undefined reference to `EZI2C_1_EzI2CGetActivity'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With function: EZI2C_1_GetActivity code compiled, but the result is the same:
w 04+ 03+ r 04+ 00+ 08+ 91+ 9D+ p
w 04+ 01+ 00+ 14+ p
w 04+ 00+ 01+ p
w 04+ 03+ r 04+ 00+ 48+ 8B+ 9A+ p
w 04+ 01+ 00+ 14+ p
w 04+ 00+ 01+ p
w 04+ 03+ r 04+ 00+ 6E+ 58+ 96+ p