by Fritzoid » Thu Apr 01, 2010 1:26 pm
by Fritzoid
Thu Apr 01, 2010 1:26 pm
Hi Ryan,
Like Mike said, so far you've shown only shown us the code for a write command. Let's see your read command. Also you've shown us the subroutines, but not the calling sequence. What does main control loop look like?
Finally, the AX-12 manual schematic shows the port direction controlled by a single bit. Yet, your dp_termina() and dp_kirim() are toggling two different bits. Which port is actually connected to the 74HC04? Or is your circuit different, i.e. no inverter at all? We need to know a little more about your hardware setup to be certain the problem isn't in the circuit.
Hi Ryan,
Like Mike said, so far you've shown only shown us the code for a write command. Let's see your read command. Also you've shown us the subroutines, but not the calling sequence. What does main control loop look like?
Finally, the AX-12 manual schematic shows the port direction controlled by a single bit. Yet, your dp_termina() and dp_kirim() are toggling two different bits. Which port is actually connected to the 74HC04? Or is your circuit different, i.e. no inverter at all? We need to know a little more about your hardware setup to be certain the problem isn't in the circuit.