реклама на сайте
подробности

 
 
> Microblaze Interrupt
-=Vitaly=-
сообщение Nov 9 2007, 09:03
Сообщение #1


Местный
***

Группа: Свой
Сообщений: 468
Регистрация: 31-08-06
Из: Киев
Пользователь №: 19 991



Здравствуйте. Помогите обработать прерывание в Микроблейзе.

Использую одно прерывание ядра, контроллера прерываний нету. Вывел порт настроил его в ЕДК на восходящий фронт.
В программе написал:
Код
#include "mb_interface.h"
void microblaze_enable_interrupts (void);

Это должно выставлять битик IE в MSR?
А как написать обработчик? Функцией microblaze_register_handler ??
Может я что-то забыл?

Спасибо.

Сообщение отредактировал -=Vitaly=- - Nov 9 2007, 09:22
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
Camelot
сообщение Nov 9 2007, 13:55
Сообщение #2


Частый гость
**

Группа: Свой
Сообщений: 182
Регистрация: 10-01-05
Пользователь №: 1 872



The interrupt controller is not required when only one interrupting device is present and the interrupting pin and signal are level sensitive
The interrupt signal of the peripheral (or the external interrupt signal) must be connected to the interrupt input of the MicroBlaze processor in the MHS file
Define the signal in MSS file to associate them to peripherals
e.g. PARAMETER int_handler = uart_int_handler, int_port = Interrupt
Write an interrupt handler routine to service the request
The base address of the peripheral instance can be accessed as XPAR_INSTANCE_NAME_BASEADDR
Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 22nd July 2025 - 14:18
Рейтинг@Mail.ru


Страница сгенерированна за 0.01363 секунд с 7
ELECTRONIX ©2004-2016