Changeset 10051 for firmware/FTU/rs485
- Timestamp:
- 11/10/10 16:21:52 (14 years ago)
- Location:
- firmware/FTU/rs485
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FTU/rs485/FTU_rs485_control.vhd
r10050 r10051 247 247 case FTU_rs485_control_State is 248 248 249 when INIT => 249 when INIT => -- reset CRC register 250 250 reset_crc_sig <= '1'; 251 251 FTU_rs485_control_State <= RECEIVE; … … 373 373 end if; 374 374 375 when SET_DAC_WAIT_2 => 375 when SET_DAC_WAIT_2 => -- wait one cycle for CRC calculation 376 376 crc_enable_sig <= '0'; 377 377 FTU_rs485_control_State <= SET_DAC_TRANSMIT; … … 396 396 end if; 397 397 398 when SET_ENABLE_WAIT_2 => 398 when SET_ENABLE_WAIT_2 => -- wait one cycle for CRC calculation 399 399 crc_enable_sig <= '0'; 400 400 FTU_rs485_control_State <= SET_ENABLE_TRANSMIT; … … 417 417 end if; 418 418 419 when SET_PRESCALING_WAIT_2 => 419 when SET_PRESCALING_WAIT_2 => -- wait one cycle for CRC calculation 420 420 crc_enable_sig <= '0'; 421 421 FTU_rs485_control_State <= SET_PRESCALING_TRANSMIT; … … 444 444 end if; 445 445 446 when READ_RATES_WAIT_2 => 446 when READ_RATES_WAIT_2 => -- wait one cycle for CRC calculation 447 447 crc_enable_sig <= '0'; 448 448 FTU_rs485_control_State <= READ_RATES_TRANSMIT; … … 468 468 end if; 469 469 470 when READ_DAC_WAIT_2 => 470 when READ_DAC_WAIT_2 => -- wait one cycle for CRC calculation 471 471 crc_enable_sig <= '0'; 472 472 FTU_rs485_control_State <= READ_DAC_TRANSMIT; … … 491 491 end if; 492 492 493 when READ_ENABLE_WAIT_2 => 493 when READ_ENABLE_WAIT_2 => -- wait one cycle for CRC calculation 494 494 crc_enable_sig <= '0'; 495 495 FTU_rs485_control_State <= READ_ENABLE_TRANSMIT; … … 512 512 end if; 513 513 514 when READ_PRESCALING_WAIT_2 => 514 when READ_PRESCALING_WAIT_2 => -- wait one cycle for CRC calculation 515 515 crc_enable_sig <= '0'; 516 516 FTU_rs485_control_State <= READ_PRESCALING_TRANSMIT; … … 532 532 end if; 533 533 534 when PING_PONG_WAIT_2 => 534 when PING_PONG_WAIT_2 => -- wait one cycle for CRC calculation 535 535 crc_enable_sig <= '0'; 536 536 FTU_rs485_control_State <= PING_PONG_TRANSMIT; -
firmware/FTU/rs485/FTU_rs485_interpreter.vhd
r10050 r10051 110 110 case FTU_rs485_interpreter_State is 111 111 112 when INIT => 112 when INIT => -- reset CRC register 113 113 reset_crc_sig <= '1'; 114 114 FTU_rs485_interpreter_State <= WAIT_FOR_DATA; … … 134 134 reset_crc_sig <= '0'; 135 135 136 when WAIT_CRC => 136 when WAIT_CRC => -- wait one cycle for CRC calculation 137 137 crc_enable_sig <= '0'; 138 138 FTU_rs485_interpreter_State <= CHECK_CRC; 139 139 140 when CHECK_CRC => 140 when CHECK_CRC => -- check whether CRC matches 141 141 reset_crc_sig <= '1'; 142 142 if (crc_match_sig = '1') then
Note:
See TracChangeset
for help on using the changeset viewer.