[an error occurred while processing this directive]
Может тут что-нить не соблюдаешь ? :
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
Отправлено
Гудвин 07 мая 2006 г. 22:06
В ответ на: да по ним и сделал.. не едет отправлено
-=DASM=- 07 мая 2006 г. 21:49
/*--------------------------------------------------------------------------- This function generates Amount strobes with the Flash Timing Generator Frequency fFTG = 257..476kHz (t = 3.9..2.1us). User knows target frequency, instruction cycles, C implementation. Arguments: word Amount (number of strobes to be generated) */ #define S_LOOPBODY 14 // 14 cycles/loop w/o NOPs #define S_ADDNOPS (word)((FREQUENCY * 2.1) / 1000 - S_LOOPBODY + 1) // S_ADDNOPS = 3..18 void TCLKstrobes(word Amount) { word i;
for (i = Amount; i > 0; i--) // This implementation has 14 body cycles! { JTAGOUT |= TCLK; // Set TCLK _NOP(); // Include NOPs if necessary (min. 3) _NOP(); _NOP(); JTAGOUT &= ~TCLK; // Reset TCLK } }