PSoC™ 4 Forum Discussions
Hi,
I am trying to print the degree symbol (ascii 248) to the Char LCD. I am trying to use LCD_Char_PutChar or PrintString, but neither give me the right output. For example, for char 126, which should be a tilde, I get an arrow ➔, which is not in the ascii table at all. Any ideas where I can get the character map for these?
Thank you,
Tom
Hi,Guys
I have two questions:
1、I want to modify scan time instead of scan timeout,but i can't find any api function or anywhere to implement it.Anyone can tell me?
2、After the CyBle_GapcStartScan() function is called and BLE devices can be discovered,but I've been waiting for a long time did not enter the CYBLE_EVT_GATTC_DISCOVERY_COMPLETE event.Why?
Show LessI implement my ble peripheral based on ble hid keyboard project, it is set as ble gatt server, but my customer want to add a service like apple ancs. I found a sample ancs project on cypress website(BLE version 2.10), it is set as ble gatt client, and found it can be set as gatt client and server, which can not be found in ble hid keyboard project(BLE version 2.20)? So Is there any way to set both gatt client and server in ble hid keyboard project?Thanks!
Cgha
Show LessHi,
I'm trying to read the register contents from Artaflex CYRF6936-40LFXC radio modules on reset.
Till recently I used to get zeros from all registers. MISO pin showed a flat zero on CRO, with some abrupt pulses now and then.
I then reread the datasheet and realized that I had left RST pin and one of the two GND pins floating.
Datasheet says I have to connect 0.47uF from RST to VBAT but since VBAT is not available as a pin out from Artaflex module I have connected RST to VCC instead. I have shorted the two GND pins.
After doing this I started getting regular pulses on MISO pin. After 20 days of frustration, this was indeed a Eureka moment for me, so I wanted to read the register contents now.
I was expecting the default values to be read when I used CYFISNP_Read() function to read some registers like IO_CFG_ADR, PWR_CTRL_ADR and most importantly CYFISNP_FileRead() to read MFG_ID_ADR. But I was 0x00, 0xFF and some values in between. Today I removed all connections and reprogrammed the PSoC 4 and now the values are all 0's again.
Can someone please help me identify what I'm missing?
Thanks and regards,
Shreesha
Show LessHello
I create a simple MY library project in which create one header file i.e simple.h and one source file simple.c and write one routine in simple .c and build it.It successfully build.
I create one BLE application project PSOC4 ble and include this library in both location (dependencies section and tool->option->project Management->default dependencies set path for library) , but when I use API of simple.c file Its shown error. I can't access API of MYlibrary .
I missing any setting or any step while accessing of myLibrary's API.
Thanks in Advance
Show LessHi,
I am looking for help with redefining a PSoC 4 interrupt handler that is generated automatically by PSoC Creator. Specifically, I would like to redefine the auto-generated interrupt handler for the UART wakeup from Deep Sleep. The code for this interrupt is below.
CY_ISR(UART_1_UART_WAKEUP_ISR)
{
/* Clear interrupt source: the event becomes multi triggered and is
* only disabled by UART_1_UartRestoreConfig() call.
*/
#if(UART_1_SCB_MODE_UNCONFIG_CONST_CFG)
#if(UART_1_MOSI_SCL_RX_WAKE_PIN)
(void) UART_1_uart_rx_wake_i2c_sda_spi_mosi_ClearInterrupt();
#endif /* (UART_1_MOSI_SCL_RX_WAKE_PIN) */
#else
#if(UART_1_UART_RX_WAKE_PIN)
(void) UART_1_rx_wake_ClearInterrupt();
#endif /* (UART_1_UART_RX_WAKE_PIN) */
#endif /* (UART_1_SCB_MODE_UNCONFIG_CONST_CFG) */
}
The main part of what I want to do is to get the returned uint8 value back from UART_1_rx_wake_ClearInterrupt(). It returns a "1" if the UART was what woke the chip up, and a "0" otherwise. Additionally, I would like to include a header at the top of the file, so that I have access to an external variable to store the value. In summary, I would like the code to look like this:
...
#include "sleep.h" // My own custom file
...
CY_ISR(UART_1_UART_WAKEUP_ISR){
...
WakeSourceIsUart = UART_1_rx_wake_ClearInterrupt(); // Store the value for my own use
...
}
Currently, if I include this code, the compiler removes it when I clean and build. I would like to keep it in this file every time I compile, or, alternately, I would like to write an entirely new interrupt handler function.
I am programming on a CYBLE-022001-00 chip, using PSoC Creator 3.2. Any help would be appreciated!
Show Less
I use a timer (hardware timer) to run as encoder.
In the documentation is written that a register that I can read off the direction of rotation of the encoder from TCPWM_CNT_STATUS register.
I do not know how in my program, I can have access to this register.
Can someone show me how to do it.
Hi -
I am seriously stuck on an issue and would be extremely appreciative of assistance. I realize this is more of an MPU question but this forum seems to be more active than the device specific ones:).
The project (attached) takes raw values from the gyro/accel puts them through a Madgwick filter and then through a circular buffer. All works well except for one issue - the values in the buffer are accurate only if I have a delay in the project (see lines 258-264). Without the delay, the values in the buffer are obviously bad and I'm not sure what is going on. I have tried speeding up the MPU6050 - has a setting for 8kHz output (vs the default of 1 kHz) by disabling the digital low pass filter (DLPF); however, the changes don't seem to be recognized.
Thanks in advance!
D.K.
PS - The project also transfers the buffer/arrays of data via BLE to an iPhone (need to take out the printing of the circular buffer though for this to work) - this is working reasonably well and I'm attaching the related Xcode project in the event it might help someone else who may come along.
Show LessHi. I want a passive BLE Observer to accept advertising packets from one and only one designated BLE Peripheral. Is this possible? I've studied the Cypress BLE_Whitelist project on GitHub but I am still having trouble. I believe all I need to do is, in my Observer's main.c, pass my designated Peripheral's 6 byte public address by calling CyBle_GapAddDeviceToWhiteList(). Then if my Observer is set to passive scanning and whitelist only filtering, it should work, correct?
The problem I am having is correctly getting the designated Peripheral's 6 byte address into the bdAddr[] of my CYBLE_GAP_BD_ADDR_T struct. Could you show me what that should look like?
Thanks much,
Pat Dolan
Show LessHello,
I was looking at the PSoC 4 ble and PSoC 5LP Catalogs inside PSoC creator 3.3, and even for the same protocol ( the UART), there are some differences in the schematics components and I am a little lost.
PSoC 5 has UART and USBUART, and PSoC 4 has UART( scb mode) and Software transmit UART.
What are the main differences and what should I use for the communication between the PSoCs (by USB cable directly linking them)?
Show Less