PSoC™ 5, 3 & 1 Forum Discussions
Hi,
i would like to flash an CY8CTMA300 device using another µC by HSSP but i do not find the needed programming vectors to perform the flash. Is there a document available containing these vectors?
Show LessMore than an ADC, delta sigma modulator shall very effectively be used as a filter, when the sampling rate is appropriately choosen.
When we have an extremely low sampling rate, as low as about 2000SPS, the Sync 4 filter inside the delta sigma adc will strip down the frequency components above 1000 Hz, infact, the sync4 filter has good response to frequencies below 200Hz..
So, if you send a stream of pulses to the ADC, we would get the average value of it.
Caution : Choose the range of the ADC Cleverly, as that might result in a poor resolution(here, average value), if not properly choosen.
Regards,
Rahul ram
Show LessHi to all....
iam beginner to Psoc3...recently i tried to interface JHD12864E graphical LCD to psoc3...here, iam mentioning the steps that i did to interface it....
1) I have taken 8 GPIOS of psoc3 (PORT6 of first touch starter kit) for connecting to DB0 to DB7 of JHD12864E.
2) and i have taken 6 another GPIOS to various control pins of JHD12864E...
RS--->P4[6], RW--->P4[4], ENABLE---->P12[3],
CS1----> P4[5], CS2----->P4[7], RESET---->P2[7],
and named each pin as shown above....
and i connected the power pins of JHD12864E as follows....
pin 1----> GND, Pin2---->+5V, Pin3---> the varying end of 10K variable resistor,
Pin 18---> connected to one end of 10K variable resistor, and other end of variable resistor connected to ground. Pin 19---->+5V, and Pin20------> GND
3) here iam mentioning the source code which i have written..............
#include <device.h>
void main()
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
//RESET of GLCD//
RESET_Write(0);
CS1_Write(0);
CS2_Write(0);
RESET_Write(1);
CS1_Write(1);
CS2_Write(1);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//First half DISPLAY ON// //to turn ON the first half of this LCD the data through the pins should be like this//
CS1_Write(1); // CS1=1, CS2=0, RS=0(for instruction), RW=0 (to write),//
//and DB0=7,DB6=0,DB5=1,DB4=1,DB3=1,DB2=1,DB1=1,DB0=1//
CS2_Write(0); //ENABLE Should be falling edge//
RS_Write(0);
RW_Write(0);
PRT0DB_Write(0x3F);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//Second half DISPLAY ON// //to turn ON the first half of this LCD the data through the pins should be like this//
CS1_Write(0); // CS1=0, CS2=1, RS=0(for instruction), RW=0 (to write),//
CS2_Write(1); //and DB0=7,DB6=0,DB5=1,DB4=1,DB3=1,DB2=1,DB1=1,DB0=1//
RS_Write(0); //ENABLE Should be falling edge//
RW_Write(0);
PRT0DB_Write(0x3F);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//first half Y Adress // DB7=0,DB6=1, DB5 TO DB0 is to give the Y address
CS1_Write(1);
CS2_Write(0);
RS_Write(0);
RW_Write(0);
PRT0DB_Write(0x60);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//second half Y Adress //
CS1_Write(0);
CS2_Write(1);
RS_Write(0);
RW_Write(0);
PRT0DB_Write(0x60);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//first half X page select// DB7=1,DB6=0,DB5=1,DB4=1,DB3=1, DB2 TO DB0 is to give x address//
CS1_Write(1);
CS2_Write(0);
RS_Write(0);
RW_Write(0);
PRT0DB_Write(0xBB);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//second half X page select//
CS1_Write(0);
CS2_Write(1);
RS_Write(0);
RW_Write(0);
PRT0DB_Write(0xBB);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//first half Start line
//CS1_Write(1);
//CS2_Write(0);
//RS_Write(0);
//RW_Write(0);
//PRT0DB_Write(0xD0);
//ENABLE_Write(1);
//ENABLE_Write(0);
//second half start line
//CS1_Write(0);
//CS2_Write(1);
//RS_Write(0);
//RW_Write(0);
//PRT0DB_Write(0xD0);
//ENABLE_Write(1);
//ENABLE_Write(0);
//first half write data// TO WRITE DATA RS=1, RW=0
CS1_Write(1);
CS2_Write(0);
RS_Write(1);
RW_Write(0);
PRT0DB_Write(0xAA);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
//second half write data//
CS1_Write(0);
CS2_Write(1);
RS_Write(1);
RW_Write(0);
PRT0DB_Write(0xAA);
ENABLE_Write(1);
CyDelay(1);
ENABLE_Write(0);
}
/* [] END OF FILE */
and I kept all the pins driving mode as STRONG...
after doing this, my GLCD backlight is turning ON......but it is not displaying any data.......
so, can any one help me how to interface it correctly to Psoc3, so that i can send various data to display in the intended position of GLCD......here iam attaching the "topdesign" page of my workspace
Show LessHello Friends,
I got an assignmemnt to implement linear slider and capsense buttons just with the help of datasheet and not looking into example project. But the problem is, I already know how to get these things working.
I am posting this problem in both PSoC 3 and 5 forum so that forum members who have not used the capsense CSd component atleast once or have forgotten how to get them working can try this out and note down all the problems faced and suggestions so that we can help our customers .
Please donot mention to look into example project.
Show LessI begin to desperate, hopefully you can help 🙂
1. Changed Pind to "Pull down" and "Change from read"
2. added "ljmp _foo" to PSoCGPIOINT.asm
3. added
#pragma interrupt_handler foo
int counting=0;
void foo(void)
{
counting++;
return;
}
to main.c.
The pin is working but the value is now increased when the is a edge.
I also attached the whole project.
Thanks for support
Show LessIs there a chance that PSoC goes dead when the capacitor connected to Vdda is greater than Vdddmean to say Vddd rises early compared to Vdda? I have a board with capacitors for Vddd and Vdda are interchanged. the board was powered and PSoC didn't work. Later the capacitors wre interchanged according to spec but even then its not working. So is that my PSoC is gone????
Show LessHello All,
I have been trying to drive an external power MOSFET (IRFD113 - N Channel) with the PSoC 3 at ~20 kHz. The GPIO pin appears not to have enough drive strength to switch the FET with acceptable rise/fall times. I was thinking that the SIO pins might help with their improved current sinking capabilities (20mA vs. 4mA). Does anyone have any suggestions on how I might go about doing this? Could I parallel pins for improved drive strength?
Thanks,
Diode Dan
P.S. I am aware of external MOSFET gate driver ICs. I would love to see a clever PSoC only solution though!
Show LessHello,
I am currently developing a spectrometer for gamma radiation using the CY8C28433 for this project. I want to start the SAR10 ADC upon an external event (pulse detected by comparator). The SAR10 datasheet mentiones that the ADC may be started in autotrigger mode by a comparator output, i can´t find however a hardware trigger input on the SAR10. How do I trigger the SAR10 by hardware instead of software and how is the source connected ?
Best regards
Juergen Putzger
University of Regensburg
Hello,
I'm working on a project with CY8C29666-24LTXI.
I'm trying to reset the psoc with the macro M8C_Reset.
After the reset, the IMO clock of the psoc is out of tolerance, not calibrate.
Have you an explanation?
Condition of use:
U = 3.3V
Show Lesshello everyone!
I have some problems when I try to implement a project with amplifiers. the PSoC is CY8C29466, the input is a dc voltage from 0 to 15mv from a sensor, I want to achieve an output in the range 0 to 5V.
I selected a 3 op-amps and set the gain. however when I want to add a PGA after the INSAMP I find it seems impossible, can anybody tell me how to do that? btw, if i use a 2 op-amps it's possible...
the second problem is about the AGND, as is showed in the data sheet, the AGND is Vdd/2, and also can be set by the parameter ref mux in the global resource. since my interest signal is alwasy positive, so I tried to set Vss as reference voltage for 2 op-amp INSAMP and PGA, but the noise is quite big and I even can't observe the output signal...what's more, this method is impossible for 3 op-amp INSAMP. so I want to know may I set the "ref mux" p2[4]+/-p2[6] then connect p24 to GND and p26 to VSS?
thank you for your help!