[an error occurred while processing this directive]
Îòâåò: ìîæíî åùå äîáàâèòü ìàêðîñîâ
(«Òåëåñèñòåìû»: Êîíôåðåíöèÿ «Ìèêðîêîíòðîëëåðû è èõ ïðèìåíåíèå»)

ìèíèàòþðíûé àóäèî-âèäåîðåêîðäåð mAVR

Îòïðàâëåíî VAI 20 ôåâðàëÿ 2003 ã. 06:20
 îòâåò íà: Îòâåò: Ïîïðîáóé òàê(+) îòïðàâëåíî K&T 19 ôåâðàëÿ 2003 ã. 20:46

xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">










/*
---------------------------------------------- ee-def.h
------------------------------------------------ **

style='mso-spacerun:yes'> * 
Èíèöèàëèçàöèÿ EEPROM â PIC16F87x

style='mso-spacerun:yes'> *  Â
êîìïèëÿòîðå â

style='mso-spacerun:yes'> * 
"Make\Linker options
..." âïèñàòü:

style='mso-spacerun:yes'> *   
-peeloc=2100h

style='mso-spacerun:yes'> *

style='mso-spacerun:yes'> *    Â class=SpellE>Ñèøíîì ôàéëå äîëæíî áûòü:

style='mso-spacerun:yes'> *

 *style='mso-spacerun:yes'>   #asm

 *style='mso-spacerun:yes'>       psectstyle='mso-spacerun:yes'>     eeloc,delta=2,ovrld

 *style='mso-spacerun:yes'>       globalstyle='mso-spacerun:yes'>    _eeprom_data

 style='font-size:10.0pt;font-family:"Lucida Console"'>*style='mso-spacerun:yes'>   _eeprom_data

style='mso-spacerun:yes'> *      
....

style='mso-spacerun:yes'> *      
äàëåå âñå êîíñòàíòû ÷åðåç db èëè class=SpellE>íåæåïðèâåäåííûå ìàêðîñû

style='mso-spacerun:yes'> *style='mso-spacerun:yes'>       ....

 *style='mso-spacerun:yes'>   #endasm

 *
--------------------------------------------------------------------------------------------------------
*/

#ifndefstyle='mso-spacerun:yes'>   _MY_ee-def_h

  #define _class=SpellE>MY_ee-def_h

#include <pic.h>

 

 

/*
--------------------------------------------------------------------------------------------------------
**

 class=GramE>*  style='mso-ansi-language:RU'>Ìàêðîñû

 *
--------------------------------------------------------------------------------------------------------
*/

 

#asm

uint2dblang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'>   macrostyle='mso-spacerun:yes'>     uintstyle='mso-spacerun:yes'>                    // style='font-size:10.0pt;font-family:"Lucida Console"'>ðàçáèâêàlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'> unsigned int ïî style='font-size:10.0pt;font-family:"Lucida Console"'>áàéòàìlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'>

          class=GramE>db      style='mso-spacerun:yes'>  low( uint );

          class=GramE>db        high( class=SpellE>uint );

          class=SpellE>endm

 

 

 

ulong2dbstyle='mso-spacerun:yes'>  macrostyle='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:EN-US'>style='mso-spacerun:yes'>     ulongstyle='mso-spacerun:yes'>                   // style='font-size:10.0pt;font-family:"Lucida Console"'>ðàçáèâêàlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'> unsigned long ïîstyle='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:EN-US'> style='font-size:10.0pt;font-family:"Lucida Console"'>áàéòàìlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'>

          class=GramE>db        low( class=SpellE>ulong )

          class=GramE>db        high( class=SpellE>ulong )

          class=GramE>db        low( class=SpellE>highword( ulong ))

          class=GramE>db        high( class=SpellE>highword( ulong ))

          class=SpellE>endm

 

#endasm

 

 

#if sizeofclass=GramE>( double ) == sizeof( float )

  #define S_class=GramE>DOUBLE  3

  #class=SpellE>asm

  class=GramE>dbl2db  macrostyle='mso-spacerun:yes'>     dblstyle='mso-spacerun:yes'>                     // style='font-size:10.0pt;font-family:"Lucida Console"'>ðàçáèâêàlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'> double ïîstyle='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:EN-US'> style='font-size:10.0pt;font-family:"Lucida Console"'>áàéòàìlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'>

          class=GramE>db        low(
float24( dbl ))

          class=GramE>db        high(
float24( dbl ))

          class=GramE>db        low( class=SpellE>highword( float24( dbl )))

          class=SpellE>endm

 

  #class=SpellE>endasm

 

#else

  #define S_class=GramE>DOUBLE  4

  #class=SpellE>asm

  class=GramE>dbl2db  macrostyle='mso-spacerun:yes'>     dblstyle='mso-spacerun:yes'>                     // style='font-size:10.0pt;font-family:"Lucida Console"'>ðàçáèâêàlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'> double ïîstyle='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:EN-US'> style='font-size:10.0pt;font-family:"Lucida Console"'>áàéòàìlang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";mso-ansi-language:
EN-US'>

          class=GramE>db        low( dbl )

          class=GramE>db        high( dbl )

          class=GramE>db        low( class=SpellE>highword( dbl ))

          class=GramE>db        high( class=SpellE>highword( dbl ))

          class=SpellE>endm

 

  #class=SpellE>endasm

 

#endif

 

#endifclass=GramE>  //_class=SpellE>MY_ee-def_h

/* ---------------------------------------------(
end of file )-------------------------------------------- */

 

 

style='font-family:"Lucida Console";mso-ansi-language:EN-US'>// style='mso-bidi-font-weight:normal'>Èstyle='mso-bidi-font-weight:normal'> style='font-family:"Lucida Console"'>èñïîëüçîâàòüstyle='mso-bidi-font-weight:normal'>

 

#asm

        class=SpellE>psectstyle='mso-spacerun:yes'>     eeloc,delta=2,ovrld

        class=GramE>global    _class=SpellE>eeprom_data

 

_class=SpellE>eeprom_data

style='mso-spacerun:yes'>        uint2dbstyle='mso-spacerun:yes'>   4642

style='mso-spacerun:yes'>        dbstyle='mso-spacerun:yes'>        0

 

style='mso-spacerun:yes'>        dbl2dbstyle='mso-spacerun:yes'>    0.0015

style='mso-spacerun:yes'>        dbl2dbstyle='mso-spacerun:yes'>    1.3  

 

#class=SpellE>endasm

 

Ç.Û. Äåëàë html Âèíâîðäîì, äëèííî ïîëó÷àåòñÿ...

Ñîñòàâèòü îòâåò  |||  Êîíôåðåíöèÿ  |||  Àðõèâ

Îòâåòû



Ïåðåéòè ê ñïèñêó îòâåòîâ  |||  Êîíôåðåíöèÿ  |||  Àðõèâ  |||  Ãëàâíàÿ ñòðàíèöà  |||  Ñîäåðæàíèå  |||  Áåç êàäðà

E-mail: info@telesys.ru