PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I want to use CY3267 for my lighting project.In my study I found that there are only 2 GPIO pins for analog in CY3267.Can the GPIO pins be increased by considering FN0 pins ? My requirement for this project is I2C-2, UART-3, GPIO-10, Relay switch, Turn ON/OFF lights,Dimming lights,WIFI.
Is the module CY3267 works as per my requirement or I should go for other module.Please Can you let me know the perfect microcontroller with the above features for lighting purpose.
Thanks and Regards,
Radhika.
Show LessHello,
I am working on a nixie clock. For backlight I have used Adafruit's Neopixel digital LEDs(based on WS2812). My idea is that color of nixie tube's backlight will reflect which part of minute/hour/day it is. I have taken WS2812 component from somewhere on this forum, and written the code. Also, I did not write color space conversion myself, but I have rewritten some code found on the internet.
The problem is that at 54th second the color does not change as expected, but immediately changes to something like red.
To better diagnose the error, I have rewritten the code to C# Windows Forms appplication. In this form, the code, which is to my knowledge the same, does work as expected.
Can someone take a look at my code, and help me find the difference? I think the difference is not in the code itself, but in the architecture;,but I do not know so much about MCUs.
Thank you,
Stanislav Husár
Show LessHi,
I need to stringify a macro expansion, as with gnu c preprocessor by prepending it with '#', but this dont work and give the error "illegal character `#' ".
The macro is define in makefile as -DVERSION="$(git describe)"
and used as const char Version[] = #VERSION ;
It seems that stringification is possible since there is a preprocessor error saying "Stringified macro arg is too long" in the documentation, but it may have an other syntax.
Please, is anyone have allready used stringification with Imagecraft compiler (PsocDesigner 5.4).
Regard.
Show LessThe reason for this question is that the data sheet for the User Module says, in the example C code:
The same code in C is as follows. Note that the interrupt routine must be written in assembly.
I note however that the User Module comes with an example project, which uses an ISR written in C, so I am wondering it the statement in the User Module data sheet is simply incorrect.
My datasheet is version 2.6, Designer is version 5.4.
I note also that the Compiler Guide says:
To associate the interrupt handler with an interrupt, add ljmp _name at the interrupt vector in the boot.tpl file.
When I look in the boot.tpl file, it says:
org 38h ;PSoC Block DCC12 Interrupt Vector
`@INTERRUPT_14`
reti
so I think the compiler guide is asking me to change this so that it reads:
org 38h ;PSoC Block DCC12 Interrupt Vector
ljmp _MyTimer16Interrupt
reti
Would that be correct? If I do this, it builds but with a warning "old-style function definition for `MyTimer16Interrupt'"
and it warns me that 'boot.asm' has been modified outside of the editor, do I want to reload it. (Words to that effect.)
I can't help thinking that, despite following the instructions, I'm not doing whatever it needs to make it entirely happy. Any suggestions?
Show LessHello Everyone
I have been working on the PSoc3.3 for a while
I am using the UART component to send the AT commands to the modem
During the First AT command execution RX buffer is working as expected and returning all the values in the Debug terminal
Sending the AT COMMANDS second time by using While(1) Loop
AT command are sent to the modem by the UART but the data returning from the modem are missed by the buffer and the values show on the debug terminal is showing some of the incoming data are missed
since last week i have been trying to the find the issue but not able to solve this issue so i am expecting some help or ideas from this group actually i have wrote an circular buffer to process the data return from the Modem
unsigned char rx_buffer[256];
unsigned char ptr_rx_buffer_R; // pointer to position in RxBuffer to write incoming Rx bytes
unsigned char ptr_rx_buffer_W; // pointer to position in RxBuffer to write incoming Rx bytes
CY_ISR(isr_RX_INT)
{
while(UART_ReadRxStatus()& UART_RX_STS_FIFO_NOTEMPTY)
{
rx_buffer[ptr_rx_buffer_W] = UART_RXDATA_REG;
ptr_rx_buffer_W++;
UART_ClearRXBuffer();
}
}
This is my above interrupt function it is working only for the first time after that it is started missing some datas i dont know why please help me to sort out this issue
i have attached the two pictures first one is workign well while in the seocnd picutre you will get clear idea of what i have been facing
Thank you
prabhu
Show LessHi,
I got a problem about RTC marco callbacks.
When I read the parameters of RTC ,it was working.But I want RTC do something every second.So I fininshed some code according to CAG 6.1.6
code of user code is listed below
TaskHandle_t rtc_task_handle;
void RTC_6813_EverySecondHandler_Callback(void)
{
if(rtc_task_handle!=NULL)
{
vTaskResume(rtc_task_handle);
};
}
void rtc_test_task(void *pvparameter)
{
uint8_t data;
for(;;)
{
vTaskSuspend(xTaskGetCurrentTaskHandle());
data=RTC_6813_ReadSecond();
uart_485_send_block(&data,1);
};
}
code of cyapicallbacks.h is listed below
#ifndef CYAPICALLBACKS_H
#define CYAPICALLBACKS_H
/*Define your macro callbacks here */
/*For more information, refer to the Macro Callbacks topic in the PSoC Creator Help.*/
#define RTC_6813_EVERY_SECOND_HANDLER_CALLBACK
void RTC_6813_EverySecondHandler_Callback(void);
#endif /* CYAPICALLBACKS_H */
code of startup is listed below
RTC_6813_Start();
RTC_6813_EnableInt();
xTaskCreate(rtc_test_task,"rtctest",configMINIMAL_STACK_SIZE,NULL,1,&rtc_task_handle);
Other tasks of system are fine.The callback function of RTC was not invoked!
Show LessI am making a signal generator for a school summative project, due in January, but I need it done by the 21st of December as I will be away with family on vacation for 3 weeks.
My plan for this is to have a menu system on a 16x4 HD44780 display, and digital control of external wave-dacs to generate either a sine wave, triangle wave, sawtooth wave, ramp wave, or possibly a custom waveform from an external storage device. There will also be a separate terminal for the square wave that has variables tied to the other waves, but also will have a duty cycle, and pulse setting.
In the menu you will be able to change the frequency, amplitude, voltage offset, duty cycle, table steps, pulse, and be able to reset the settings to default. It will save values on power down. Also in the menu, you can change how much you change values by, in powers of 10: 1, 10, 100, 1K, 10K, 100K, and 1M. There will also be a power on/off switch, and it will likely be a soft power-on button of sorts.
On screen, it will always display the current settings position at the bottom of the display, and will always display frequency as F###, amplitude as A###, offset as V+-#.#, and table step as TS###. Frequency and amplitude will have either nothing, a K, or an M depending on if it is 1000 or above, or 1000000 or above.
The table will have maximum either 256 or 512 steps to still attain a high enough frequency, and I will likely be using a 10mhz wave-dac, as the internal wave-dacs can only reach 1Mhz and no more.
If you have any suggestions, feel free to say. I will try to keep this thread updated as much as I can, whenever I do something on this project.
Dec 12 EDIT:
So the project took some turns away from the original project guidelines I set, but it is ready for operation through two 0.5V from rail opamps (quite a pretty penny for them).
It has it's own case from an old machine that fits it perfectly, and it's powered by a $300 +5V, +24V, +-12V power supply that was lying around for a few years. The unit will have about 8 or 9 BNC jacks on the from panel and can adjust the amplitude of the wave terminals along with the frequency, wave type, and voltage offset. It can also switch the output mode of it's power supply from constant voltage to constant current with a variable feedback resistor on the regulators.
It seems to have gotten very complex, but my dad is an excellent teacher who knows all there is to know for a near expert about electrical components. He built the power supply circuitry without me, but explained it in detail, and did it alone to make it up to CSA standards. The first thing to go is a 2 amp primary input fuse in an inline screw package in the back of the case if anything were to go wrong. It has two low speed fans and a filter, and the PSoC is isolated from the PSU. It also has electrical isolation between the power supply outputs.
All around it looks nice, and will likely be a good instrument in the lab, and will likely fetch a nice score for my final project.
Off topic a bit, the unit has character with a brushed aluminium finish, and stained copper coated aluminium interior, visible through the fans. The front will be a raw wood panel, and will likely be finished over and polished to look nice. I will post a picture when it is complete.
Dec 19 EDIT:
Here is the link to the project page on hackster.io https://www.hackster.io/sam-chamberlain/psoc-5lp-function-generator-school-project-f05047
Show LessHello Everyone,
I'm new using tools from Cypress, so hope someone can help me to solve my doubt, i'm trying to program a CY8C322144 using the PSoC Programmer with Miniprog3, but at the moment when i try to select the family & device, i can't find it, someone knows if i need an additional library or how can i program this uC using the Miniprog3 Tool?
Best Regards
Show LessHi guys,
I have build a new component with the UDB Editor. Now I try to parameterize the data path width.
With varilog this can be done through defining a hardware parameter and separate the code with a if else construct.
But for simplicity I'd like to use the UDB Editor and with this graphical tool I do not find a solution for the problem.
Please Help!
Show Less