DSPºÍPBL3717A¹¹³ÉµÄ²½½øµç»úµÄ¿ØÖÆϵͳ[ͼ]

Ïà¹ØרÌ⣺ оƬ

ÕªÒª£º½éÉÜÓÉÃÀ¹úTI¹«Ë¾µÄÊý×ÖÐźŴ¦ÀíÆ÷TMS320LF2407AºÍSGS¹«Ë¾µÄ²½½øµç»úÇý¶¯Ð¾Æ¬PBL3717A¹¹³ÉµÄÁ½Ïà»ìºÏʽ²½½øµç»úµÄ¿ØÖÆϵͳ¡£

ÒýÑÔ

²½½øµç»úÊÇÊý×Ö¿ØÖÆϵͳÖеÄÒ»ÖÖÖØÒªÖ´ÐÐÔª¼þ£¬¹ã·ºÓ¦ÓÃÓÚ¸÷ÖÖ¿ØÖÆϵͳÖС£ËüÊÇÒ»ÖÖ½«µçÂö³åÐźÅת»»ÎªÎ»ÒÆ»òתËٵĿØÖƵç»ú£¬ÊäÈëÒ»¸öÂö³åÐźţ¬µç»ú¾Íת¶¯Ò»¸ö½Ç¶È»òÇ°½øÒ»²½¡£Æä»úе½ÇλÒƺÍתËÙ·Ö±ðÓëÊäÈëµç»úÈÆ×éµÄÂö³å¸öÊýºÍÂö³åƵÂʳɱÈÀý£¬¿ÉÒÔͨ¹ý¸Ä±äÂö³åƵÂÊÔÚ´ó·¶Î§ÄÚµ÷ËÙ£¬Ò×ÓÚÓë¼ÆËã»ú»òÆäËüÊý×ÖÔª¼þ½Ó¿Ú£¬ÊÊÓÃÓÚÊý×Ö¿ØÖÆϵͳ¡£Ëæ×ų¬´ó¹æÄ£¼¯³Éµç·¼¼ÊõµÄѸËÙ·¢Õ¹£¬DSP£¨Digital Signal ProcessorÊý×ÖÐźŴ¦ÀíÆ÷£©µÄÐÔÄܼ۸ñ±ÈµÃµ½ºÜ´óÌá¸ß£¬Ê¹µÃDSPÔÚµç»ú¿ØÖÆÁìÓòµÄÓ¦ÓÃÓúÀ´Óú¹ã·º¡£±¾ÎĽéÉÜÓÉÃÀ¹úTI¹«Ë¾µÄÊý×ÖÐźŴ¦ÀíÆ÷TMS320LF2407ºÍSGS¹«Ë¾µÄ²½½øµç»úÇý¶¯Ð¾Æ¬PBL3717A¹¹³ÉµÄÁ½Ïà»ìºÏʽ²½½øµç»úµÄ¿ØÖÆϵͳ¡£

1 DSPÐÔÄܼò½é

