PSoC™ 4 Forum Discussions
Hi,
I want to create a GPIO expander on a PSOC4, but not for a serial interface like SPI/I2C. Instead, I want to interface with a 8-bit data bus. There are many GPIO expander devices for SPI/I2C with several features (even bit-wise input/output functions), but it seems that there are only few to zero devices with parallel interface and extended features (someone might still know the 82C55, for example).
So, I want to create a device with a 8-bit bidirectional data bus, read/write and chip-select strobes as well as some address bits (e.g. for selecting the IO functions and configuring the slave device).
As far as I understand the UDB capabilities, I should use the PI (parallel in) and PO (parallel out) functions of the UDB.
However, I don't get the starting point, e.g. how to synch the I/O operation with the read/write/CS strobes. If someone can help me to build up the parallel interface or pointing into the right direction, this would be great.
Currently I only have some concepts, but they all seem to lead to a 'big' CPU overhead managing the configuration of the ports, which leads to a second problem: if most of the configuration and data transfer to/from the ports to the parallel interface is done by the CPU, I assume that the access timing of the ports will be in a very large area. So, the question is if it's possible to let the UDB do most of the port bit configuration and especially the data transfer.
The questions in short:
1) how to create a parallel slave interface for a 8-bit data bus with read/write/chip-select strobes and address inputs
2) how to keep access timings small
Regards,
Ralf
Show LessHi,
I want to avoid reinventing the wheel; so checking if someone has a version of the OLED library that Adafruit developed for Arduino :
https://learn.adafruit.com/monochrome-oled-breakouts/arduino-library-and-examples
If so, please share..
Thanks
Show LessHello Folks,
I have a second problem which i think needs a seperate thread.
I got a SSD1306 OLED Display running connected to a PSOC 4.
Now i wanted to connect two. Yes I know the SPI Bus is able to control more than one Device. but the displays i have dont have a chip select input -.- its really sad. so i thought its running via SPIM_UDB so i would hook MOSI and SCK to two de multiplexer and then switch between them with a control register. The D/C and RESET pins i control already seperate.
NOPE not working. I got a dissortet Transmission and also missing bytes while Data transmit to the RAM. Then i thought i could use a analog switch but the editor dislikes my idea.
Are there any possibilities to do that ? Maybe that my port choosing is not quite effective for the demux.
Ah, if i rewire the ports in the TopDesign each Display works seperately . ( if i hookup each set of pins directly to the UDB component).
here the connection chart:
SCK_1 = 1.5
MOSI_1=1.4
RST_1= 1.3
D/C_1 = 1.2
SCK_2 = 0.1
MOSI_2=0.0
RST_2= 4.3
D/C_2 = 4.2
Hi All
I am working on a project in which I need to implement a Master Device (Pioneer Kit) and a Slave Device (Prototyping Kit) that communicate with each other through I2C. I have designed two different projects named I2C_MASTER1 and I2C_Slave that are attached here inside a zip file called I2C_Comm (1). The functionality that I want to implement is as below:
1. The master sends a character to the slave thorugh I2C.
2. The slave receives the character and does some process on it.
3. The master reads the processed character from a slave and then sends it to PC using UART.
I am not getting the desired results as of now. Anybody working in this direction can guide.
Thanks and Regards
Shaunak
Show LessHi
Is it possible to locate a tutorial for setting up a BLE connection? Not the configuration for the BLE component and the profiles, but subscribing to notification, reading or writing etc.?
I have looked on a BLE example, but that doesn't help me where to start. And in the Lab exercise you only configurate the BLE component and all the code is prewritten for you.
Show LessPleasehelp me understand the op-amp datasheet of psoc-4
The datasheet of PSoC-4 Op-Amp reads:
[1] I_OUT_HI = 10mA (minimum)
max and typ are not specified. What is the meaning of minimum 10mA?
[2] V_OUT @ I_Load 10mA = 0.5V min and Vdda - 0.5V max
What is the meaning of this? The output should not fall below 0.5V?
[3] It written.... "Low resistive connections are made from the
Opamp to three select pins to provide optimal performance."
What's the meaning of this? Does it mean that only three pins of the GPIO can work faithfully with the op-amp? Which three pins?
Show Lessproblems sending data of adc and uart :
I want to use STOP input in PWM mode. Datasheet says that STOP should be available in all modes, but it is not visible.
How can I make use of this input?
Show LessHi,
I am having some issues with the emulated EEPROM. I have set it up as a set location in flash memory 0x1a00 using the linker and MYSECTION params. However, everytime I reprogramm the device it clears all the flash memory. How can I ensure it does not do this when I am reprogramming it?
I can attach a project if that would help. I am using the PSoC4 prototyping kit.
Regards,
Lance
Show LessHi all,
I completed my project human detection using IR proximity sensor in PSoC. I used GSM module also. I want to calculate power consumed by chip while working. From where I can calculate the power cunsumed by chip...????
Actually I want to compare it with power consumed by other devices. Please give me suggestions.
Thanks.
Show Less