111000000000 //AS RD WR BusDrive 8-Data 111000000000 //waiting for channel1 decoder to count a few 111000000000 111000000000 111000000000 111000000000 111100001100 //write to the interrupt enable for brake 1 and global 011100001100 011100001100 111000000000 110100001111 110100001111 111000000000 111000000000 111000000000 111000000000 011100000011 111000000000 110101000000 111000000000 111000000000 001000000000 111000000000 111000000000 001000000000 111000000000 111000000000 001000000000 111000000000 111000000000 101000000000 111000000000 111000000000 111100001111 011100001111 111100001111 111101010101 //now read the holding register, which should latch the entire 24 bits of 110101010101 //channel1 111101010101 111000000000 000000000000 010000000000 010000000000 000000000000 000100000010 //read middle byte 100100000010 000100000010 000000000000 010000000000 000000000000 000100000011 //read high byte 100100000011 000100000011 000000000000 010000000000 000000000000 000100000110 //write to power control 100100000110 000100000110 000000000000 000110101010 //write the value AA 001110101010 000110101010 000000000000 000100000100 //read from Lswitch 100100000100 000100000100 000000000000 010000000000 000000000000 000000000000 000100001001 //write to interrupt register to enable the Home Found flags 100100001001 000100001001 000111100000 001111100000 000111100000 000000000000 000000000000 000000000000 000000000000 000000000000 000000000000 000100001010 //stimulator should have caused a force brake, see if it is there 100100001010 //read the interrupt status register 000100001010 000000000000 010000000000 010000000000 000000000000 000000000000 000000000000 000100001101 //a write to the int reg to see if we can reset the force brake int 100100001101 000100001101 000101100000 001101100000 000101100000 000000000000 000100000111 //enable the find home with positive edge sense 100100000111 000100000111 000100110011 //enable both 1 and 3 for positive edge 001100110011 000100110011 000000000000 000000000000 000000000000 000000000000 000100001010 //try to clear the interrupt 100100001010 000100001010 000110100000 001110100000 000110100000 000000000000 000000000000 000000000000 000000000000 000000000000 000000000000 000000000000 000000000000 000000000000 000100000100 //read from Lswitch to see if home found worked 100100000100 000100000100 000000000000 010000000000 000000000000 000100000010 001100000010 000100000010 000000000000 000000000000 000000000000 000000000000 000000000000 000100001100 //Write to the MISC outputs 100100001100 000100001100 000100010101 001100010101 000100010101 000000000000 000100001011 //Read the I2C address 100100001011 000100001011 010000000000 010000000000 000000000000 000000000000 000000000000 000100001010 //try to clear the interrupt 100100001010 000100001010 000110100000 001110100000 000110100000