pagekruto.blogg.se

Spi programmer software
Spi programmer software









spi programmer software

It works in the same mode, except a additional I/O buffer that holds data from the second port. I will not talk about CH341StreamSPI5 too. No data is read because there is no slave to send data. I used some 100 ohms resistors because CH341A has 5V levels while the logic analyzer expects 3.3V. I connected my CH341A device to a logic analyzer. The two port mode uses a common clock and common chip select pin, so its usability is somehow limited.ĬH341A MiniProgrammer connected to logic analyzer The chip (slave) select pin can be passed as a parameter to each of these functions. There is one for each port setup (one for single I/O and the other for double port I/O). The API has two main SPI stream functions. Basically, for the MiniProgrammer this is the only bit you have to configure, therefore iMode can be 0x80 or 0x00. If your hardware is MiniProgrammer, D4 and D6 are not connected to anything. D3 remains the common clock source, but D4 and D6 are additional data I/O lines. Setting bit 2 of iMode to 1 enables the second SPI port. Let's see how to use the included library and header to communicate with SPI peripherals.

spi programmer software

The device can actually be used as USB to SPI converter (not only SPI, but this article will focus only on SPI function). If you got a "MiniProgrammer", you may want to use for more than memory chips programming. And this is probably the cheapest device using CH341A. A popular device is the so-called " CH341A MiniProgrammer" that you can buy for 2 to 5 USD. The IC is somehow limited in this configuration, because the programmer makes use only of the SPI and I2C interface. The chip is manufactured by Chinese company Jiangsu QinHeng Ltd.ĬH341A is used by some cheap memory programmers. Check out the correlation between API functions and bus signal sampled with a logic analyzer.ĬH341A is an USB interface chip that can emulate UART communication, standard parallel port interface, parallel communication and synchronous serial (I2C, SPI). See how to use it to control SPI devices with the C/C++ API.

spi programmer software spi programmer software

CH341A is the USB interface chip capable of I2C, SPI and serial communication.











Spi programmer software