We are using a PSOC 4 CY8C42478ZI-MF485 and we need to generate an analog output voltage from 0 to 5 volts to control a motor controller. We are using the IDAC with a range of 0-612uA and externally we have a 10k resistor to have the voltage. However, the maximum voltage output we got was 4.3 volts. Thank you
How to het 0-5V analog output?
Analog Routing Error when using SAR ADC
Hi there,
i want to create a measurement system using the cy8ckit-044 Pionner Kit. Therefore i need to use the SAR ADC with multiple analog inputs. I want to use 12 different analog inputs but i always get the error message "unable to fin a solution for the analog routing". When using 10 Inputs it works perfectly fine. I have used the 8 SAR ADC Pins from Port 2 + 2 Pins from a different Port. From my experience it doesnt matter which Pins i use for the last 2 but when adding another Channel to the SAR ADC I get this error. Is there a way to fix this or can i only have 10 analog Inputs? In the datasheet of the SAR ADC it says i can have up to 16 Channels. I have attached to project.
Kind Regards,
Christian Fischer
4200-L, Power-efficient GPIO configuration (IRQ+Wake-support)
Hi,
Using CY8C4247BZI-L479, I assume it's possible
I'm planning to use 56 gpio inputs from various buttons & external signals.
Requirements:
- any gpio must be able to wake from "deep sleep" (preferably hibernate and stop-mode as well)
- gpio's should be completely interrupt-driven in run-time (as well as the requirement from sleep above)
I need some input on best practice and if someone knows how the "Interrupt Source Multiplexer" works behind the scenes, in sleep and if it draws any extra/considerable amount of power.
best david
Recognizing Sliding Gesture
Hi,
I am using PSoC4 CapSense_2.10. I would like to carry out an action like turn an LED on when the sliding gesture is carried out on a slider or any capsense widget.
By sliding gesture I mean that all the capacitive sensing elements in the slider have to touched in a sequence or the finger has to slide through all of them to recognize the slide gesture. Is this possible with any CapSense Widget?
regards
Search for number conversion function libraries
Is there a good place to start to research psoc or gcc libs I can use in PSOC4 specifically for std functions like itoa or other number conversion functions.
My end goal is to pull data from eeprom and print to serial port as I start to develop code to interface with flash read/write APIs.
There isn't an easy method to convert eeprom address and data to ascii (strings) to send to a serial port.
I had some good library calls in an old element14 include that I used to do em_eeprom reads and dumps but having problem making them port.
I would like to use the below standard scb function and feed to it a number conversion functions that accepts flash memory location as parameter.
UART_UartPutString("\r\nNormal String Output \r\n");
Any help is appreciated.
How to remove unneeded .h file
I created a class with a .c and .h file, I no longer need the class so I'm trying to delete it. I'm able to delete the .c fine however when I try to delete the .h I get:
"The action can't be completed because the file is open in cc1"
The files are no longer in my project workspace but still in the project directory. I've tried killing PSoC and I still get the error. Any ideas?
How to switch polarity of IDAC on PSOC 4
Hello,
We are using a PSOC 4 CY8C42478ZI-MF485 and we need to switch the polarity of an IDAC using c-code but we can't find the command to do it. Is it possible to do this using software?
Thanks.
Question about connections of digital output pin
Hello,
i'm a newbie with PSOC Creator (i use PSOC Creator 3.3 with the PSOC 4 Pioneer Kit) and i made the first steps with the Lessons of PSOC Creator 101.
Now, im a little bit confused about the connections of the pins.
In the lesson there was a connection (picture 1) and in my experiment the connection of the pin disappears complete when i removed the hook "HW connection".
Can somebody explain me what's going wrong?
CY8CKIT-04942xx, problem with the UART_TX01 project.
I added the Bootloadable component, removed the LCD component, and changed the Baud rate to 31250 (standard for MIDI), edited main.c to create an endless loop transmitting 3 characters every second. Programming is successful (takes about 10-15 seconds). But Verify fails with cannot read data from device. The debugger cannot find the target device.
Is it possable to use the CY8CKIT-049 42xx as a hid
Hello, I have a CY8CKIT-049 42xx board and I was wondering if It is possible to use it as a hid. If so do you know where I could find documentation on it? Thanks!
Probleme with PWM
Hi,
i made my first experiment with pwm on PSOC4 S Series Pioneer Kit and i want to create a breathing led.
It works, but sometimes there is a flashing on the red led. Can somebody give me a hint, why the flashing occurs?
I use a pwm with a period of 1000 and a clock frequency of 100kHz. The result is a pwm of 100Hz - this is ok!
The red led is connected on port 3[4].
This is my code:
#include <project.h>
uint32_t i=0;
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
PWM_1_Start();
for(;;)
{
for(i=0; i<999; i++)
{
PWM_1_WriteCompare(i);
CyDelay(2);
}
for(i=999; i>1; i--)
{
PWM_1_WriteCompare(i);
CyDelay(2);
}
}
}
Pull-ups in 4000S Devices
Hi, just got the CY8CKIT-041-40XX kit that have a 4000S device.
I'm trying to do some basic logic gates with the SmartIO component, i'm using two input pins and a output pin, i would like to have pull-ups in both input pins but the configuration window i got an error:
"Use of drive modes which are not High Impedance with hardware-routed input requires a port adapter, but the selected device does not have one."
I kind of do not understand the error, the devices does not have pull-ups, or the pull-ups are not available for pins that have hw connection option enabled?
Thanks in advance
-Carlos
Psuedo Random and PRiSM dimmer than PWM
Hi,
Can anyone think of a reason that the Pseudo random and PRISM outputs result in a dimmer light than the direct PWM output when fed the same data? At full power they are the same, but at half power the Pseudo and PRISM are significantly dimmer than the PWM. Do they have a built in gamma correction or something?
Thank you,
Tom
Small PSOC 4000 family help ! ! !
I am trying to migrate from Atmel to Cypress.
I use: PSOC 4000 SOIC-8 package; which contains 8 Pin:
Pin: function:
1 SWD Clock
2,6,7 GPIOs
3 - VCC
4 VDD
5 VSS
8 SWD I/O
It's very confused to cross reading the MINIPORG3 datasheet and the PSoc 4000 datasheet.... I got stuck. . . . unable to program????
At this time I try to use the power supply from the MINIPROG3.
I am able to 'build' a simple LED lit . . .But to program the chip??
*******
What is the minimum configuration of the connections between the MINIPORG3 & the PSoc for I can get the MCU programmed.
********
****Please Help!******
Please ! Please!
PT
New Component doesn't appear in Component Catalog
I'm following the tutorial on UDB Datapaths in the document AN82156 (rev G), "Designing PSoC Creator Components with UDB Datapaths." At page 17, after Generate Symbol, step 19, Doc.CatalogPlacement = AN82156/Digital/Cntr8. The component never appears in the Component Catalog, neither here nor when any other project is opened.
SPI SCB Interrupt
Hello,
I have problem with interrupt on SPI SCB module. I set External interrupt for TX and RX FIFO, but interrupt not triggered.
Other interruptions to run well.Only SPI SCB interrupt was not triggered.
You do not know what it could be?
PSOC 4 CY8CKIT-049 kit, Bootloader reported error 'Packet Length invalid'
I am new to PSoC and using PSoC4 CY8CKIT-049 kit. I tested it with LED blink program and its working fine. Now I tried to see result for ADC but I am getting error- Bootloader reported error 'Packet data invalid': The packet sent to the bootloader does not conform to the required packet format.
The program I wrote is a simple one. Programm inside for loop is:
aVal = ADC_GetResult16(0);
LED_Write(!LED_Read());
if(aVal> 2047) aVal = 2047;
if(aVal<1) aVal = 1;
aVal == aVal/2 +100;
CyDelay(aVal);
Displaying a float number on LCD
Hi,
My project is to display, in different formats, the results of the A/D conversion. I cannot display the result in decimal format (floating point).
My resources are:
PSOC Creator 3.3.
PSOC4: CY8CKIT-049-42XX-(CY8C4245AX483)
LCD: RC1602B
I wrote the ”-u_printf_float” as a custom command line for the Linker tool.
The LCD is displaying only ”ADC”, at position (0,0).
Thank You!
The main file is bellow:
#include <project.h>
#include <stdio.h>
int main()
{
int32 conversie;
char cuvant [16];
float32 val,vin ;
CyGlobalIntEnable; /* Enable global interrupts. */
ADC_Start();
ADC_StartConvert();
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
LCD_Start();
LCD_Position(0,0);
LCD_PrintString("ADC");
for(;;)
{
conversie = ADC_GetResult16(0);
val = ADC_CountsTo_Volts(0,conversie);
sprintf(cuvant,"%1.4f ",val);
LCD_Position(1,0);
LCD_PrintString(cuvant);
vin = (float32)conversie * 1024/32768;
sprintf(cuvant,"%1.3f ",vin);
LCD_Position(1,6);
LCD_PrintString(cuvant);
LCD_Position(0,6);
LCD_PrintNumber(vin);
LCD_Position(0,10);
LCD_PrintInt16(conversie);
LCD_Position(1,11);
LCD_PrintInt16(vin);
CyDelay(1000);
}
}
/* [] END OF FILE */
program PSoC 4 with external microcontroller
Hi,
I am using a kinetis K64 MCU to program my CY8C4245AXI-483 PSoC.
I am refering the below link
http://www.cypress.com/documentation/application-notes/an84858-psoc-4-pr...
I ported the code to suit the K64 IC and the program seems acquire the device and i get the IDCODE right. But it fails in the check silicon ID step.
The last bit(31st bit) in the CPUSS_SYSREQ register is not being deasserted. from what i have saw from the data sheet, this bit will get deasserted automatically after the system call happens. Here in my case what could be the problem ?
Anybody please help
[Analog Coprocessor - Kit 048] Where's eoc terminal on the Scan ADC?
Hi,
I would like to trigger a DMA transfer when the ADC conversion is done, so reading the Scan ADC datasheet found on the beginning of the page 31 that the DMA Req Signal must be triggered with the eoc terminal, but i can't found that terminal anywhere on the datasheet nor the component configuration window.
Been reading that some Analog Coprocessor features are missing in the current PSoC Creator version, so i would like to know if this is one of them (missing eoc terminal).
Attached is a snapshot of the DMA Section on the Scan ADC datasheet.
Thanks in advance
Carlos