??? 07/26/05 14:11 Read: times |
#98165 - ISP: SPI vs UART continued... Responding to: ???'s previous message |
Craig Steiner said:
Even if the hardware is just a simple shift register, there still has to be logic regarding what to do with an ISP command once it is shifted in. It's already there - the programming and readout circuitry is already used for parallel programming. So the "only" extra thing needed is a command decoder - but it seems to me to be rather trivial, hence I think not too many chances to spoil it. And don't forget, the UART-ISP DOES involve extra circuitry - that one which is used for the ISP invocation; and indeed it has become a major issue for UART-ISP (see the "lost bootvector" case, whatever is the cause of "loss", the result is a defunct chip (*)). Craig Steiner said:
I'm not convinced that a UART approach has a higher probability of error than a shift register--and a UART has the added advantage that we shouldn't have these problems with strange cables that sometimes have restrictions such as "don't exceed 1 foot cable length", undocumented or incorrectly documented timing in datasheets, and guessing the size of the resistor we should place in-line in the cable. Craig, you are speaking from the viewpoint of the user, whereas I am speaking from the viewpoint of the manufacturer. From this point of view, the SPI-ISP is simpler and safer in many respects. Of course, the manufacturers standpoint is (or should be), that the user should use a proper programmer, as he would use for parallel programming (here comes the kitchenware-problem). Don't get me wrong, I am not advocating the SPI-ISP approach. I in fact like the UART-ISP, but not for it's better, safer, simpler, or anything; but for it can be modified by the user - if it's not wired in some obscure ROM - I don't like that variety - and I also don't like the other variety, if it IS in a FLASH and CAN be upgraded, but the manufacturer DOES NOT mention even the possibility of it (and what even publishing the reprogramming details). Craig Steiner said:
In short, it seems that a UART-based ISP has to be debugged and verified once by the manufacturer before they ship their part Oh yes, that's a good point. Rather, it ought to be debugged. Search the fora worldwide; you will find at least as many complaints on UART-ISP as on SPI-ISP. And, obviously, they are NOT caused by improper "cable"... so what, then? Jan Waclawek (*) don't catch me by words: can be recovered by parallel programmer - if one has any |