ÃÀ¹úTI¹«Ë¾µÄTMS320LF2407AÊÇרΪÂí´ï¿ØÖƶøÉè¼ÆµÄÒ»¿îDSP¡£Ëü²ÉÓøßÐÔÄܾ²Ì¬CMOS¼¼Êõ£¬Ê¹µÃ¹©µçµçѹ½µÎª3.3V£¬¼õÉÙÁË¿ØÖÆÆ÷µÄ¹¦ºÄ£»40MIPSµÄÖ´ÐÐËÙ¶ÈʹָÁîÖÜÆÚËõ¶Ìµ½25ns(40MHz)£¬´Ó¶øÌá¸ßÁË¿ØÖÆÆ÷µÄʵʱ¿ØÖÆÄÜÁ¦¡£Á½¸öʼþ¹ÜÀíÆ÷Ä£¿éEVAºÍEVB£¬Ã¿¸ö°üÀ¨£º2¸ö16λͨÓö¨Ê±Æ÷£»CAN×ÜÏß½Ó¿ÚÄ£¿é£»16λµÄ´®ÐÐÍâÉ裨SPI£©½Ó¿ÚÄ£¿é£»»ùÓÚËøÏà»·µÄʱÖÓ·¢ÉúÆ÷£»ÄÚÖÃÕý½»±àÂëÂö³å£¨QEP£©µç·£»3¸ö²¶»ñµ¥Ôª£»16ͨµÀA/Dת»»Æ÷£»8¸ö16λµÄÂö¿íµ÷ÖÆ£¨PWM£©Í¨µÀ¡£ËüÃÇÄܹ»ÊµÏÖ£ºÈýÏà·´ÏàÆ÷¿ØÖÆ£»PWMµÄ¶Ô³ÆºÍ·Ç¶Ô³Æ²¨ÐΣ»µ±ÍⲿÒý½ÅPDPINTx³öÏֵ͵çƽʱ£¬¿ìËٹرÕPWMͨµÀ£»¿É±à³ÌµÄPWMËÀÇø¿ØÖÆÒÔ·ÀÖ¹ÉÏÏÂÇűÛͬʱÊä³ö´¥·¢Âö³å£»Ê¼þ¹ÜÀíÆ÷Ä£¿éÊÊÓÃÓÚ¿ØÖƽ»Á÷¸ÐÓ¦µç»ú¡¢ÎÞË¢Ö±Á÷µç»ú¡¢¿ª¹Ø´Å×èµç×è¡¢²½½øµç×è¡¢¶à¼¶µç»úºÍÄæ±äÆ÷¡£

2 PBL3717AÔ­ÀíÓë²½¾à¿ØÖÆ·½·¨

2.1 PBL3717AµÄÔ­Àí¼ò½é

PBL3717AÊÇSGS¹«Ë¾Éè¼ÆÉú²úµÄ²½½øµç¶¯»úµ¥ÏàÈÆ×éµÄÇý¶¯µç·£¬ÄÚ²¿²ÉÓõÄÊÇH-ÇÅÂö¿íµ÷ÖƵç·¡£ÀûÓÃÍⲿÂß¼­µç·¹¹³ÉµÄÂß¼­·ÖÅäÆ÷»ò΢´¦ÀíÆ÷·ÖÅäÐźţ¬ÓÉÈô¸ÉƬÕâÖֵ緺ÍÉÙÁ¿ÎÞÔ´Ôª¼þ¿É×é³ÉÒ»¸öÍêÕûµÄ¶àÏಽ½øµç¶¯»úÇý¶¯³ÌÐò£¬¿ÉʵÏÖÕû²½£¨»ù±¾²½¾à£©¡¢°ë²½»ò΢²½¾à¿ØÖÆ¡£¿ØÖÆ·½Ê½ÊÇË«¼«ÐÔ¡¢¹Ì¶¨OFF£¨¹Ø¶Ï£©Ê±¼äµÄÕ¶²¨µçÁ÷¿ØÖÆ¡£ÏÂÃæ¼òÒª½éÉÜÒ»ÏÂPBL3717AµÄ¸÷Òý½Å¹¦ÄÜ¡£Èçͼ1Ëùʾ£¬Ëü²ÉÓÃ16½ÅË«ÁÐÖ±²åËÜÁÏ·â×°¡£1½Å£¨OUTPUT B£©ºÍ15½Å£¨OUTPUT A£©ÎªÊä³ö¶Ë£¬·Ö±ð½ÓÒ»ÏàÈÆ×éÏßȦµÄÁ½¶Ë£»2½Å£¨PULSE TIME£©Íâ½ÓRC¶¨Ê±Ôª¼þ£»3¡¢14½Å£¨Vs£©ÊÇÈÆ×éÏßȦ¹©µçµçÔ´£¬¿ÉÔÚ10¡«46VµÄ·¶Î§ÄÚÑ¡Ôñ£»4¡¢5¡¢12¡¢13½Å£¨GND£©½ÓµØ¶Ë£¬¿É½ÓÖÁÈÈƬ£»6½Å£¨Vss£©ÊÇIC¹©µçµçÔ´½Ó+5V£»7¡¢9½Å£¨INPUT 1£¬INPUT 0£©ÓÃÓÚÑ¡ÔñÈÆ×éÏßȦµçÁ÷£»8½Å£¨Phase£©ÎªÏàλÊäÈë¶Ë£¬ÓÃÓÚ¿ØÖÆת¶¯·½Ïò£»16½Å£¨Sense Resistor£©ÍⲿÈÆ×éµçÁ÷²ÉÑùµç×裬²ÉÑùÐźÅͨ¹ýRCµÍͨÂ˲¨Æ÷ËÍÖÁ10½Å£¨Comparator Input£©£¬ÓëÄÚ²¿µçѹ±È½ÏÆ÷µÄ»ù×¼µçѹ½øÐбȽϣ»11½Å£¨Reference£©Íâ½Ó²Î¿¼µçѹ£¬¸Ä±äReference¿ÉʵÏÖ΢²½¾à¿ØÖÆ£¬ÀýÈçÓÃ1Ƭµ¥Æ¬»úºÍ2ƬDAC0808 8bit D/Aת»»µç·¼´¿ÉʵÏÖ256ϸ·Ö¿ØÖÆ¡£ÔÚÕû²½¡¢°ë²½¡¢1/4²½¹¤×÷·½Ê½Ï£¬REFERENCE½Ó¹Ì¶¨µÄ+5V£¬±¾ÎĽöÌÖÂÛÕâÖÖÇé¿ö¡£

