Last modified by Max on 2025/03/02 15:18

From version 2.29
edited by Max
on 2025/02/25 14:00
Change comment: There is no comment for this version
To version 2.33
edited by Max
on 2025/02/25 14:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -529,27 +529,26 @@
529 529  {{/code}}
530 530  
531 531  
532 -== **020: Получить расширенный код диагностики** ==
532 +== 020: Get extended diagnostic code ==
533 533  
534 -Код команды 020, после сброса контроллера следует выдать эту команду в CSR и затем прочитать два слова расширенной диагностики из DR. Команда мгновенная, ожидание не требуется.
534 +Command code 020, after resetting the controller, you should issue this command in the CSR and then read two words of extended diagnostics from DR. The command is instant, no waiting is required.
535 535  
536 536  
537 -== **027: Получить версию firmware AZ STM32** ==
537 +== 027: Get firmware version AZ STM32 ==
538 538  
539 -Код команды 027, возвращает 2 слова
540 -\\первое слово - 06404 = старший байт 13. это версия прошивки, младший байт 4. это версия железа - те AZБК в данном случае
541 -второе слово - 037 = это максимальный монтируемый диск - 31.
539 +Command code 027, returns 2 words
540 +\\first word - 06404 = high byte 13. this is the firmware version, low byte 4. this is the hardware version - i.e. AZБК in this case second word - 037 = this is the maximum mountable disk - 31.
542 542  
543 543  
544 544  {{code language="assembler"}}
545 545  ;-------------------------------------------------------------
546 -; получение версии прошивки STM32 - результат в R1 R1=0 ошибка
545 +; getting STM32 firmware version - result in R1 R1=0 error
547 547  GTSTMV: MOV #AZ$CSR,R1
548 -1$: CLR (R1) ; Пошлем команду "Сброс"
549 - TSTB (R1) ; Проверим готовность контроллера
550 - BPL 1$ ; Если не готов, сбрасываем еще
547 +1$: CLR (R1) ; Send "Reset" command
548 + TSTB (R1) ;Check controller readinessконтроллера
549 + BPL 1$ ; If not ready, reset again
551 551   mov #27,(R1)
552 - TST (R1)+ ; Проверяем на ошибку
551 + TST (R1)+ ; Check for error
553 553   BMI 2$
554 554   mov (R1),R1
555 555   return
... ... @@ -559,10 +559,10 @@
559 559  {{/code}}
560 560  
561 561  
562 -== **030:  Нет операции** ==
561 +== 030: No operation ==
563 563  
564 -Основное назначение этой команды - устанавливать бит разрешения прерываний от контроллера. Команда передает бит разрешения прерывания, который находится с ней в одном слове, но не входит в ее состав (напоминаем, команда располагается в битах D0 - D5, а бит разрешения прерываний - D6), в соответствующий триггер контроллера и больше никак не влияет на процессы в контроллере. Управление этим триггером работает даже в состоянии "Думаю, прошу не мешать", и это главная особенность команды "нет операции".
565 -\\Команда имеет код 0030. Посылка в CSR кода 0130 разрешит прерывания от контроллера, посылка кода 0030 запретит их. Пример не приводится вследствие тривиальности его.
563 +The main purpose of this command is to set the interrupt enable bit from the controller. The command transfers the interrupt enable bit, which is in the same word with it, but is not part of it (remember, the command is located in bits D0 - D5, and the interrupt enable bit is D6), to the corresponding trigger of the controller and does not affect the processes in the controller in any other way. Control of this trigger works even in the "Thinking, please do not interfere" state, and this is the main feature of the "no operation" command.
564 +\\The command has the code 0030. Sending the code 0130 to the CSR will enable interrupts from the controller, sending the code 0030 will disable them. An example is not given due to its triviality.
566 566  
567 567  
568 568  = **Блок команд работы с энергонезависимой памятью** =