But now to my problem: I can't find the datatyp of the CYBLE_GATTS_WRITE_REQ_PARAM_T or the wrReqParam. All i want is to transmit a varibale uint8 over Bluetooth to my CY8CKIT-042-BLE. I made the all the settings on the BLE-Block. I used the example Project AN91162 to make my own Custom BLE Service. I was hoping to try a different way than just adding NOPs in a for loop. Is there a better way to generate these waveforms (timer, counter, etc.) ?.Once i re-trigger it should be really quick. Is there a way to remove the delay (~5us) in between each signal being generated in PWM one shot mode? I only have a multiplexor on the PWM output.Lastly, each LED is a 24bit RGB, so i need to generate 24x a combination of '1' and '0' waveforms. The period of the PWM is ~1.3us and then there is ~5us delay until the next bit waveform is generated. The timing from PWM generator is spot on, the problem i run into is that the time to reload into the next bit pattern takes too long. The multiplexor is switched via a control register module, single output. Now, I added a multiplexor on the output to allow me to switch between the two waveforms and control a single output pin. Since the periods are the same i kept them on the same PWM module. The '0' bit waveform reqires a ~450ns high time and a ~850ns low time (+/-150ns).The '1' bit waveform reqires a ~850ns high time and a ~450ns low time (+/-150ns).I also have PWM setup for 2 outputs, one for my '1' bit and one for my '0' bit waveform. I have decided to go with the PWM module on the PSoC 4 in a Single-shot Multi reload configuration. I am attempting to generate some fast signals to control some leds (WS2812B driver for NeoPixel LEDs).
0 Comments
Leave a Reply. |