PSoC™ 5, 3 & 1 Forum Discussions
Hello,
I would like to ask for help or explanation why my data in variable "char serial_rx_iEPC_buffer[200];" are spontaneously re-written by random values.
Background:
I am using UART v2.50 and isr routine to capture data on CY8CKIT-059. When I am receiving 3rd or sometimes 2nd message from BUS (19200 bps), the data in my buffer on the first several bytes (3 ... 9) are filled with a random data (not occurred on BUS) after n-th entering ISR from UART Rx. I am writing to buffer only at one place - at line #97 (and not using pointers in my code).
Problem solved when I used the second buffer variable - the same size, writing to it same way as the first one. The first one is still filled by data, just not used in further code... But I still do not know, why the first buffer changes its data.
The same behavior observed at another device - the second CY8CKIT-059.
Attached:
On the figure there are log of BUS signal and logs of both buffer contents with red-marked wrong data
On the serial.c there is code which causes a troubles...
Thank you in advance for any comment to help find explanation to avoid it in next applications and save several days of work!
Jan
Show LessHi ,
IN CY8C5468AXI-LP106 , We have used ADC_SAR_Seq for reading some senors . And used a timer to trigger the reading (every 10ms ). On completion ADC_SAR_Seq ISR we are reading sensor data to a global buffer .
CY_ISR_PROTO(ADC_ISR);
ADCSensor_Start();
ADCSensor_IRQ_Enable();
ADCSensor_IRQ_StartEx(ADC_ISR);
CY_ISR(ADC_ISR)
{
// NON BLOCKING LOGIC of reading
/* Re intialize the timer count */
Timer_WriteCounter(Timer_INIT_PERIOD);
/* Read and clear Timer ISR */
Timer_STATUS;
}
We are facing one strange problem. Out of thousands of units in few places this ADC reading ISR is stopped . When we powered off and ON the unit the ADC reading resumed as expected .
ADC ISR code is really straight forward . We have ruled out Stack overflow / corruption scenarios .
So my question is ,
from the above implementation anyone seeing any issue ?
Is there any known issues in ADC_SAR_Seq that can cause this behaviors ?
Any internal error can cause ADC_SAR_Seq to stop giving ISR ? .
any help would be greatly appreciated .
Show Lesshello, I am new for this field and I have a case where a board is given to me with some sensor attached to, now a wifi module is connected to the board which would be transmitting data collected by sensor. Now the problem is, There is USB port attached to the board but my computer is not even able to detect when i plug the device with cable(I am sure that cable and my laptop port are working). The thing is when I connect the board with computer, LED of the board do light up but nothing shows up in the computer. Can you guys help with connecting to the circuit?
For information I am using chip of this family - CY8C5868LTI-LP038.
Thanks in advance
Show LessDo CY8CKIT-059 and CY8CKIT-002 support online burning of CY9BF122KQN-G-AVE2 QFN-48 CYPRESS
I am trying to create a combined device of dual CDC and mass storage class in USBUART component of Psoc5lp.
I am using the USBUART_SerialNumString function to set the USB serial number but I can not set it.
Is there anything wrong with the device descriptor settings?
The device descriptor registers the following three things for reference, and it is possible to set the USB serial number for 1 and 2 using the USB UART_SerialNumString function.
1. Dual CDC 2. Single CDC 3. Dual CDC and MSC
Show LessHi,
I would like to ask again about the calculation of Cs.
PSoC5LP Get Seneor Capasitance API
We refer to the project you received.
Please tell us about the number 100663 about the calculation result in the project,
Vref : 1.024V
Resolution : 16bit = 65536
*fs = 100663 / ( 1.024 / 65535 ) = 1.5
fs = 0.667
fs is "the switching voltage of the pre-charge clocks".
We understand that fs is not frequency[Hz] but voltage
Where should this value refer to a project?
Regards,
Show LessGood day,
I am newbie to PsoC. Recently, I am doing a project of improving impedance meter(original resources: Chris Keeser) which able to process with 0.01Hz frequency by using PSoC 5LP Developing Kit. The figures below shows the TopDesign analog circuit and digital circuit:
Analog Circuit
Digital Circuit
The frequencies were generated by using Divider(PWM) with the frequencies range 0.01Hz, 0.10Hz, 0.20Hz, 0.50Hz, 1.0Hz, 2.0Hz, 5.0Hz, 10.0Hz, 50.0Hz and 100.0Hz and the periods(in micro second) write into Divider are 250000, 25780, 12890, 5155, 2577, 1288, 515, 257, 51 and 25 respectively to the frequencies.
The problem discovered from the data sheet of Pulse Width Modulation was the range of period count can be wrote for the divider maximum for 16 bits wide resolution where the period assigned for 0.01Hz is 250000 which exceed the 16 bit wide range and the frequencies measured with oscilloscope showing the value x100Hz than the frequencies needed and waveform showing unstable at 100Hz.
Is there any suggestion for process the 0.01Hz to the circuit in another ways and solve the problems of generating correct frequencies?
Thank you.
Dawn
Show LessHi,
This is to announce that a new version (1.0) of the Annotation Library been uploaded into Community Code Examples section:
The Library can be used to annotate PSoC projects and create schematics. The Library Datasheet is attached.
regards,
odissey1
Show Less
i have four switches attached to 4 input pins with resistive pull ups in a CY8CKIT-059 PSoC 5LP
pressing a switch or releasing a switch causes an interrupt that saves the time according to a
fixed function counter, 16 bit (interrupt occurs on rising and falling edges)
the interrupt routine writes a variety of information to a character LCD display
including which pin (switch) was pushed or released, how many datum have been recorded,
and the recorded data
after programming or after reset (switch on kit-059) the display shows "release"
but "release" is written to the display only on a rising edge (switch release) interrupt
in addition, count start command (API) is supposed to happen on first switch activation (regardless of switch)
but it appears to start immediately
also, if one waits a while before pressing a switch, it is clear that the counter has counted (is not at max count)
hence it looks like the interrupt service routine is run once before any switches are pressed
why is that happening and what can i do about it?
archive bundle attached
Show LessHi,
i use the ADC_SAR_SEQ with Input Range 0.0 ± 1.024V (Differential)-Input +-VREF, Build is succesfull but i get following information:
ADD: sdb.M0065: information: Analog terminal "vdac_ref" on ADC_SAR_SEQ_v2_10 is unconnected.
* C:\Users\Tom\Documents\PSoC Creator\4.1\Downloads ( 4.1).cylib\ADC_SAR_SEQ_v2_10\PSoC5\ADC_SAR_SEQ_v2_10.cysch (Signal: vdac_ref)
* C:\Users\Tom\Documents\PSoC Creator\4.1\Downloads ( 4.1).cylib\ADC_SAR_SEQ_v2_10\PSoC5\ADC_SAR_SEQ_v2_10.cysch (Shape_798)
* C:\Users\Tom\Documents\PSoC Creator\4.1\Downloads ( 4.1).cylib\ADC_SAR_SEQ_v2_10\PSoC5\ADC_SAR_SEQ_v2_10.cysch (Shape_885)
Normally i would have expected vref must to be connected.
Now i'm not sure i can ignore this message?
thank you in advance
Thomas
Show Less