Changeset 12032 for firmware/FTU
- Timestamp:
- 09/08/11 12:55:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FTU/FTU_top_tb.vhd
r10050 r12032 288 288 -- wait until FTU is initialized 289 289 --------------------------------------------------------------------------- 290 wait for 150us; 291 --------------------------------------------------------------------------- 292 -- test one RS485 command (28 byte) 293 --------------------------------------------------------------------------- 290 --wait for 150us; 291 --------------------------------------------------------------------------- 292 -- test broken RS485 command 293 --------------------------------------------------------------------------- 294 -- assign_rs485("01000000"); --start delimiter 295 -- wait for 0us; 296 -- assign_rs485("00000000"); --FTU address 297 -- wait for 0ns; 298 -- assign_rs485("11000000"); --FTM address 299 -- wait for 0ns; 300 -- assign_rs485("00000001"); --FTM firmware ID 301 -- wait for 0ns; 302 -- assign_rs485("00000110"); --instruction 303 -- wait for 0us; 304 -- assign_rs485("00010100"); --data byte 01 305 -- wait for 0ns; 306 -- assign_rs485("00000000"); --data byte 02 307 -- wait for 0ns; 308 -- assign_rs485("00000000"); --data byte 03 309 -- wait for 0ns; 310 -- assign_rs485("00000000"); --data byte 04 311 -- wait for 0ns; 312 -- assign_rs485("00000000"); --data byte 05 313 -- wait for 0ns; 314 -- assign_rs485("00000000"); --data byte 06 315 -- wait for 0ns; 316 -- assign_rs485("00000000"); --data byte 07 317 -- wait for 0ns; 318 -- assign_rs485("00000000"); --data byte 08 319 -- wait for 0ns; 320 -- assign_rs485("00000000"); --data byte 09 321 -- wait for 0ns; 322 -- assign_rs485("00000000"); --data byte 10 323 -- wait for 0ns; 324 -- assign_rs485("00000000"); --data byte 11 325 -- wait for 0ns; 326 -- assign_rs485("00000000"); --data byte 12 327 -- wait for 0ns; 328 -- assign_rs485("00000000"); --data byte 13 329 -- wait for 0ns; 330 -- assign_rs485("00000000"); --data byte 14 331 -- wait for 0ns; 332 -- assign_rs485("00000000"); --data byte 15 333 -- wait for 0ns; 334 -- assign_rs485("00000000"); --data byte 16 335 -- wait for 0ns; 336 -- assign_rs485("00000000"); --data byte 17 337 -- wait for 0ns; 338 -- assign_rs485("00000000"); --data byte 18 339 -- wait for 0ns; 340 -- assign_rs485("00000000"); --data byte 19 341 -- wait for 0ns; 342 -- assign_rs485("00000000"); --data byte 20 343 -- wait for 0ns; 344 -- assign_rs485("00000000"); --data byte 21 345 -- wait for 0ns; 346 -- assign_rs485("00000000"); --CRC error counter (not used) 347 -- wait for 0ns; 348 assign_rs485("01001101"); --check sum 349 --------------------------------------------------------------------------- 350 -- send regular RS485 command 351 --------------------------------------------------------------------------- 352 wait for 8us; 294 353 assign_rs485("01000000"); --start delimiter 295 354 wait for 0us; … … 300 359 assign_rs485("00000001"); --FTM firmware ID 301 360 wait for 0ns; 302 assign_rs485("00000 110"); --instruction361 assign_rs485("00000000"); --instruction 303 362 wait for 0us; 304 assign_rs485("000 10100"); --data byte 01363 assign_rs485("00000001"); --data byte 01 305 364 wait for 0ns; 306 365 assign_rs485("00000000"); --data byte 02 … … 346 405 assign_rs485("00000000"); --CRC error counter (not used) 347 406 wait for 0ns; 348 assign_rs485("010 01101"); --check sum349 --------------------------------------------------------------------------- 350 -- wait enough time and send another command351 --------------------------------------------------------------------------- 352 wait for 1500us;407 assign_rs485("01010010"); --check sum 408 --------------------------------------------------------------------------- 409 -- repeat regular RS485 command after FTM time-out 410 --------------------------------------------------------------------------- 411 wait for 2000us; 353 412 assign_rs485("01000000"); --start delimiter 354 413 wait for 0us;
Note:
See TracChangeset
for help on using the changeset viewer.