PSoC™ 4 Forum Discussions
I'm trying to spin up on PSoC (have been doing AVR), but I can't assign a pin to P6[5], which is wired to the blue LED ("P6 cannot be used for routed connections"). Yet the sample project Touch Gestures has a pin attached to P6[5]. I can't see anything different in the configuration of the pin (e.g. Transparent mode). What do I need to do?
Show Less17-05-2017 11:38:16.770 [RX] - HID notification: 00,00,00,0c,00,00,00,00,<CR><LF>
reset pioneer board at 11:38:17
17-05-2017 11:38:17.837 [RX] - BLE HID Keyboard Example Project <CR><LF>
Bluetooth On, StartAdvertisement with addr: 00a050000008<CR><LF>
CYBLE_EVT_ADVERTISING, state: 3 <CR><LF>
reconnect at 11:38:37 - 20 seconds later
17-05-2017 11:38:37.224 [RX] - CYBLE_EVT_GATT_CONNECT_IND: 0, 4 <CR><LF>
CYBLE_EVT_GAP_DEVICE_CONNECTED <CR><LF>
AUTH_COMPLETE: security:1, bonding:1, ekeySize:10, authErr 0 <CR><LF>
CYBLE_EVT_GAP_ENCRYPT_CHANGE: 1 <CR><LF>
HID notification: 00,00,00,01,00,00,00,00,<CR><LF>
how is the re-connection time reduced ?
Show LessHi,
I bought the CY8CKIT-042-BLE development kit. I want to run the demo program named "BLE 4.2 Data Length, Security, Privacy Project". I can compile the program, but when I want to program it to the board, it says "the target device is not compatible with the project's selected device". Does it mean I need to buy another chip? I though I had bought the latest one and it should support BLE 4.2. Any advice on this?
Thanks in advance.
Show LessThe requirement is the following
1: PIN_0 connect to external chip, it will trigger when recv something.
2: PIN_0 will connect to the capture of UDB timer
3: Interrupt is connect to a ISR, and trigger when capture=1
With the following code, but never get a interruption.
Timer_1_Start();
CyGlobalIntEnable;
Timer_1_StartEx(My_Interrupt);
Any suggestion on UDB Timer with GPIO?
Show LessMy application involves two separate status registry blocks one of them is working perfectly, I cant manage to make the other one work I keep getting the error:
undefined reference as if it was not declared at all.
I compared both Stat.Reg files and noticed the one that gives the error is greyed out after the if #if !defined( block
not sure what can be done about this
the build report says I still have one more status registry free to use.
the only command I am using is Read();
thanks for the help
Show LessThere are 4 types:
CYBLE_GAP_PUBLIC_ADDR_TYPE Public device address type
CYBLE_GAP_RANDOM_RESOLVABLE_ADDR_TYPE Random private resolvable address type
CYBLE_GAP_PUBLIC_IDENTITY_ADDR_TYPE Public Identity address type
CYBLE_GAP_RANDOM_IDENTITY_ADDR_TYPE Random static Identity Address
I would like to know the differences, mainly of how CYBLE_GAP_PUBLIC_IDENTITY_ADDR_TYPE and CYBLE_GAP_RANDOM_IDENTITY_ADDR_TYPE fit in. I understand the Resolvable and, of course, public.
Show LessHello colleagues,
I am trying to measure AC current with your PRoC (Eval Kit) and the Allegro's ACS712 but I can just measure noise. I am using the ADC SAR Block with 4.8Vdc as reference and very fast sampling (125ksamples per second). The ADC SAR block screenshots are attached and below is the code:
CY_ISR(ADC_SAR_SEQ_ISR)
{
if (count == 0)
{
min=4096;
max=0;
}
readValue = ADC_SAR_SEQ_GetResult16(0); // Channel 0 is connected my pin to the ACS712 output
if (readValue > max)
max = readValue;
if (readValue < min)
min = readValue;
count++;
if (count >= 25000) // 0.2 seconds
{
mamp = 2.5*(max-min); // (1000*0.353*4800)/(4095*166)=2.5 // 1000 is A to mA, 0.353 is from Vpp to Vrms, 4800mV is Vref, 4095 are the bits of resolution and 166 is the mV/A given by my ACS712
count=0;
}
}
The root problem is that Max and min values are always almost the same (0x5D and 0x5B), no matter which load (no load, 30mA, 200mA or 350mA) is connected. I think the ADC SAR is not really sampling so fast and that's why I measuring always the same, does any of you have an idea of what can be happening?
Thanks in advance,
Peter
Show LessI'm a psoc beginner and I'm trying to set an interrupt on FIFO is not empty.
I'm recieving a RS-485 serial stream from an external board that sends data every 3 seconds or so. The signal is low between data update. I have confirmed that I am receiving the information correctly.
The problem I'm faced with is the interrupt being continuously fired. I believe this is due to the RX FIFO accepting NULL between data being sent from the external board, which means the RX FIFO is always not empty.
Is this proper behavior for the SCB UART? Is there a way to ignore incoming NULL characters? I expected it to be blocking until a non NULL character was received.
I tried to search the forums but didn't find what I was looking for. First time posting, Any help would be hugely appreciated!
Thanks!
Show LessGreetings,
Is there a good example showing how a client application can locate a specific service running on a peripheral and write updated characteristic values? Right now my program is sitting in the CYBLE_EVT_GATTC_DISCOVERY_COMPLETE event, but am unsure how to go about writing a new CYBLE_GATTS_WRITE_CMD_REQ_PARAM_T which the peripheral receives.
Thanks,
Eric
Show Less