µç¹¤Ñ§Ï°Íø

ÕÒ»ØÃÜÂë
Á¢¼´×¢²á

LPC2000ϵÁÐARMÒý½ÅÁ¬½ÓÄ£¿é

2015-3-23 09:12|±à¼­:µç¹¤Ñ§Ï°Íø|²é¿´:12568|ÆÀÂÛ: 0

LPC2000ϵÁÐ΢¿ØÖÆÆ÷µÄ´ó²¿·Ö¹Ü½Å¶¼¾ßÓжàÖÖ¹¦ÄÜ£¬¼´¹Ü½Å¸´Ó㬵«ÊÇͬһÒý½ÅÔÚͬһʱ¿ÌÖ»ÄÜʹÓÃÆäÖÐÒ»¸ö¹¦ÄÜ£¬Í¨¹ýÅäÖÃÏà¹Ø¼Ä´æÆ÷¿ØÖƶà·¿ª¹ØÀ´Á¬½ÓÒý½ÅÓëƬÄÚÍâÉè¡£
Íⲿ´æ´¢Æ÷¼Ä´æÆ÷ÃèÊö¡ª¡ªPINSEL0
Íⲿ´æ´¢Æ÷¼Ä´æÆ÷ÃèÊö¡ª¡ªPINSEL1
Íⲿ´æ´¢Æ÷¼Ä´æÆ÷ÃèÊö¡ª¡ªPINSEL2
Íⲿ×ÜÏßÉèÖÃ
PINSEL[5:4]ÓëÊý¾Ý×ÜÏߺͿØÖÆÏߵĹØϵÁбí
ʹÓÃʾÀý¡ª¡ª½«P0.8¡¢P0.9ÉèÖÃΪTxD1¡¢RxD1
ͨ¹ý²éÔÄPINSE0¼Ä´æÆ÷ÉèÖÃ±í£¬µÃµ½P0.9ºÍP0.8µÄ¿ØÖÆλΪPINSEL0[19:16]£¬µ±¸ÃÓòÉèÖÃΪ[0101](0x05)ʱѡÔñ RxD1ºÍ TxD1 £»
C´úÂ룺
PINSEL0 = 0x05 << 16;
ΪÁ˲»Ó°Ïì±ðµÄ¹Ü½ÅÁ¬½ÓÉèÖã¬Í¨³£Ñ¡ÔñÏÂÃæµÄÉèÖ÷½·¨¡£
C´úÂ룺
PINSEL0 = (PINSEL0 & 0xFFF0FFFF) | (0x05 << 16);
Æô¶¯´úÂëÏà¹Ø²¿·Ö
LPC2200ϵÁÐ΢¿ØÖÆÆ÷ÊÇ×ÜÏß¿ª·ÅÐÍоƬ£¬Æä×ÜÏß¿í¶È¿ÉÉèÖÃΪ8λ¡¢16λ»ò32룬¶ÔÓÚûÓÐʹÓõ½µÄ×ÜÏßÒý½Å£¨±ÈÈç16λ×ÜÏß¿í¶Èʱ£¬D16¡«D31λûÓÐʹÓã©£¬¿É×÷ΪGPIOʹÓá£

¿´¹ý¡¶LPC2000ϵÁÐARMÒý½ÅÁ¬½ÓÄ£¿é¡·µÄÈË»¹¿´ÁËÒÔÏÂÎÄÕÂ:

·¢±íÆÀÂÛ

×îÐÂÆÀÂÛ

  • ǶÈëʽ¿ª·¢µ½µ×ÊÇ×öʲôµÄ£¿
  • FPGAоƬ½á¹¹
  • FPGA¹¤×÷Ô­Àí
  • ǶÈëʽѧϰ·½·¨ÓëÐĵÃ
  • ǶÈëʽÈí¼þ¹¤³Ìʦ±ØÐëÒªÕÆÎÕÄÄЩ֪ʶ
  • ǶÈëʽϵͳ¿ª·¢µÄ¿É¿¿ÐÔÉè¼Æ
ÈȵãÎÄÕÂ

µç¹¤Ñ§Ï°Íø()

GMT+8, 2021-12-6 20:44

Powered by © 2011-2021www.shop-samurai.com°æȨËùÓÐÃâÔðÉùÃ÷²»Á¼ÐÅÏ¢¾Ù±¨

¼¼ÊõÇý¶¯Î´À´!µç¹¤Ñ§Ï°Íø¡ª×¨Òµµç¹¤»ù´¡ÖªÊ¶¡¢µç¹¤¼¼ÊõѧϰÍøÕ¾¡£

À¸Ä¿µ¼º½£º¹¤¿Ø¼ÒÔ°|ÈýÁâplc|Î÷ÃÅ×Óplc|Å·Ä·Áúplc|plcÊÓƵ½Ì³Ì

·µ»Ø¶¥²¿