PSoC™ 4 Forum Discussions
I want to make sure that the firmware on my PSoC4 is locked so that it can't be downloaded from the device using MiniProg3 or any other method. How can I do this? Can anyone point me in the right direction?
Show LessHello All!
I have a need to generate a PWM signal with an adjustable duty cycle controlled via a 10K POT. Having a bunch of 8 pin CY8C4014SXI-420 chips laying around I decided to try using them for this project. Just enough room for Analog Input and PWM Output.
I am attaching my project which 'should' work. Of course it doesn't....
I am using the CSD_ADC component and feeding it's output to the compare of the PWM component. I started from an example I think i found in the component docs. I have increased a couple of the delays to try getting it to work, but still a no go.
When debugging, I basically get only 1 value from the ADC (0x19FE) with it connected as shown. I get basically a 0x01 when the pin is disconnected from the resister. With my multimeter, I am reading about 1.2V at the pin when connected, no matter the POT setting. (Sweep arm of pot is verified working and voltage is changing when disconnected from PSoC...)
I have tried 3 different chips, so I don't think the issue is hardware.
Anyone have ideas?
Dan
Show LessThe spec says about 4 diff channels or 8 single.
It's possible to connect an analog multiplexer and a SAR in a Psoc4?
I've tested with no sucess, (error between mux and sar mux) but I guess if I'm doing something bad.
Best regards.
Show LessI just got my MiniProg3. I have set Creator MiniProg3 settings to the attached image.
I use the same 4 wire SWD cable setup that I use to program my pcb (with EZ-BLE on it) with BLE Pioneer Kit.
When I connect this SWD cable from my pcb to the MiniProg3 with NO USB cable plugged into MiniProg3, my battery current goes up about from ~2ma to ~3ma.
When I connect this SWD cable from my pcb to the MiniProg3 with the USB cable plugged into MiniProg3, my battery current goes up to ~65ma.
I have never seen battery current above 30ma during the actual programming of the EZ-BLE with the BLE Pioneer Kit and I have not noticed any increase in current when I simply plug my pcb/SWD into a USB attached BLE Pioneer Kit.
I have not left it drawing 65ma for more than a few seconds (only have 40 mah cell) and have not tried to program yet.
Should I continue and try to program or is something fishy in Denmark?
Show LessHi I need help with the following design.
I have tried to mash two sample projects together and i do not understand the code enough.
Hope someone can look and make sense of it.
Appreciate any help.
Show LessI'm trying to fit as much as I possibly can into a PSoC4 - I want 2 quadrature decoders, 6 pwm outputs, and 3 serial modules
By putting two of the serials in to SCBs and the 2 quadrature decoders + 2 PWMs into TCPWM blocks, it just leaves enough for the remaining serial and PWMs in UDBa
I can put in 1 x 8 bit double output PWM modules with no trouble, giving me a total of 4 pwm outputs. When I build, this reports enough resources remaining to add another PWM. However, when I try, it says "5 UDBs required" 😞
Can any one shed any light on this?
Show LessI will upload my project in the next post but it's giving me a problem in that code that works in main.c doesn't work in isr_1.c, specifically the code starting at line 198 in main.c
response = LIS3DH_GetAccAxesRaw(&data); // TM read and print Raw Accel data
if(response==1){
//print data values
sprintf(strMsg1, "Xx=%6d Yy=%6d Zz=%6d \r\n", (data.AXIS_X >> 6), (data.AXIS_Y >> 6), (data.AXIS_Z >> 6) );
SCB_1_UartPutString(strMsg1);
}
sprintf(strMsg1, "X=%6d Y=%6d Z=%6d \r\n", (rawAccel[0][0]), (rawAccel[1][0]), (rawAccel[2][0]));
Works with data read out like Xx= -12 Yy= 7 Zz= 244
but the same code at ine 185 in isr_1.c is supposed to populate the array variable rawAccel[0][0]..[2][0]
response = LIS3DH_GetAccAxesRaw(&data); // TM read and store Raw Accel data
if(response==1){
LED_2_Write(1);
rawAccel[0][0] = data.AXIS_X;
rawAccel[1][0] = data.AXIS_Y;
rawAccel[2][0] = data.AXIS_Z;
}
which is supposed to be printed out by line 204 (the last line in the code above) but it doesn't produce any data, the printed line is always all zeros. The raw accelerometer data is supposed to be 12 bits left justified stored in a int16. I've proved that, in the ISR code, I'm getting a 1 for the response because LED2 lights up. This may be the way I'm trying to share variables across all the files.
I'd appreciate any guidance you guys may have.
Show LessHello:
Does anyone know what the interrupt latency is for the PSoC 4? I am running a 4200 with an external 48MHz clock. When I trigger an interrupt with a timer compare, there is an 800ns delay before the ISR toggles an output line. I am using a register write, not one of the generated functions. My understanding was that latency for M0 was 16 cycles. If that was the case, the delay would only be about 350ns. Am I doing something wrong, or are interrupts slow on this MCU?
A search of the data sheet and technical reference manual did not reveal any answers.
Thanks,
Stephen
Show LessHi,
In latest datasheet version (L) there is a watermark saying "Not Recommended for New Designs"
I couldn't find any document neither about this issue nor about substitutes
Please advise,
Thanks
Show LessI'm not able to get the fixed stack OTA update code example to work on the PRoC BLE. I can get it to work on the PSoC BLE. When I try and do the OTA update on PRoC, it fails every time. What modifications do I need to make to the example code to get it to work on this kit? Thanks.
Show Less