ÓÅ»¯C´úÂë³£Óõļ¸ÕÐ
ÓÅ»¯C´úÂë³£Óõļ¸ÕÐ
ÔÚÐÔÄÜÓÅ»¯·½ÃæÓÀԶעÒâ80-20ÔÔò£¬¼´20%µÄ³ÌÐòÏûºÄÁË80%µÄÔËÐÐʱ¼ä£¬Òò¶øÎÒÃÇÒª¸Ä½øЧÂÊ£¬×îÖ÷ÒªÊÇ¿¼ÂǸĽøÄÇ20%µÄ´úÂë¡£²»ÒªÓÅ»¯³ÌÐòÖпªÏú²»´óµÄÄÇ80%£¬ÕâÊÇÀͶøÎÞ¹¦µÄ¡£
µÚÒ»ÕУºÒԿռ任ʱ¼ä
¼ÆËã»ú³ÌÐòÖÐ×î´óµÄì¶ÜÊÇ¿Õ¼äºÍʱ¼äµÄì¶Ü£¬ÄÇô£¬´ÓÕâ¸ö½Ç¶È³ö·¢ÄæÏò˼άÀ´¿¼ÂdzÌÐòµÄЧÂÊÎÊÌ⣬ÎÒÃǾÍÓÐÁ˽â¾öÎÊÌâµÄµÚ1ÕÐ--ÒԿռ任ʱ¼ä¡£±ÈÈç˵×Ö·û´®µÄ¸³Öµ£º
·½·¨A£ºÍ¨³£µÄ°ì·¨
#define LEN 32
char string1 [LEN];
memset (string1,0,LEN);
strcpy (string1,"This is a example!!"£©;
·½·¨B£º
const char string2[LEN] ="This is a example!";
char * cp;
cp = string2
ʹÓõÄʱºò¿ÉÒÔÖ±½ÓÓÃÖ¸ÕëÀ´²Ù×÷¡£
´ÓÉÏÃæµÄÀý×Ó¿ÉÒÔ¿´³ö£¬AºÍBµÄЧÂÊÊDz»Äܱȵġ£ÔÚͬÑùµÄ´æ´¢¿Õ¼äÏ£¬BÖ±½ÓʹÓÃÖ¸Õë¾Í¿ÉÒÔ²Ù×÷ÁË£¬¶øAÐèÒªµ÷ÓÃÁ½¸ö×Ö·ûº¯Êý²ÅÄÜÍê³É¡£BµÄȱµãÔÚÓÚÁé»îÐÔûÓÐAºÃ¡£ÔÚÐèҪƵ·±¸ü¸ÄÒ»¸ö×Ö·û´®ÄÚÈݵÄʱºò£¬A¾ßÓиüºÃµÄÁé»îÐÔ£»Èç¹û²ÉÓ÷½·¨B£¬ÔòÐèÒªÔ¤´æÐí¶à×Ö·û´®£¬ËäȻռÓÃÁË´óÁ¿µÄÄڴ棬µ«ÊÇ»ñµÃÁ˳ÌÐòÖ´ÐеĸßЧÂÊ¡£
Èç¹ûϵͳµÄʵʱÐÔÒªÇóºÜ¸ß£¬Äڴ滹ÓÐһЩ£¬ÄÇÎÒÍƼöÄãʹÓøÃÕÐÊý¡£
µÚ¶þÕУº ʹÓúê¶ø²»ÊǺ¯Êý¡£
ÕâÒ²ÊǵÚÒ»ÕеıäÕС£º¯ÊýºÍºêµÄÇø±ð¾ÍÔÚÓÚ£¬ºêÕ¼ÓÃÁË´óÁ¿µÄ¿Õ¼ä£¬¶øº¯ÊýÕ¼ÓÃÁËʱ¼ä¡£´ó¼ÒÒªÖªµÀµÄÊÇ£¬º¯Êýµ÷ÓÃÊÇҪʹÓÃϵͳµÄÕ»À´±£´æÊý¾ÝµÄ£¬Èç¹û±àÒëÆ÷ÀïÓÐÕ»¼ì²éÑ¡Ïһ°ãÔÚº¯ÊýµÄÍ·»áǶÈëһЩ»ã±àÓï¾ä¶Ôµ±Ç°Õ»½øÐмì²é£»Í¬Ê±£¬CPUÒ²ÒªÔÚº¯Êýµ÷ÓÃʱ±£´æºÍ»Ö¸´µ±Ç°µÄÏÖ³¡£¬½øÐÐѹջºÍµ¯Õ»²Ù×÷£¬ËùÒÔ£¬º¯Êýµ÷ÓÃÐèҪһЩCPUʱ¼ä¡£¶øºê²»´æÔÚÕâ¸öÎÊÌâ¡£ºê½ö½ö×÷ΪԤÏÈдºÃµÄ´úÂëǶÈëµ½µ±Ç°³ÌÐò£¬²»»á²úÉúº¯Êýµ÷Óã¬ËùÒÔ½ö½öÊÇÕ¼ÓÃÁ˿ռ䣬ÔÚƵ·±µ÷ÓÃͬһ¸öºêµÄʱºò£¬¸ÃÏÖÏóÓÈÆäÍ»³ö¡£
¾ÙÀýÈçÏ£º
·½·¨C£º
#define bwMCDR2_ADDRESS 4
#define bsMCDR2_ADDRESS 17
int BIT_MASK(int __bf)
{
return ((1U << (bw ## __bf)) - 1)<< (bs ## __bf);
}
void SET_BITS(int __dst,
int __bf, int __val)
{
__dst = ((__dst) & ~(BIT_MASK(__bf))) |
\
(((__val) << (bs ## __bf))
& (BIT_MASK(__bf))))
}
SET_BITS(MCDR2, MCDR2_ADDRESS,ReGISterNumber);
·½·¨D£º
#define bwMCDR2_ADDRESS 4
#define bsMCDR2_ADDRESS 17
#define bmMCDR2_ADDRESS BIT_MASK(MCDR2_ADDRESS)
#define BIT_MASK(__bf)
(((1U << (bw ## __bf)) - 1)
<<
Ïà¹ØÎĵµ£º
µÚ4Õ ÔõÑù²ÅÄܱ£Ö¤²âÊÔЧ¹û£¿
4.1 ºâÁ¿²âÊÔЧ¹ûµÄ»ù±¾Ö¸±ê£º°×ºÐ¸²¸Ç
ºâÁ¿²âÊÔЧ¹ûµÄ»ù±¾Ö¸±êÊǰ׺и²¸ÇÂÊ£¬¼´Í³¼Æ²âÊÔ¶Ô´úÂëÂß¼µ¥Î»µÄ¸²¸Ç×´¿ö¡£´úÂëµÄÂß¼µ¥Î»Ö÷ÒªÓУºÓï¾ä(¿é)£¬Ìõ¼þ¡¢Åж¨¡¢·ÖÖ§¡¢Â·¾¶¡£³£Óõİ׺и²¸ÇÓÐÁùÖÖ£ºÓï¾ä¸²¸Ç¡¢Ìõ¼þ¸²¸Ç¡¢·ÖÖ§¸²¸Ç¡¢Åж¨Ìõ¼þ¸²¸Ç¡¢ÐÞÕýÅж¨Ìõ¼þ¸²¸Ç¡¢º ......
Ñ¡Á½¸ö±È½ÏÓдú±íÐԵĺ¯Êý
Ê×ÏÈÏÂÔØ°²×°sdk£¬½«ÆäÖеÄsde.dll,pe.dllºÍsg.dll¿½±´¹ýÀ´
ʹÓÃÈçϵĴúÂ룬ָ¶¨dllºóÖ±½Óµ÷ÓÃÆäÖеĺ¯Êý£¬
/// <summary>
/// Sets the value for a small integer column.
/// </summary>
[DllImport(".\\sde91.dll", SetLastError = true, ......
51µ¥Æ¬»ú Keil C ÑÓʱ³ÌÐòµÄ¼òµ¥Ñо¿
by: InfiniteSpace Studio/isjfk, 1.21.2004
ÈκÎÈ˶¼¿ÉÒÔÔÚ×¢Ã÷Ô×÷Õߺͳö´¦µÄÇ°ÌáÏÂËæÒâתÔØÕâƪÎÄÕ£¬µ«²»µÃÓÃÓÚÉÌҵĿµÄ¡£
......
4.2 ¶à½Ç¶È±£Ö¤²âÊÔЧ¹û
¶ÔÓÚ´úÂëÖÊÁ¿ÒªÇóºÜ¸ßµÄÏîÄ¿À´Ëµ£¬½öÓа׺и²¸ÇÊÇÔ¶Ô¶²»¹»µÄ¡£°×ºÐ¸²¸Ç²»ÄÜ·¢ÏÖ´úÂëȱʧ£¬°×ºÐ¸²¸Ç»ùÓÚÏÖÓдúÂ룬Èç¹û´úÂë²»´æÔÚ£¬µ±È»²»ÄÜ·¢ÏÖ¡£ÎªÁ˼ì²â´úÂëȱʧ£¬ÐèÒªÈ˹¤¶Ô²âÊÔÊý¾Ý½øÐмì²é¡£°×ºÐ¸²¸ÇÒ²²»ÄÜ·¢ÏÖÓÃÀýδ·´Ó³¹¦ÄÜ¡£Èç¹ûÉè¼ÆÓÃÀýʱ£¬²âÊÔÔ±²»Á˽â´úÂëµÄ¹¦ÄÜ£¬Í ......