2.2 PBL3717AµÄ²½¾à¿ØÖÆ·½·¨

±¾ÎÄËùÉè¼ÆµÄÊÇÁ½ÐÞÅä»ìºÏʽ²½½øµç»úµÄ¿ØÖÆϵͳ£¬¾ßÌåÇý¶¯µç·Èçͼ2Ëùʾ¡£ÆäÖУ¬PHASE¡¢INPUT 1¡¢INPUT 0£¨Í¼ÖмòдΪPH¡¢I1¡¢I0£©ÎªÊäÈë¶Ë£¬OUTPUT A¡¢OUTPUT B£¨Í¼ÖÐÒÔMA¡¢MB±íʾ£©ÎªÊä³ö¶Ë¡£ÒòΪ±¾ÎIJ»¿¼ÂÇϸ·ÖµÄÇé¿ö£¬ËùÒÔ¿ÉÒÔ°ÑͼÖеÄDAC£¨11Òý½Å£©Ö±½Ó½Ó+5VµçÔ´¡£

PHASEµÄ×÷ÓÃÊÇ¿ØÖƲ½½øµç¶¯»ú¶¨×ÓÈÆ×éÖеçÁ÷µÄ·½Ïò¡£µ±PHASE=0ʱ£¬µçÁ÷´ÓMBÁ÷ÏòMA£»µ±PHASE=1ʱ£¬µçÁ÷´ÓMAÁ÷ÏòMB¡£PBL3717A¶Ô²½¾àµÄ¿ØÖÆÊÇͨ¹ýÑ¡ÔñI1¡¢I0µÄ²»Í¬×éºÏ£¬´Ó¶ø¿ØÖÆÈÆ×éµçÁ÷£¬´ïµ½²½¾à¿ØÖƵÄÄ¿µÄ¡£µçÁ÷µÄ¾ßÌåÊýÖµÓÉVR¡¢RS¾ö¶¨¡£¼ÆË㹫ʽÈçÏ£º

Im=(Vr*0.083)/Rs[A]£¬100%¼¶±ð£»

Im=(Vr*0.050)/Rs[A]£¬60%¼¶±ð£»

Im=(VR*0.016)/Rs[A]£¬20%¼¶±ð¡£

PBL3717AÄÜʵÏÖÈýÖÖÔËÐз½Ê½¡£ÔÚÒÔÏÂÌÖÂÛÖУ¬ÒÔA¡¢B±íʾ¶þÏàÈÆ×éÕýÏòµçÁ÷¹¤×÷£¬ÒÔA¡¢B±íʾ¶þÏàÈÆ×é·´ÏòµçÁ÷¹¤×÷¡£

