PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I was wondering if it is possible to configure the Default ID settings for a LIN Slave 4.0 component on the PSoC 5LP to receive frames with PID 0x3C and 0x3D. The datasheet seems to indicate that this isn't possible, but I just wanted to confirm.
Thanks,
Daniel
Show LessI have been playing with an example project with a single 16 bit UDB counter in it in order to choose where to place the component in the UDB array of the PSoC 5LP that I am using.
I am successful in being able to choose where the sub-components of the counter are placed. For example when forcing the first datapath (1 of 2) at location 0,0 of the array, I create a directive and assign:
\Counter:CounterUDB:sC16:counterdp:u0\ ForceComponentUDB U(0,0).
When reading https://www.cypress.com/file/137441/download , and learning how to write a control file I have tried to create the same manual assignment of this datapath using the following logic:
attribute placement_force of \Counter:CounterUDB:sC16:counterdp:u0\: signal is "U(0,0)";
This statement, however, is not causing an effect on this component. I made sure to follow the directions in order to create a control file for the project. But when building the project nothing seems to change. Does anyone have experience with this?
I just would ideally like to edit a text file rather than interface with the GUI directives tab in order to manually place components in the UDB array.
Thank you!
Show Lesshi;
I'm trying to run an LCD on kit059.
but when selecting pins p12 [6: 0] and p12 [7: 1] blue others white.
for example, if I select p0 [6: 0], the lcd does not work. nothing on the screen.
but if I select p12 [6: 0] or p12 [7: 1], the lcd works.it works when you assign another task to the other pins. but I don't understand what the problem is.
Do we have to choose p12 [6: 0] or p12 [7: 1]?
Best Regards.
Show Less
I am currently working on a node to node communication project where the PSoC5LP is being used as a node. There is a 70.77888 MHz external crystal on each PSoC which ensures a consistent clock rate among the entire network.
Each node has a North and South full duplex Uart: baud rate of 115200, interrupt on byte received, no parity, and 1 stop bit. I have created my own software buffer system where there are two arrays that take turns buffering bytes for each Uart (ping pong), and a pointer will hold index 0 of whichever array is currently buffering bytes. This pointer is then used in the ISR which increments a single index for where to place the incoming byte. My two ISR routines are shown below with the associated buffers, pointers, and indices.
volatile uint8* NorthSerialBuffer; // north serial Rx Buffer pointer (extern in .h)
volatile uint8* SouthSerialBuffer; // south serial Rx Buffer pointer (extern in .h)
volatile uint8 NorthBuffer0[SERIAL_BUFFER_SIZE]; // north buffer 0
volatile uint8 NorthBuffer1[SERIAL_BUFFER_SIZE]; // north buffer 1
volatile uint8 SouthBuffer0[SERIAL_BUFFER_SIZE]; // south buffer 0
volatile uint8 SouthBuffer1[SERIAL_BUFFER_SIZE]; // south buffer 1
volatile uint16 NorthBufferIndex; // north buffer index (extern in .h)
volatile uint16 SouthBufferIndex; // south buffer index (extern in .h)
// north serial uart receive byte interrupt, stores a byte into NorthSerialBuffer and incrementes NorthBufferIndex
CY_ISR(ReceivedNorthByte) {
NorthSerialBuffer[NorthBufferIndex++] = uComNoUart_RXDATA_REG;
}
// south serial uart receive byte interrupt, stores a byte into SouthSerialBuffer and incrementes SouthBufferIndex
CY_ISR(ReceivedSouthByte) {
SouthSerialBuffer[SouthBufferIndex++] = uComSoUart_RXDATA_REG;
}
The issue I am having is when I use a cable to tie a node to itself, it will send and receive bytes with no errors (so far I haven't encountered an error or issue). But once I link nodes together they seem to be sending and receiving the correct bytes if the string of bytes is under around 20 bytes. But once I send bytes longer than 20 they eventually start to read bytes incorrectly. If there are no Uart errors with one node by itself, why would linking another node with the same code create so many issues with reception?
Also, I have been using the SouthBufferIndex and NorthBufferIndex volatile variables in order to determine where my software buffers are currently. Sometimes in blocking statements like while (NorthBufferIndex < 10) {}. Is using a busy wait like this bad practice even though it is a volatile variable?
Show LessHi,
I'm using PSOC Creator 4.2 with a PSoC 3 chip. I have on PSoC design that is going on two boards with different form factors, so the PSoC 3 chip will require different pinouts on the two boards. I'd really like to avoid having to support two separate projects in two separate rev control repos.
Question: How can I edit one file to generate the two unique pinouts. Any ideas?
Thanks,
-Bob
Show Lesshello ,
i have two situations and some questions show below.
a)i have a project need to measure AC voltage and current.both of voltage and current sensors Vout have dc offset which depend on how much power source i give them.
i connect CY8CKIT-059 to my computer through usb port and i measure its Vdd,it shows 4.6V.so i provide this Vdd to my sensor then sensor's dc offset goes to 2.3V at AC 0V.
but when i disconnect usb port and connect it again,Vdd will be changed to 4.52V sometimes will be 4.38 or 4.44V.it will cause dc offset change to 2.25V or 2.19V at AC 0V.
1.could someone tell me why Vdd is not stable?
b)i convert adc value to mV,the value should be 2300V at 0V.unfortunately there are some noise to cause value unstable(value would be 2324,2285,2292...).
i have gone through datasheet and don't understand description that i marked.
1.do that mean if i want to filter the noise,i can connect sensor Vout to P0[2] or P0[4]?
2.if i choose Internal Vref,bypassed mode,i can't choose those as analog high-z pins.is that right?
3.what if i set Internal Vref,bypassed mode and higher conversion rate,will the value be more stable than Internal Vref mode?
all i want to do is filter noise and eliminate error as much as i can.but i have no idea about it.
need some suggestions,please.
sean
Show Less--- Inquiry background ---
CY8CMBR3108 does not have a reset terminal.
For example, I want to turn off the power when malfunctioning due to noise.
At this time, I want to turn off the power after dropping pins 14 to 16 to low level at the host.
--------------------------
I want to confirm the output terminal configuration of pins 14 to 16 of CY8CMBR3108.
I understand that pins 14-16 are open drain terminals.
Q1.
Do these pins not output High in the internal settings?
*
I don't think pins 14-16 are open drain and these pins never output high.
I want to make sure that this is correct.
Best Regards,
Harukawa
Show LessHi,
the attached project tries to sample a differentiell voltage into an array. Each time a button is pressed these shall be sampled and stored into an array. After aquiring the sample array shall be written out to the UART.
I'm using the Cy8CKit-059 and see useless values even I short cut the inputs and ground them (expecting to see 0V).
---8<--
Press Trigger button to sample
Start sampling
Dump samples:
Sample 0: -24576 mV
Sample 1: -28672 mV
Sample 2: -28672 mV
Sample 3: -28672 mV
Sample 4: -28672 mV
Sample 5: -28672 mV
Sample 6: -32768 mV
Sample 7: -28672 mV
Sample 8: -24576 mV
Sample 9: -28672 mV
Sample 10: -28672 mV
Sample 11: -28672 mV
Sample 12: -28672 mV
Sample 13: -28672 mV
Sample 14: -28672 mV
Sample 15: -28672 mV
Sample 16: -24576 mV
Sample 17: -24576 mV
Sample 18: -24576 mV
Sample 19: -28672 mV
Sample 20: -28672 mV
....
Sample 188: -24576 mV
Sample 189: -24576 mV
Sample 190: -32768 mV
Sample 191: -32768 mV
Sample 192: -28672 mV
Sample 193: -28672 mV
Sample 194: -28672 mV
Sample 195: -24576 mV
Sample 196: -28672 mV
Sample 197: -28672 mV
Sample 198: -32768 mV
Sample 199: -28672 mV
--- 8<----
I expect to see values between +/- 2048 mV, even not approx. 20V
What's gone wrong here and how can fix it?
Thanks
Show Less以下、供給状況を御教示ください。
・CY8C5488FNI-LP212 90pcs/Tray
Tray梱包品も、供給可能ですか?
・CY8C5888FNI-LP214
末尾peripheral:4、は供給されていますか?
まだであれば、予定を教えてください。
こちらも、Tray梱包品が供給可能かどうか、知りたく思います。
宜しくお願い致します。
Show LessI'm trying to setup the EEPROM in my project so that the first 16 rows are not overwritten when I reprogram the chip.
I found this old thread:
Re: How to include PARTIAL EEPROM in Hex/CYACD File?
But after setting the EE Offset in the linker file to some non-zero value I lose the ability to set the EEPROM entirely when programming the chip.
I have attached the linker file that I created.
I've never touched the linker file before so I might be missing something simple.
Show Less