############################################################################3 COMMANDS FOR MICROCHIP (USES SPEED AND POLARITY WITH K0-K1 SET IN MODE 0) S=START BIT PROCESSING T=TIMEOUT IN STRING G0-G1=VDD (MOSI) PIN DOWN-UP CONTROL (WEAK) bit0=PB3=MOSI G0-G2=LVP (MISO) PIN DOWN-UP CONTROL (OPEN DRAIN IMITATION)(=NEW) bit1=PB4=MISO G0-G4=MCLR (SCK) PIN DOWN-UP CONTROL (WEAK) bit2=PB5=SCK (OLD FIRMWARE MUST SKIP NEW COMMANDS) ***X0-X1 not used??? -USED!!! DIRECT SDA-SCL CONTROL! USE SPEED!!! (and speed-assisted pause between bytes!) X0-X1=SDA tik-setsda X0-X2=SCL tik-setscl for K0 tik-dataset-sclup-tik-latchdata-scldown for K1 dataset-tik-sclup-latchdata-tik-scldown pic32 sample on falling pulse, but set data on falling pulse dspic30f - all sample on falling, set on rise pic 24 sample in by rise, et data by rise! pic18, pic84 tx on rise, sample by fall, read too mclr enable 13v by hi-level or low level mclr driven by sck-pin from header (weak levels) vdd driven by mosi-pin from header (weak levels) default levels for idle = low (with K0 in mode 0)= HI IMPEDANCE ON START MODE!