PSoC™ 5, 3 & 1 Forum Discussions
One of following method will resolve this problem, try these methods until the problem is resolved:-
Method 1:-
Register the vbscript.dll module by following these steps:-
a. Open a Command Prompt window.
o In Windows XP, click Start, Run, and type cmd.exe.
o In Windows Vista and Windows 7, Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
b. Type the following command in the command prompt window and press Enter.
regsvr32 %systemroot%\system32\vbscript.dll
You should see the following confirmation message.
DllRegisterServer in vbscript.dll succeeded.
c. Now run PSoC Designer and check if problem is resolved.
Method 2:-
If steps given above are not working and you have used McAfee products in your machine earlier then run the McAfee Consumer Product Removal (MCPR) tool by following steps given below (If you have not used McAfee products, then try method 3): -
a. Download the MCPR tool from: http://download.mcafee.com/products/licensed/cust_support_patches/MCPR.exe and save it to a folder on your computer.
b. Navigate to the folder where you saved the file, and double-click MCPR.exe.
c. When you see the User Account Control dialog box, click Yes.
d. At the McAfee Software Removal screen, click Next.
e. At the End User License Agreement (EULA) dialog box, click Next to accept the agreement.
f. When prompted, type the Captcha information, which is case sensitive, to validate to application security, and then click Next.
o If you have Family Protection installed, type your Administrator user name and password and click Next.
o If you cannot authenticate, follow the on-screen instructions to obtain an uninstall code. If you do not have Family Protection installed, you will not receive this authentication prompt.
g. When you see the message CleanUp Successful, restart your computer. Your McAfee product will not be fully removed until after the restart.
Method 3:-
1. Uninstall PSoC Designer
2. Install Designer at location “C:\[Some Folder name without spaces]”, for example “C:\Designer\” folder.
One of these methods will definitely resolve the issue. Show LessHi Everyone,.
I want to use capsense chip as a slave with I2C comminication. There are five capsense button. If I pressed first button 1. led working .If I pressed second button 2. led working. How do I code for master and slave. I don't know I2C comminication. I should send 1 byte for every button. I would appreciate if you give an idea.Thanks
Show LessThe range of the ADC will be (Negative Input)+/-(x*Vref).(x can be 1/2, 1/4, 1/8, 1/16, 1, 2 or 6)
The Vref can vary between 0.9 to 1.3V. Because external reference can also be used.
If we use the (Negative Input)+/-(2*Vref), and the reference voltage is 1V. Then the ADC range will be (Negative Input)+/-2V. So if I fix the negative input at 2V, I can get digital readings between 0-4V (2-2=0,2+2=4).
So If I need to measure from 0-5V its not possible.
But if I go with the next range,(Negative Input)+/-(6*Vref), I can cover the full voltage swing.
So if the Vref used is 0.9, the range will be (Negative Input)+/-5.4V.
If the Vref used is 1.2V, then the range will be (Negative Input)+/-7.2V.
You can fix the negative input at any voltage to get full swing.
But the limitation is the Pin voltage and current levels.
This has to be taken care. The pin voltage should not exceed 5.5V.
And negative voltage should not be given to a PSoC pin.
So to measure the negative voltages, kindly go through the below blog,
http://www.cypress.com/?rID=50815&cache=0
Hello there, I have a project where I want the PIR motion sensor to detect motion, take the output of the PIR motion sensor and send it into psoc, triggering LED to turn on, and then after turning on LED, a timer user module will countdown and reach a specified time, therefore turning off the LED. Help as soon as possible would be much appreciated! I have attached my "thought-to-work" PSoC 1 CY3210 kit software/firmware below.
Show LessIn THA, I see a variable offset in the output. The offset is: +10mV at 0V input and -30mV at VDD input. what is the reason for this behaviour? How to avoid it?
Ans:
When a Track and Hold Amplifier changes from track mode to hold mode, the channel charge present in the switch (when it was ON) will be dumped into the Hold capacitor.
This causes a finite offset in the voltage across the hold capacitor. To minimize this offset, the hold capacitor will usually be chosen larger. This offset is signal-independent in most cases.
To eliminate this offset at the output of the ADC, we can use Correlated Double Sampling (CDS). It is a kind of high-pass filtering that removes DC offset and minimizes 1/f noise.
First, measure the input signal using ADC after sampling and let it be Vsig.
Then, measure the ADC output by giving a known reference(Vref). Here,
Vout_1=Vsig+Voffset
Vout_2=Vref+Voffset
(Vout_1-Vout_2)=(Vsig-Vref)
Vref is usually at ground potential.
Please do this calibration in firmware to remove the THA offset.
The -ve offset at Vdd input is due to the voltage swing limitation at the opamp's output. To eliminate this offset, we need to insure that the input voltage doesn't exceed the limit which makes the output voltage go above max. output voltage(specified in the datasheet) of opamp.
While trying to use the alternate SWD pins of the PSoC 5LP kit- the USBIOs which can also be used for programming, we saw an unusual behaviour. We were able to program the IC at 3.3V but not 5V. We used miniprog connections only, but simply wired the alternate SWD lines instead of the standard one. (For this, we used a USB mini-b cable, cut it, took thbe wires out and connnected it to the USBFS jumper and the wires to the miniprog 🙂 ).
As mentioned, we were unable to program at 5V operation. but if we soldered R30 (i.e. shorted the Vdda and Vddd pins) the programming worked. It is some ramp up issue of the analog regulator of Vdda. It ramps up slower than Vddd and thus miniprog remains unable to acquire the port.
I hope this info helps everyone.
Cheers.!!!
Show LessThe USBFS_Start API description does not mention about the use of the second argument. The argument enables / disables the internal regulator between Vddd and the potential to which the D+ line is pulled-up.
We need to take care that the second argument correctly relfects the Vddd voltage we are using to operate the IC.
Suppose if you are operating at Vddd = 5V but you use the argument as USBUART_1_3V_OPERATION, the internal regulator for regulating the D+ pull-up voltage to 3.3V is disabled and it simply passes the Vddd voltage to the D+ pull-up. So in this case, when you pass 5V over to the D+ pull-up, it made the D+ be driven to >4V. This is invalid as per the specification, the range for a output high voltage is 2.8-3.6V. In this case, the USB port of a PC might not communicate with the device, whereas you will see that if you use an external hub in between the PC - the device is able to communicate.
Cheers.!!!
The USBFS_Start API description does not mention about the use of the second argument. The argument enables / disables the internal regulator between Vddd and the potential to which the D+ line is pulled-up.
We need to take care that the second argument correctly relfects the Vddd voltage we are using to operate the IC.
Suppose if you are operating at Vddd = 5V but you use the argument as USBUART_1_3V_OPERATION, the internal regulator for regulating the D+ pull-up voltage to 3.3V is disabled and it simply passes the Vddd voltage to the D+ pull-up. So in this case, when you pass 5V over to the D+ pull-up, it made the D+ be driven to >4V. This is invalid as per the specification, the range for a output high voltage is 2.8-3.6V. In this case, the USB port of a PC might not communicate with the device, whereas you will see that if you use an external hub in between the PC - the device is able to communicate.
Find the package attached.
Cheers.!!!
Show LessPSoC Creator has an option to export to other IEDs like, IAR Work Bench. Before exporting the project, make sure of the following settings in .cydwr file, Systems tab ;
1. Enable Error Correction Code (ECC) is checked.
2. Store Configuration data in ECC Memory is unchecked.
This is because the configuration in ECC memory will not get written and HW will not be set up correctly.
Keerthi
Show Less