nofeletru / UsbAsp-flash

Program allow you to program flash memory on the protocols spi, I2C, MicroWire. Supports CH341a, CH347, UsbAsp, AVRISP(LUFA), Arduino, FT232H.
MIT License
894 stars 184 forks source link

SPIEnterProgMode ALways sends "0xAB" #73

Closed deividAlfa closed 1 year ago

deividAlfa commented 1 year ago

Using CH341. This simple script:

{$TEST}
begin
    SPIEnterProgMode(_SPI_SPEED_MAX);
    SPIExitProgMode();
end

Does this:

image

Zoom:

image

nofeletru commented 1 year ago
//release power-down
SPIWrite(1, 1, $AB);

Some one ask me for this. So it is fine =)

deividAlfa commented 1 year ago

Why? How is this needed for the ch341a to work? If someone needs some special command for his chip, he should use the SPIWrite(), instead sending $AB for everyone?