Other Parts Discussed in Thread: MSP430G2553
I am using the MSP430G2553 chip, and my goal is to hold a line on pin 1.4 low within 2miscroseconds when an external device drives then pin low. More specifically, the MSP430 waits until the pin is pulled low and then switches to output mode and drives/keeps the line low before a 2 microsecond time period is up. My current method (using Code Composer Studio) takes 4 microseconds, and was hoping someone could provide changes to my code or methodology to achieve this higher speed (note: already at maximum DCO speed 16Mhz):
while(*(ow->port_in) & ow->pin); //continuous while loop while line is high
*(ow->port_out) &= ~ow->pin; //change to output
*(ow->port_dir) |= ow->pin; //change pin direction
*(ow->port_ren) &= ~ow->pin; //disable pull-down resistor
