PSoC™ 4 Forum Discussions
Hi,
I have AN91162_Creating_a_BLE_Custom_Profile which is a great start to getting a custom service running. Thanks.
However the built in services like the Heart Rate monitor use a Flags section in the characteristic definition to enable variable sized data transmission. Is there a good example of how to do this? The + button in the characteristic editor doesn't appear to allow adding Flags.
Thanks, Dave
Show LessHi,
I am working on project 009, the dynamic broadcaster, and after I load the project onto my board, it does not work. The green light that is supposed to come on does not, and debugging shows it stuck at line 509 in CyFlash.c.
Any ideas?
Thank you,
Tom
Show LessI want to use the UniqueId as the bluetooth mac address.
The function -- CyGetUniqueId() :
void CyGetUniqueId(uint32* uniqueId)
{
#if(CY_PSOC4)
uniqueId[0u] = (uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT0 );
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT1 ) << 8u);
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT2 ) << 16u);
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_WAFER ) << 24u);
uniqueId[1u] = (uint32)(* (reg8 *) CYREG_SFLASH_DIE_X );
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_Y ) << 8u);
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_SORT ) << 16u);
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_MINOR ) << 24u);
#else
}
I can divide 2 numbers into 8 numbers, 4 numbers from the uniqueId[0], and 4 numbers from the uniqueId[1].
I want to know which numbers can be used to as mac address.
What do they mean:
CYREG_SFLASH_DIE_LOT0
CYREG_SFLASH_DIE_LOT1
CYREG_SFLASH_DIE_LOT2
CYREG_SFLASH_DIE_WAFER
CYREG_SFLASH_DIE_X
CYREG_SFLASH_DIE_Y
CYREG_SFLASH_DIE_SORT
CYREG_SFLASH_DIE_MINOR
THANK YOU!
I'm encountering a problem when attempting to integrate the HC-SR04 ultrasonic sensor using a Psoc4 Pioneer Kit 044. The HC-SR04 has a 4 pin interface: vcc, gnd, trigger, and echo. The trigger pin sends a 10us pulse triggering the sensor to send its 40khz ultrasonic pulse. The echo pin receives a digital pulse from the sensor proportional to the distance detected by the sensor.
I have successfully interfaced the HC-SR04 sensor with an Arduino using 3 pins by tying echo and trigger to the same pin. Within the Arduino firmware, the pin is set to an output for the trigger and then set to an input to receive the pulse.
I have 8 sensors that I would like to interface with the Psoc4 so I really need to achieve the same 3 pin interface as there are other components in this design. I have successfully configured the Psoc4 to interface with the HC-SR04 using separate trigger and echo pins. The firmware triggers the pulse on the trigger pin and a counter detects the echo pulse.
What I am unable to do is to combine the trigger and echo pins onto a single pin. When I connect them, the 10us pulse never happens. It looks like the echo pin is pulling the trigger pin to ground. I have tried all of the pin output options to no success. I expect that if the Arduino can do this, it should be possible with the Psoc4 -- event if there needs to be some external components.
Basically, I have two questions:
1. Can/How should the pin interface be implemented to allow both the echo and trigger pins of the sensor to be tied to a single Psoc4 pin?
2. How can single sensor solution be expanded to support 8 sensors?
I have attached the HC-SR04 datasheet. Unfortunately, it doesn't provide much in terms of electrical specs.
Regards,
Tim
Show LessHas anyone had any issues with the Cypress CYBLE-022001 Bootloader?
A Bootloader and Bootloadable project have been created and compiled and the .hex file of the Bootloadable programmed into the device.
After reset, the device does indeed wait for the WAIT_FOR_COMMAND_TIME till the application starts.
However, when attempting to program the device using Tools/Bootloader Host or the bootloader_host.exe directly using the .cyacd file, the device does not send the correct response to the Enter Bootloader command (i.e. 0x38) and immediately starts the Bootloadable application instead.
The same issue occurs when utilizing the Cypress source code to perform the Bootload process, also employing the .cyacd file.
Thank you,
Tim
Show LessHello everybody,
can anyone give me an hint how to separate the SCB_SpiCommMaster (or Slave) Example?
In the .pdf I read that the example can easily split into separate master and slave projects with minimum
modifications.
I tried to split the project, but I do not get a data transfer.
I connected the two boards via the pins P0_0-P0_3 on both CY8C4247LQI-BL483 on the base board as they
are assigned by the PSoC Creator and commented out the master respective the slave function calls.....
Thanks and best regards
Andreas
Show LessHello,
I´m having some problems with an output through the pin 4.1 in the CYBLE-022001-00,
I`m placing a clock connected to a Pwm and then the pwm output to a digital output and drive a LED, when a fix the output to the pin 4.1 Im getting some errors: that is not possible to route the pin. Are there some limitations for this pin? because when I set the digital output to another pin, I can generate the application without any problem.
Thank you in advance for the help.
Show LessHi,
I am using the TCPWM QuadDec example project in PSoC Creator 3.3 on a CY8C4245AXI-483, but it doesn't seem to be counting. I have verified that the PSoC is recieving the quadrature inputs correctly by outputting the signals on LEDs, which flash correctly as the encoder rotates.
This has been discussed before on the forums here and here, and the answer was to use the QuadDec_TriggerCommand() function. However, the example project I am using already uses this function, but it's still not working.
Is this a known problem?
Many thanks
Hugo
Show LessHi
I used CY8C4014SXI
I want to use unconfigured tcpwm for timer capture and pwm.
I will use these separately.
first of all I set the capture config like this. (my tcpwm component name is timer)
/* Enable the global interrupt */
CyGlobalIntEnable;
TC_CC_ISR_StartEx(InterruptHandler);
Timer_SetMode(Timer_MODE_TIMER_CAPTURE);
Timer_SetCaptureMode(Timer_TRIG_FALLING);
Timer_SetPrescaler(Timer_PRESCALE_DIVBY1);
Timer_SetCounterMode(Timer_COUNT_UP);
Timer_SetOneShot(0);
Timer_SetInterruptMode(Timer_INTR_MASK_CC_MATCH);
Timer_TriggerCommand(Timer_CAPTURE_MASK, Timer_CMD_CAPTURE);
Timer_WritePeriod(65000);
Timer_WriteCounter(0);
Timer_WriteCompare(0);
//Timer_Enable();
Timer_Init();
Timer_Start();
but it is not working.
What am I missing the config for timer capure?
Thanks
Show LessHi, there doesn't seem to be a symbol/footprint made available for the CY8C4247BZI-L479 so I'm creating my own. In the datansheet for PSOC 4200L family, for the pinout for the 124-BGA package, there are five pins missing: D11, H3, H11, L4 and L5. Are these intended to be no connects?
Show Less