PSoC™ 5, 3 & 1 Forum Discussions
I'm working on a 3x4 button keypad using a CY8C21434. I'd like to be able to detect proximity and also be able to read the status of the buttons. When proximity is detected, the LEDs behind each key illuminate to present the user with the keypad. The implementation suggested to me by the FAE is the following:
1) Gang together 4, 8, or 12 sensors in normal operating mode using the analog mux, creating a lot more copper surface that will be more sensitive for prox detection. Once proximity is detected, the part can go into a different operating mode, wherein each key is independent
2) Since the large prox detector sensor will have much higher capacitance, 2 different bleed resistors are required on different pins, connected through the global out bus.
I'm just a little confused about how connected multiple sensors to the mux actually connects them together. It was suggested that I set/unset the right bits in MUX_CR0, MUX_CR1, MUX_CR2, and MUX_CR3. But I'm still a bit foggy on how this connects the sensors together etc. Has anyone worked on an implementation like this? I could use a code sample or a few pointers on how to proceed. Thanks.
Show LessG'day all,
I've sorted out the debug connections for my design thanks to the support guys here, but now I'm having a different problem.
I can't seem to find a supplier for the 10-pin debug header as used on the development kit's PSoC3/5 modules.
This is a 10-pin 0.05" dual in-line IDC-style receptacle. In the parts list, it's listed as Digilent 161-026, but that company doesn't seem to have or handle individual connectors. Instead, DigilentInc is a system board (FPGA) design business. They appear to neither stock nor sell individual bits and pieces.
None of the "big" suppliers (Farnell, Digikey, Jameco, Mouser, etc) stock this particular part. At least, not shrouded, which would be the most suitable. I can find various male PCB connectors, but I'd really like to have a polarised connection, as this design will be used by students and hobbyists, and I want to make it as bullet-proof as possible.
As I'm based in Australia, I'd much prefer to deal with a vendor who has an online presence.
So my question is, could anyone provide details on a suitable connector that will allow the Miniprog-3's cable to be directly connected for debugging and programming? Preferably something they know works with the connectors supplied with the Miniprog-3.
Otherwise, I'll keep looking, and if I can find a replacement, I'll post details here.
Sorry for asking such a silly question here.
Regards,
PCPete
Show LessHello,
I have a PSOC which model name is CY8C24123A-24SXI and I am using PGA module. Here is the problem ; there are 5 same circuits and all have same input,gain,code but their output voltage are different each other.
Port Config.
P0(4) ----> Input (180 mV)
P0(3)----->Output (Between 450 mV - 600mV)
Gain : 5.3
All PSOC have same code and here is the code for configuration :
///////////////////////////////////////////
PGA_1_SetPower(PGA_1_HIGHPOWER);
PGA_1_SetGain(PGA_1_G8_00);
PGA_1_Start(PGA_1_HIGHPOWER);
AMUX8_InputSelect(AMUX8_PORT0_4);
AMUX8_Start();
LPF2_Start(LPF2_HIGHPOWER);
LPF2_SetPower(LPF2_HIGHPOWER);
LPF2_SetCA(LPF2_FEEDBACK_32);
LPF2_SetCB(LPF2_FEEDBACK_32);
LPF2_SetC1(1);
LPF2_SetC2(1);
LPF2_SetC3(2);
LPF2_SetC4(31);
LPF2_SetPolarity(LPF2_POLARITY_NON_INVERTING);
ARF_CR = (ARF_CR & ~0x07)|DEF_AGND;//analog module on
////////////////////////////////////////////////////////////
And I also attached block configuration as a print screen of my project.Could you help me about this issue ? I am looking forward your answer.
Best Regards.
Salih KAYA
Does anyone have a lead on the SAMTEC connectors used on the PSoC modules? SAMTEC has given me a lead time of 16 days to make the connectors. I may just rip them off of the dev kit unless someone knows where I can buy them. As this is currently the only method of interfacing with the PSoC aside from the dev kit it seems strange that they be so hard to find.\
Thanks,
Show LessWhat better way could there be, other than a video to learn new stuff quickly. Learn how to use interrupts in PSoC3/ PSoC Creator by watching this cool video that has been posted here, http://www.cypress.com/?rID=51112
Show LessHi,
I search a Sample Firmware Source Code for module "Graphic LCD Interface (GraphicLCDIntf)".
I seem to be in "CY8CKIT-032 Graphics LCD Interface Kit", but I can find it on web.
Thanks a lot
Hervé
Show LessHey all
I'm using the Psoc 5 and have instantiated the UART module v1.20. I noticed that after a call to USART_Start() i have to wait a bit before I can use PutChar or PutString. A delay of even just 1ms is enough, If no delay is present the first few characters are dropped. Any idea what's going on?
~Abhijit
Show Less
G'day all,
I'm about to finalise the design of my rover using the CYC5588AXI-060. It's replacing a Zilog eZ80F91 module, which only required 2 debug/programming pins, TCK and TDI (and ground, obviously!).
However, I'm unclear about exactly which pins are required for the SWD mode debug/programming interface. I'd appreciate it if someone could confirm exactly which pins need to be connected to the header for non-JTAG programming. I'd also like to understand if I need to make any changes to the programming routine if only the SWD pins are used. The family and device datasheets mention switching to SWD from the JTAG connection, but not details of which of the common pins need to be connected first. Any help would be appreciated!
Cheers,
PCPete
Show LessHello,everyone!
i tried to use psoc3 to develop a keypad scan programa, here is the code :
void KeyScan()
{
Port0(1); //output b11111111 to the port0
Port0_4(0);
Port0_5(0);
Port0_6(0);
Port0_7(0);
temp1=PRT0DR;
Port0(1);
Port0_0(0);
Port0_1(0);
Port0_2(0);
Port0_3(0);
temp2=PRT0DR;
x=temp1&temp2;
switch(x){
case 0x11:key=0;break;
case 0x21:key=1;break;
case 0x41:key=2;break;
case 0x81:key=3;break;
case 0x12:key=4;break;
case 0x22:key=5;break;
case 0x42:key=6;break;
case 0x82:key=7;break;
case 0x14:key=8;break;
case 0x24:key=9;break;
case 0x44:key=10;break;
case 0x84:key=11;break;
case 0x18:key=12;break;
case 0x28:key=13;break;
case 0x48:key=14;break;
case 0x88:key=15;break;
default: key=6;break;
}
}
the problem is befor 8,all the data is good, lcd can display the data correctly,but after 8,the results is always 6,that is the default output, it seems the p0[2],p0[3] can not detect the signal,i am using cy8c29466,can anyone tell me the reason,thank you very much!
Show Less