From 7f8ef2d4aa4859f7e70571c88d5ca764803713b5 Mon Sep 17 00:00:00 2001 From: Kunal-Radhika <74853558+Kunal-Radhika@users.noreply.github.com> Date: Mon, 23 Nov 2020 16:13:24 +0530 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dd9971..014e210 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,18 @@ The following example code is considered to demonstrate how the data flows from ![14](https://user-images.githubusercontent.com/74853558/99946186-f3e53e00-2d9b-11eb-94d2-cc161b408bdc.jpg) -The example code has a bitstream of 44bytes. This is sent through data packet in data field. +The example code has a bitstream of 44bytes. This is sent from host to device through data packet in data field. ![6](https://user-images.githubusercontent.com/74853558/99905235-a57d6400-2cf5-11eb-9f23-9140bd84b50f.jpg) +The data transfer from device to the host is done when host is ready to accept data, it sends token packet. The device then sends data. ![7](https://user-images.githubusercontent.com/74853558/99905237-a7472780-2cf5-11eb-8387-13a4a12ac96b.jpg) +FT2232H has multiple configurations like synchronous bitbang interface, asynchronous bitbang interface and MPSSE (Multi-Protocol Synchronous Serial Engine) interface. MPSSE mode allows communication with different types of synchronous devices like SPI, I2C, JTAG etc. + ![8](https://user-images.githubusercontent.com/74853558/99904997-158aea80-2cf4-11eb-925a-c565d1dcbe6b.jpg) +SPI communication has 4 modes for data transfer depending on clock polarity (CPOL) and clock phase (CPHA). FTDI device can only support mode 0 and mode 2 whereas flash memory (S25FL128S) has only 2 clocking modes i.e mode 0 and mode 3. + ![9](https://user-images.githubusercontent.com/74853558/99904999-16238100-2cf4-11eb-9220-c5b521bf7785.jpg) ![10](https://user-images.githubusercontent.com/74853558/99905000-16bc1780-2cf4-11eb-9f24-1c89a508696d.jpg)