£¨1£©»ù±¾²½¾à£¨Õû²½£©¹¤×÷·½Ê½

¿ÉÓöþÏ༤ÀøËÄÅÄ·½Ê½£¬¼´AB→AB→AB→ABʵÏÖ£¬Ò²¿ÉÓõ¥Ï༤ÀøËÄÅÄ·½Ê½£¬¼´A→B→A→BʵÏÖ¡£

£¨2£©°ë²½¾à¹¤×÷·½Ê½

°ë²½¾à·½Ê½²ÉÓöþÏ࣬µ¥ÏཻÌ漤ÀøµÄ¶þÏà°ËÅÄ·½Ê½£¬¼´AB→B→AB→A→AB→B→AB→A£¬ÕâÖÖ¹¤×÷·½Ê½ÊÇÁ½Ï༤ÀøºÍµ¥Ï༤Àø½»Ìæ³öÏÖ£¬Ã¿Ò»ÕÒ²»µ½µÄת¾à²»ÏàµÈ¡£ÔÚ¶þÏ༤ÀøʱµÄת¾àÊǵ¥ÏàµÄ1.4±¶£¬ÕâÊÇÒòΪ¶þÏ༤ÀøʱµÄת¾àÊǵ¥Ï༤Àøʱת¾àµÄʸÁ¿ºÏ³É¡£Èç¹ûÁ½Ï༤Àøʱ£¬²ÉÓÃI1I0=01·½Ê½£¬Ê¹µçÁ÷½µµ½60%£¬ÓÉÓÚ´Å·ԭÏÈÓб¥ºÍЧӦ£¬´ËʱÿÏàת¾à¿ÉÄÜÔö´óµ½70%×óÓÒ£¬Á½ÏàºÏ³ÉµÄת¾à½Ó½üÓÚ1¡£ÕâÑùµç»ú¾Í¿ÉÒÔ½üËÆʵÏÖºãת¾àÔËÐС£Í¼3ʾ³öÁËÔÚµÚÒ»ÏóÏÞµÄת¾ØʸÁ¿Í¼¡£

£¨3£©1/4²½¾à¹¤×÷·½Ê½

ΪÁËʵÏÖ1/4²½¾à¹¤×÷·½Ê½£¬ÒªÔÚÕû²½Óë°ë²½¼ä²åÈëÒ»¸ö1/4²½µÄ״̬£¨Èçͼ3£©¡£ÀýÈçÉÏ·½µÄ1/4²½×´Ì¬£¬AÏàÈÆ×éÈ¡100%µçÁ÷£¬BÏàÈÆ×éÈ¡20%µçÁ÷¡£ÔÚµÚÒ»ÏóÏÞÓÉ°ë²½A״̬µ½°ë²½B״̬Ҫ¾­¹ý4²½£¬¼´A→A0.2B→AB→0.2AB→B¡£ÖªµÀµÚÒ»ÏóÏÞµÄʸÁ¿Í¼²»ÄÑÍƳöÆäËüÈý¸öÏóÏÞµÄʸÁ¿Í¼£¬Ò»¸öÑ­»·Ðè6²½Íê³É£¬¼´AB→0.2AB→B→0.2AB→AB→A0.2B→A→A0.2B→AB→0.2AB→B→0.2AB→AB→A0.2B→A→A0.2B£¬ÆäÖÐ0.2A¡¢0.2B·Ö±ð±íʾAÏà¡¢BÏàÈÆ×éÈ¡20%µçÁ÷¡£

3 Ó²¼þ²¿·Ö

