PSoC™ 5, 3 & 1 Forum Discussions
Hi everyone
I'm porting code from CY8C27143 to CY8C29466.
Change from Read Interrupt is working well on a 27143 device but not on 29466.
I isolated to minimal code and still nothing , I can't spot what is wrong.
Any clue will be very welcome
This is the code im using:
_main:
M8C_EnableGInt
M8C_SetBank1
or reg[PRT0IC0],0x08
or reg[PRT0IC1],0x08
; Enable P0_3 interrupt
M8C_SetBank0
or reg[PRT0IE],0x08
;Enable GPIO interrupts
M8C_EnableIntMask INT_MSK0, INT_MSK0_GPIO
.terminate:
;xor reg[PRT1DR],0X02 ;debug
jmp .terminate
PSoC_GPIO_ISR
mov A,reg[PRT0DR] |
xor reg[PRT1DR],0X02
reti
Thanks in advance
Luis
Show LessI know there were discussions in the past related to sprintf, yet I cannot accomplish a simple task: to print on LCD a float using sprintf.
I use CY8CKIT-059 Kit and a Character LCD. The LCD displays everything but it fails to display a float number. For clarity I attach the bundle.
Is there something not right with stdio, or the sprintf... I ran out of ideas and the code looks so simple:
#include <project.h>
#include <stdio.h>
int main()
{
char str[16];
float Numb3r = 3.1416;
LCD_Start();
LCD_Position(0,0);
sprintf(str, "Pi = %1.4f...", Numb3r );
LCD_PrintString(str);
}
Is there a known bug, or anyone knows an workaround...
Thanks.
Show LessHi everyone!
We are a gruop of italian student who are using PsoC for the fist time! We are trying to configure our ethernt shield which has an ENC20J60 microchip on our PsoC5LP.
We have already read about people that use the same shild with PsoC3 but our model is different and in turn olso the code will be different.
Our scope is to configure from the phisical layer up to the transport layer in order to obtain a comunication using the TCP/IP protocol.
The hard part start already to the phisical layer where we have to configure the psoc SPI and syncronize the clock with the ethernet shield.
Is there someone that has already use this ethernet shield and have some experience so it can give us some advice?
Thanks for pay attantion
Federico
Show LessChinese : 我在使用CY8C24794的Capsense功能的时候,遇到一些困惑,也问过Cypress的代理,还是没有解决。我应用PWM8 的CSDADC模块,想让一些作为Sensor通道的IO产生频率与recharge colck一样的方波。具体点就是,想让当Sensor X通道扫描前后产生频率
与recharge colck一样的方波,电压范围是0~3.3V ;当扫描时产生频率与recharge colck一样的方波,电压范围是1.64(Vref)~3.3V.
我在固件中添加和修改一下命令尝试也没用。 AMUX_CFG|=0b00010111; MUX_CR2 |=0b00000000;
Translation below by myself with my poor english !
Hello!New friends and interested persons around world.
I want to know how to make a signal with precharge clock
I have doubts about use CY8C24794 Capsense function with PWM8 CSDADC module. there is still no solution ,though, also asked chinese Cypress agents,How to do some IO as a Sensor channel make a square wave that the frequency equal to recharge colck's. In other words: GPIO connected Sensor X channel scan make a wave that frequency equals to recharge colck's before and after Sensor X is scaned.The same square wave voltage range is 0 ~ 3.3 V before and after Sensor X is scaned and During scanning sensor the voltage range of Vref ~ 3.3 V . it's no useful.,when I added and modified related code in the firmware for example :AMUX_CFG | = 0 b00010111; MUX_CR2 | = 0 b00000000;
Also,I upload a picture and a file.
If someone know the way ,you can tell me .I will apprecite you !
Show LessHi Bob,
Thank You for your reply but right now i don't have Oscilloscope images but i attach My SPI flash code please check my code its correct or not
Show LessWhy does the RTC data sheet caution "You should disable the component’s interrupts while calling functions that read or modify global variables."
A sentence or two of why this caution is mentioned in the RTC datasheet would seem to be appropriate. Datasheets for other components, such as the Interrupt component make no similar mention.
Show LessHow programming low power: look-for-proximity with Arduino for exemple?
I want to interface spi flash(i.e.SST25VF016b) externally I read JDEC for SPI flash successfully but writing Array Data was not successful i read continously 0XFF so please help me here is my code please check attachment.I refer datasheet also all are correct but but reading are 0XFF
Show Less