ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
5 мая
37773 Топик полностью
bialix (23.08.2005 11:35, просмотров: 1) ответил POV на Хы, при разной оптимизации результат разный...
не верю! _nop_ #include void _nop_ (void); Description: The _nop_ routine inserts an 8051 NOP instruction into the program. This routine can be used to pause for 1 CPU cycle. This routine is implemented as an intrinsic function. The code required is included in-line rather than being called. Return Value: None. Attributes: reentrant, intrinsic See Also: - Example #include #include /* for printf */ void tst_nop (void) { P1 = 0xFF; _nop_ (); /* delay for hardware */ _nop_ (); _nop_ (); P1 = 0x00;