ÒòΪDSP²ÉÓÃ3.3V¹©µç£¬¶øPBL3717AµÄ¹¤×÷µçѹÊÇ+5V£¬ËùÒÔÒª¿¼ÂÇ3.3VºÍ5VµÄµçƽת»»ÎÊÌâ¡£Èçͼ4Ëùʾ£¬Îª5V CMOS£¬5V TTLºÍ3.3V TTLµçƽµÄת»»±ê×¼¡£ÆäÖУ¬VOH±íʾÊä³ö¸ßµçƽµÄ×îµÍµçƽ£¬VIH±íʾÊäÈë¸ßµçƽµÄ×îµÍµçƽ£¬VIL±íʾÊäÈëµÍµçƽµÄ×î¸ßµçѹ£¬VOLÊä³öµÍµçƽµÄ×î¸ßµçѹ¡£´ÓͼÖпÉÒÔ¿´³ö5V CMOSºÍ3.3V TTLµÄµçƽת»»±ê×¼²»Í¬£¬Òò´Ë£¬3.3VÆ÷¼þ£¨LVC£©Òý½Å²»ÄÜÖ±½ÓÓë5V CMOSÆ÷¼þÒý½ÅÏàÁ¬½Ó¡£ÔÚÕâÖÖÇé¿öÏ£¬¿ÉÒÔ²ÉÓÃË«µçѹ£¨Ò»±ßÊÇ3.3V¹©µç£¬ÁíÒ»±ßÊÇ5V¹©µç£©¹©µçµÄÇý¶¯Æ÷£¬ÈçTI¹«Ë¾µÄSN74ALVC164245£¬SN74LV4245µÈ¡£¶ø5V TTLºÍ3.3V TTLµÄµçƽת»»±ê×¼Ïàͬ£¬ËùÒÔËüÃÇ¿ÉÒÔÖ±½ÓÏàÁ¬¡£ÒòΪPBL3717AÊÇTTL¼æÈݵç·£¬ËùÒÔ¿ÉÒÔÖ±½Ó½«DSPµÄI/O¿ÚºÍPBL3717µÄÏàÓ¦Òý½ÅÏàÁ¬¡£ÔÚÕâÀÎÒÃÇÑ¡DSPµÄ¶Ë¿ÚBÖеÄIOPB0£¬IOPB1£¬IOPB2£¬IOPB3£¬IOPB4£¬IOPB4·Ö±ðÓëPBL3717AµÄI1B£¬I0B£¬I1A£¬I0A£¬PhaseA£¬PhaseBÏàÁ¬½Ó£¨¼ûͼ5£©¡£

4 Èí¼þ²¿·Ö

±¾ÎÄÒÔ²½½øµç»ú¹¤×÷ÔÚ1/4²½ÎªÀýÉè¼ÆDSP¿ØÖÆÈí¼þ¡£DSP¿ØÖÆÈí¼þ²ÉÓÃCÓïÑÔ±àд¡£´ÓµÚÒ»Åĵ½µÚÊ®ÁùÅĵĿØÖÆ×Ö·Ö±ðΪ£º0x0000¡¢0x0004¡¢0x000c¡¢0x0014¡¢0x0010¡¢0x0011¡¢0x0013¡¢0x0031¡¢0x0030¡¢0x0034¡¢0x003C¡¢0x0024¡¢0x0020¡¢0x0021¡¢0x0023¡¢0x0001¡£½«ÒÔÉÏÊýÖµ´æ·Åµ½Êý×éRun_Table[]ÖУ¬¿Éͨ¹ýÑ­»·³ÌÐòµ÷ÓÃÊý×éÖеÄÏàÓ¦Öµ¸³¸ø¶Ë¿ÚBµÄÊý¾ÝºÍ·½Ïò¿ØÖƼĴæÆ÷PBDATDIR£¬´Ó¶øͨ¹ýDSPµÄ¶Ë¿ÚBÀ´Çý¶¯¿ØÖÆPBL3717AµÄÏàÓ¦Òý½ÅÀ´ÊµÏÖ²½½øµç»úÐýתÔËÐС£Í¨¹ýÐÞ¸Ärun_delay(int count)ÑÓʱ×Ó³ÌÐòµÄcountµÄÖµ¿É¸Ä±äµç»úµÄÔËתËٶȡ£ÏÂÃæ¸ø³öÁËÁ½Ïಽ½øµç»ú1/4²½·½Ê½ÏÂÕýתµÄ¿ØÖƳÌÐòÇåµ¥¡£

