[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Самый распоследний визуальный DSP, тагет процессор void InitDSP(void); main() InitDSP(); while (1) } void InitDSP(void) interrupt(SIGTIMER, hndlTimer); } void hndlTimer (int sig) /**********/ Warning: PMOVLAY or DMOVLAY register should be set to 0, 1, or 2. At Address ... Идем по этому адресу, смотритрим, что там засовывается в регистр константа 0x1f.... Приплыли.... В версиях v5.1 & 6.1 вообще вместо кодогенератора стоит или random или глюкогенератор SY,
E-mail:
info@telesys.ru
2181 или 2185 - один фиг, распростейшая прога:
/* dspbios.c */
#include
void hndlTimer (int sig);
{
{;
};
{
timer_off();
timer_set(3333,0,1);
timer_on();
int cntTimerInt=0;
static int flag=0;
{
switch (flag)
{
case 0:
flag=1; break;
case 1:
flag=0; break;
}
cntTimerInt++;
}
Отладчик пишет переодически:
EK
Ответы