Update to use attiny1616 AC2 and TCB1

- Change AVC output enable/disable to only change input/output of pin 7;
  only one pin should need to be used to send (i.e. actual differential
  signaling isn't being used, therefore, we can achieve the necessary
  (single-ended) differential voltage using only one pin, leaving the
  other outputting low)
- Use virtual ports to enable setting output status with single
  instruction
This commit is contained in:
Allen Hill
2023-08-03 11:01:45 -04:00
parent 0a9bd4d988
commit feccda9e69
3 changed files with 67 additions and 95 deletions
+2 -2
View File
@@ -119,8 +119,8 @@ int main()
break;
case 'R': RS232_Print_P(PSTR("REGIST:\n"));
AVCLan_Command( cmRegister );
TCNT0 = 0;
while( TCNT0 < 135 );
TCB1.CNT = 0;
while( TCB1.CNT < 540 );
CHECK_AVC_LINE;
break;
case 'r': AVCLan_Register();