½áÓï

×ÛÉÏËùÊö£¬ÀûÓÃDSP»òÕßÆäËü΢´¦ÀíÆ÷£¬Ñ¡ÓÃÁ½Æ¬»òÕ߸ü¶àƬPBL3717AºÍÉÙÁ¿µÄÎÞÔ´Ôª¼þ¾Í¿É×é³ÉÒ»¸öÍêÕûÎȶ¨µÄ¶àÏಽ½øµç»úµÄÇý¶¯ÏµÍ³£¬¿ÉʵÏÖÕû²½¡¢°ë²½»ò΢²½¾à¿ØÖÆ¡£ÕâÑùÖÖ·½·¨³É±¾µÍ¡¢ÈÝÒ×ʵÏÖ¡¢ÐÔÄÜÎȶ¨£¬ÊDz½½øµç»úÇý¶¯ÏµÍ³µÄÒ»ÖֽϺÃÑ¡Ôñ¡£

×÷Õߣº¹ù³É ÎÌʢ¡ ̸ʿÁ¦ ÉϺ£´óѧ À´Ô´£º¡¶µ¥Æ¬»úÓëǶÈëʽϵͳӦÓá·2004Äê07ÆÚ


΢ÐÅɨÃè·ÖÏí±¾Îĵ½ÅóÓÑȦ
ɨÂë¹Ø×¢5GͨÐŹٷ½¹«ÖÚºÅ,Ãâ·ÑÁìÈ¡ÒÔÏÂ5G¾«Æ·×ÊÁÏ
  • 1¡¢»Ø¸´¡°YD5GAI¡±Ãâ·ÑÁìÈ¡¡¶ÖйúÒƶ¯£º5GÍøÂçAIÓ¦ÓõäÐͳ¡¾°¼¼Êõ½â¾ö·½°¸°×ƤÊé¡·
  • 2¡¢»Ø¸´¡°5G6G¡±Ãâ·ÑÁìÈ¡¡¶5G_6GºÁÃײ¨²âÊÔ¼¼Êõ°×ƤÊé-2022_03-21¡·
  • 3¡¢»Ø¸´¡°YD6G¡±Ãâ·ÑÁìÈ¡¡¶ÖйúÒƶ¯£º6GÖÁ¼òÎÞÏß½ÓÈëÍø°×ƤÊé¡·
  • 4¡¢»Ø¸´¡°LTBPS¡±Ãâ·ÑÁìÈ¡¡¶¡¶ÖйúÁªÍ¨5GÖն˰×ƤÊé¡·¡·
  • 5¡¢»Ø¸´¡°ZGDX¡±Ãâ·ÑÁìÈ¡¡¶ÖйúµçÐÅ5GNTN¼¼Êõ°×ƤÊé¡·
  • 6¡¢»Ø¸´¡°TXSB¡±Ãâ·ÑÁìÈ¡¡¶Í¨ÐÅÉ豸°²×°¹¤³ÌÊ©¹¤¹¤ÒÕͼ½â¡·
  • 7¡¢»Ø¸´¡°YDSL¡±Ãâ·ÑÁìÈ¡¡¶ÖйúÒƶ¯ËãÁ¦²¢Íø°×ƤÊé¡·
  • 8¡¢»Ø¸´¡°5GX3¡±Ãâ·ÑÁìÈ¡¡¶R1623501-g605GµÄϵͳ¼Ü¹¹1¡·
  • ±¾ÖÜÈȵ㱾ÔÂÈȵã

     

      ×îÈÈͨÐÅÕÐƸ

    Òµ½ç×îÐÂ×ÊѶ


      ×îÐÂÕÐƸÐÅÏ¢

    ×îм¼ÊõÎÄÕÂ

    ×îÐÂÂÛ̳Ìù×Ó