{"id":1554,"date":"2018-11-22T06:56:14","date_gmt":"2018-11-22T06:56:14","guid":{"rendered":""},"modified":"2018-11-22T14:56:39","modified_gmt":"2018-11-22T06:56:39","slug":"%e6%97%a0%e5%88%b7%e7%94%b5%e6%9c%bamsp430%e7%9a%84%e6%8e%a7%e5%88%b6%e8%ae%be%e8%ae%a1%e7%94%b5%e8%b7%af","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=1554","title":{"rendered":"\u65e0\u5237\u7535\u673aMSP430\u7684\u63a7\u5236\u8bbe\u8ba1\u7535\u8def"},"content":{"rendered":"
\n\tMSP430\u6982\u8ff0<\/p>\n
\n\tMSP430\u662f\u5fb7\u5dde\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u4e00\u7c7b\u5177\u670916\u4f4d\u603b\u7ebf\u7684\u5e26HLASH\u7684\u5355\u7247\u673a\uff0c\u7531\u4e8e\u5176\u6027\u4ef7\u6bd4\u548c\u96c6\u6210\u5ea6\u9ad8\uff0c\u53d7\u5230\u5e7f\u5927\u6280\u672f\u5f00\u53d1\u4eba\u5458\u7684\u9752\u7750\u3002<\/p>\n
\n\t\u5b83\u91c7\u752816\u4f4d\u7684\u603b\u7ebf\uff0c\u5916\u8bbe\u548c\u5185\u5b58\u7edf\u4e00\u7f16\u5740\uff0c\u5bfb\u5740\u8303\u56f4\u53ef\u8fbe64K\uff0c\u8fd8\u53ef\u4ee5\u5916\u6269\u5c55\u5b58\u50a8\u5668\u3002\u5177\u6709\u7edf\u4e00\u7684\u4e2d\u65ad\u7ba1\u7406\uff0c\u5177\u6709\u4e30\u5bcc\u7684\u7247\u4e0a\u5916\u56f4\u6a21\u5757\uff0c\u7247\u5185\u6709\u7cbe\u5bc6\u786c\u4ef6\u4e58\u6cd5\u5668\u3001\u4e24\u4e2a16\u4f4d\u5b9a\u65f6\u5668\u3001\u4e00\u4e2a14\u8def\u768412\u4f4d\u7684\u6a21\u6570\u8f6c\u6362\u5668\u3001\u4e00\u4e2a\u770b\u95e8\u72d7\u30016\u8defP\u53e3\u3001\u4e24\u8defUSART\u901a\u4fe1\u7aef\u53e3\u3001\u4e00\u4e2a\u6bd4\u8f83\u5668\u3001\u4e00\u4e2aDCO\u5185\u90e8\u632f\u8361\u5668\u548c\u4e24\u4e2a\u5916\u90e8\u65f6\u949f\uff0c\u652f\u63018M\u7684\u65f6\u949f\u3002\u7531\u4e8e\u4e3aHLASH\u578b\uff0c\u5219\u53ef\u4ee5\u5728\u7ebf\u5bf9\u5355\u7247\u673a\u8fdb\u884c\u8c03\u8bd5\u548c\u4e0b\u8f7d\uff0c\u4e14JTAG\u53e3\u76f4\u63a5\u548cFET(FLASHEMULATIONTOOL)\u7684\u76f8\u8fde\uff0c\u4e0d\u987b\u53e6\u5916\u7684\u4eff\u771f\u5de5\u5177\uff0c\u65b9\u4fbf\u5b9e\u7528\uff0c\u800c\u4e14\uff0c\u53ef\u4ee5\u5728\u8d85\u4f4e\u529f\u8017\u6a21\u5f0f\u4e0b\u5de5\u4f5c\uff0c\u5bf9\u73af\u5883\u548c\u4eba\u4f53\u7684\u8f90\u5c04\u5c0f\u6d4b\u91cf\u7ed3\u679c\u4e3a100mw\u5de6\u53f3\u7684\u529f\u8017(\u7535\u6d41\u4e3a14mA\u5de6\u53f3)\uff0c\u53ef\u9760\u6027\u80fd\u597d\uff0c\u52a0\u5f3a\u7535\u5e72\u6270\u8fd0\u884c\u4e0d\u53d7\u5f71\u54cd\uff0c\u9002\u5e94\u5de5\u4e1a\u7ea7\u7684\u8fd0\u884c\u73af\u5883ll\uff0c\u9002\u5408\u4e0e\u505a\u624b\u67c4\u4e4b\u7c7b\u7684\u81ea\u52a8\u63a7\u5236\u7684\u8bbe\u5907.MSP430\u7cfb\u5217\u5355\u7247\u673a\u7684\u4e3b\u8981\u4f18\u70b9\u5c31\u662f\u4f4e\u529f\u8017\uff0c\u6240\u4ee5\u5728\u9009\u62e9MSP430\u7cfb\u5217\u5355\u7247\u673a\u8bbe\u8ba1\u7cfb\u7edf\u65f6\uff0c\u9664\u4e86\u8981\u8003\u8651\u5916\u56f4\u7535\u8def\u7684\u4f4e\u529f\u8017\u4ee5\u5916\uff0c\u8fd8\u8981\u6839\u636e\u7cfb\u7edf\u8981\u6c42\u9009\u62e9\u5408\u9002\u7684MSP430\u5355\u7247\u673a\uff0c\u4f46\u662f\u6211\u4eec\u539f\u5219\u662f\u591f\u7528\u5c31\u53ef\u4ee5\uff0c\u4e0d\u63d0\u5021\u8d44\u6e90\u7684\u6d6a\u8d39\u3002<\/p>\n
\n\tMSP430F149\u7279\u6027<\/p>\n
\n\t\u2460\u4f4e\u7535\u538b\u3001\u8d85\u4f4e\u529f\u8017\u3002\u5de5\u4f5c\u7535\u538b3.6V~1.8V \uff0c\u6b63\u5e38\u5de5\u4f5c\u6a21\u5f0f280μA@1MHz\uff0c2.2V\uff0c\u5f85\u673a\u6a21\u5f0f1.6μA\uff0cRAM\u6570\u636e\u4fdd\u5b58\u7684\u6389\u7535\u6a21\u5f0f\u4e0b0.1μA\u3002\u4e94\u7ea7\u8282\u7535\u6a21\u5f0f\u3002<\/p>\n
\n\t\u2461\u5feb\u901f\u82cf\u9192\uff0c\u4ece\u5f85\u673a\u6a21\u5f0f\u4e0b\u6062\u590d\u5de5\u4f5c\uff0c\u53ea\u9700\u8981\u4e0d\u52306μS\u65f6\u95f4\u3002<\/p>\n
\n\t\u246216\u4f4d\u7cbe\u7b80\u6307\u4ee4\u96c6MCU\uff0c\u547d\u4ee4\u5468\u671f125nS\u3002<\/p>\n
\n\t\u246312\u4f4dADC\uff0c\u5177\u6709\u5185\u90e8\u53c2\u8003\u7535\u538b\u6e90\uff0c\u5e76\u4e14\u5177\u6709\u91c7\u6837\u3001\u4fdd\u6301\u3001\u81ea\u52a8\u626b\u63cf\u7b49\u529f\u80fd\u3002\u5177\u670912\u4f4d\u7684\u6a21\u6570\u8f6c\u6362\u5668\u53ef\u4ee5\u5f97\u5230\u5f88\u9ad8\u7684\u7cbe\u5ea6\uff0c\u5e76\u4e14\u7701\u53bb\u4e86\u4f7f\u7528\u4e13\u95e8\u7684\u6a21\u6570\u8f6c\u6362\u5668\u7ed9\u8bbe\u8ba1\u7535\u8def\u677f\u5e26\u6765\u7684\u9ebb\u70e6\u3002<\/p>\n
\n\t\u24642\u4e2a16\u4f4d\u8ba1\u6570\u5668\u3002\u5177\u6709\u6355\u83b7\u3001\u95e8\u9650\u529f\u80fd\u3002<\/p>\n
\n\t\u2465\u5177\u6709\u7247\u5185\u6bd4\u8f83\u5668\u3002<\/p>\n
\n\t\u2466\u652f\u6301ISP(\u5728\u7ebf\u7cfb\u7edf\u7f16\u7a0b)\uff0c\u65b9\u4fbf\u5f00\u53d1\u548c\u9879\u76ee\u5347\u7ea7\u3002<\/p>\n
\n\t\u2467\u652f\u6301\u5e8f\u5217\u53f7\uff0c\u7194\u4e1d\u4f4d\u70e7\u5199\u3002\u65b9\u4fbf\u7b80\u5355\u3002<\/p>\n
\n\t\u2468\u53cc\u4e32\u53e3<\/p>\n
\n\t\u2469\u652f\u6301\u8d85\u5c0f\u578b\u5c01\u88c5\uff1a64P-QFP\u300164P-QFN\u3002<\/p>\n
\n\tMSP430F149\u5f15\u811a\u53ca\u529f\u80fd<\/p>\n
\n\t <\/p>\n
\n\t <\/p>\n
\n\t\u56e0\u4e3aMSP430F149\u7684\u5f15\u811a\u8f83\u591a\u6240\u4ee5\u5728\u6b64\u53ea\u5c06\u7528\u5230\u7684\u5f15\u811a\u505a\u4ee5\u4e0b\u8bf4\u660e\u3002<\/p>\n
\n\tP1.0\/TACLK\u4e00\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/TImer-A\uff0c\u65f6\u949f\u4fe1\u53f7TACLK\u8f93\u5165\u3002<\/p>\n
\n\tP1.1\/TA0--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a‘TImer-A\uff0c\u6355\u83b7;CCIO\u8f93\u5165\uff0c\u6bd4\u8f83\uff1aOUTO\u8f93\u51fa\u3002<\/p>\n
\n\tP1.2\/TA1--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/TImer-A\uff0c\u6355\u83b7;CCI1\u8f93\u5165\uff0c\u6bd4\u8f83\uff1aOUT1\u8f93\u51fa\u3002<\/p>\n
\n\tP1.3\/TA2-\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\uff0c’Timer-A\uff0c\u6355\u83b7;CCI2\u8f93\u5165\uff0c\u6bd4\u8f83\uff1aOUT2\u8f93\u51fa\u3002<\/p>\n
\n\tP1.4\/SMCLK--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/SMCLK\u4fe1\u53f7\u8f93\u5165\u3002<\/p>\n
\n\tP1.5\/TA0--\u666e\u901a\u6570\u5b57IO\u5f15\u811a\/Timer-A\uff0c\u6bd4\u8f83\uff1aOUTO\u8f93\u51fa\u3002<\/p>\n
\n\tP1.6\/TA1--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/Timer-A\uff0c\u6bd4\u8f83\uff1aOUT1\u8f93\u51fa\u3002<\/p>\n
\n\tP1.7\/TA2-\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/Timer-A\uff0c\u6bd4\u8f83\uff1aOUT2\u8f93\u51fa\u3002<\/p>\n
\n\tP2.0\/ACLK--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/ACLK\u8f93\u51fa\u3002<\/p>\n
\n\tP2.1\/TAINCLK--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/Timer-A\uff0c\u540b\u72c6\u4fe1\u53f7TAINCLK<\/p>\n
\n\tP2.2\/CAOUT\/TAO--\u666e\u901a\u6570\u5b57IO\u5f15\u811a\/Timer-A\uff1a\u6355\u837b\uff1aCCIOB\u8f38\u5165\u6bd4\u8f03\u5668-A\u8f38\u51fa\u3002<\/p>\n
\n\tP2.3\/CAOTA1--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811aTimer-A\uff1a\u6bd4\u8f03\uff1aOUT1\u8f38\u51fa\/\u6bd4\u8f03\u5668-A\u8f38\u51fa\u3002P2:4\/CA1\/TA2--\u666e\u901a\u6570\u5b57IO\u5f15\u811a\/Timer-A\uff1a\u6bd4\u8f03\uff1aOUT2\u8f38\u51fa\/\u6bd4\u8f03\u5668-A\u8f38\u51fa\u3002P2.5\/Rosc\u4e00\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/\u5b9a\u4e42DOC\u676f\u79f0\u983b\u7387\u7684\u5916\u90e8\u5c6f\u963b\u8f38\u5165\u3002P2.6\/ADC12CLK--\u666e\u901a\u6570\u5b571O\u5f15\u811a\/\u7dbe\u63db\u540b\u7d33-12\u4f4dADC\u3002<\/p>\n
\n\tP3.O\/SETO--\u666e\u901a\u6570\u5b57IO\u5f15\u811a\/\u4ece\u5c8c\u9001\u4f7f\u80fd-USARTO\/SPI\u65b9\u5f0f\u3002<\/p>\n
\n\tP3.1S1M00--\u666e\u901a\u6570\u5b57I\/o\u5f15\u811a\u4ece\u8f38\u5165\u4e3b\u8f38\u51fa-USARTOISPI\u65b9\u5f0f\u3002P3.2SOMI0--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\u4ece\u8f38\u51fa\/\u4e3b\u8f38\u5165-USARTOISPI\u65b9\u5f0f\u3002<\/p>\n
\n\tP33\/UCLKO--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\u5916\u90e8\u540b\u72c6\u8f38\u5165-USARTO\/UART\/SPI\u65b9\u5f0f\u3002<\/p>\n
\n\tP3.4\/UTXDO--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/\u5c8c\u9001\u6570\u636e\u8f38\u51fa-USARTO\/UART\u65b9\u5f0f\u3002<\/p>\n
\n\tP3.5\/URXDO--\u666e\u901a\u6570\u5b57I\/O\u5f15\u811a\/\u63a5\u6536\u6570\u636e\u8f38\u51fa-USARTOUART\u65b9\u5f0f\u3002<\/p>\n
\n\tRSTNMI--\u590f\u4f4d\u8f38\u5165\uff0c\u975e\u5c4f\u853d\u4e2d\u65ad\u8f38\u5165\u7aef\u53e3\uff0c\u6216\u5f15\u5c0b\u88c5\u8f09\u7a0b\u5e8f\u540e\u52ab(FLASH\u5668\u4ef6)\u3002<\/p>\n
\n\tXIN--\u6676\u4f53\u632f\u8569\u5668XT1\u7684\u8f38\u5165\u7aef\u53e3\uff0c\u53ef\u4ee5\u9054\u63a5\u68d5\u51c6\u6676\u4f53\u3002<\/p>\n
\n\tXOUT--\u6676\u4f53\u632f\u8569\u5668XT1\u7684\u8f38\u51fa\u7aef\u53e3\u3002<\/p>\n
\n\tXT2IN--\u6676\u4f53\u632f\u8569\u5668XT2\u7684\u8f38\u5165\u7aef\u53e3\uff0c\u53ea\u80fd\u9054\u63a5\u68d5\u51c6\u6676\u4f53\u3002<\/p>\n
\n\tXT2OUT--XT2\u7684\u8f38\u51fa\u7aef\u53e3\u3002<\/p>\n
\n\tVcc--\u5c6f\u6e90\u6b63\u7aef\u3002<\/p>\n
\n\tVss--\u5c6f\u6e90\u7078\u7aef\u3002<\/p>\n
\n\tmsp430\u65e0\u5237\u7535\u673a\u63a7\u5236\u8bbe\u8ba1\u7535\u8def<\/p>\n
\n\t1\u3001\u7cfb\u7edf\u603b\u4f53\u529f\u80fd\u4ecb\u7ecd<\/strong><\/span><\/p>\n \n\t\u672c\u8bbe\u8ba1\u603b\u4f53\u529f\u80fd\u5982\u56fe4.1\u6240\u793a\uff0c\u4ee5MSP430F149\u4f5c\u4e3a\u63a7\u5236\u6838\u5fc3\uff0c\u901a\u8fc7\u4e13\u7528\u9a71\u52a8\u82af\u7247LM621\u8fde\u63a5\u9006\u53d8\u7535\u8def\u9a71\u52a8\u7535\u673a\u5de5\u4f5c\uff0c\u6309\u952e\u5b9e\u73b0\u52a0\u901f\u8bda\u901f\u529f\u80fd\uff0c\u52a0\u901f\u952e\u6309\u4e0b\u4e00\u6b21\u8f6c\u901f\u589e\u52a0100\u8f6c\uff0c\u51cf\u901f\u952e\u76d8\u6309\u4e0b\u4e00\u6b21\u8f6c\u901f\u51cf\u5c11100\u8f6c\uff0c\u53ef\u8c03\u8303\u56f4\u57282000\u8f6c\u52304000\u8f6c\u4e4b\u95f4\uff0c\u901a\u8fc7\u6da1\u8f6e\u6d41\u91cf\u8ba1\u6d4b\u8bd5\u5b9e\u9645\u6d41\u91cf\u4fe1\u606f\u53cd\u9988\u5230\u5355\u7247\u673a\u4e2d\u5b9e\u73b0\u9ad8\u7cbe\u5ea6\u7684\u7535\u673a\u8f6c\u901f\u8c03\u8282\uff0cLCD1602\u5b9e\u65f6\u663e\u793a\u6d41\u91cf\u4fe1\u606f\u3002\u56fe4.2\u4e3a\u7cfb\u7edf\u603b\u4f53\u8f6f\u4ef6\u6d41\u7a0b\u56fe\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t2\u3001MSP430F149\u5355\u7247\u673a\u6700\u5c0f\u7cfb\u7edf<\/strong><\/span><\/p>\n \n\tMSP430F149\u5355\u7247\u673a\u6700\u5c0f\u7cfb\u7edf\u7531MSP430F149\u5355\u7247\u673a\uff0c\u6676\u632f\u4ee5\u53ca\u590d\u4f4d\u7535\u8def\u7ec4\u6210\u3002\u4e24\u4e2a\u6676\u632f\u5206\u522b\u63a5\u5355\u7247\u673a\u7684XIN1\uff0cXOUT1\uff0cXIN2xoUT2\u53e3\uff0c\u590d\u4f4d\u7535\u8def\u91c7\u7528\u4e13\u7528\u590d\u4f4d\u82af\uff1a\u7247SP7085\uff0c\u4e0e\u5355\u7247\u673aRESET\u53e3\u8fde\u63a5\uff0c\u91c7\u7528SPX1117M3-3.3\u4e3a\u5355\u7247\u673a\u4f9b\u75353.3V\u3002MSP430F149\u5355\u7247\u673a\u6700\u5c0f\u7cfb\u7edf\u786c\u4ef6\u8fde\u63a5\u5982\u56fe4.3.<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t3\u3001\u663e\u793a\u6a21\u5757\u4ecb\u7ecd<\/strong><\/span><\/p>\n \n\t3.1\u663e\u793a\u6a21\u5757\u786c\u4ef6\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\t\u672c\u7cfb\u7edf\u91c7\u7528LCD1602\u6db2\u6676\u5c4f\u663e\u793a\uff0cP4\u53e3\u63a5\u4e0a\u62c9\u7535\u963b\uff0cLCD1602\u6db2\u6676\u5c4f\u7684\u63a7\u5236\u7aef\u63a5\u5728P3\u53e3\u4e0a\u9762\uff0cP3.5--P3.7\u53e3\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t3.2\u663e\u793a\u6a21\u5757\u8f6f\u4ef6\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\t\u7528LCD\u663e\u793a\u4e00\u4e2a\u5b57\u7b26\u65f6\u6bd4\u8f83\u590d\u6742\uff0c\u9996\u5148\u627e\u5230\u663e\u793a\u5c4f\u4e0a\u67d0\u4e2a\u4f4d\u7f6e\u6240\u5bf9\u5e94\u7684RAM\u533a\u76848\u4e2a\u5b57\u8282\uff0c\u5728\u6709\u7a0b\u5e8f\u5206\u522b\u5bf9\u8fd9\u4e2a8\u4e2a\u5b57\u8282\u7f6e41”\u6216\u7f6e*o?\uff0c“1”\u8868\u793a\u70b9\u4eae\uff0c“0”\u8868\u793a<\/p>\n \n\t\u4e0d\u4eae\uff0c\u8fd9\u6837\u7ec4\u5408\u8d77\u6765\u5c31\u80fd\u628a\u4e00\u4e2a\u5b57\u7b26\u70b9\u4eae\u3002\u4f46\u662f\u6709\u7684\u63a7\u5236\u5668\u5185\u90e8\u81ea\u5e26\u5b57\u7b26\u53d1\u751f\u5668\uff0c\u5982LCD1602\uff0c\u663e\u793a\u4e00\u4e2a\u5b57\u7b26\u5c31\u975e\u5e38\u5bb9\u6613\u4e86\uff0c\u628a\u63a7\u5236\u5668\u7684\u5de5\u4f5c\u8bbe\u5b9a\u5728\u6587\u672c\u65b9\u5f0f\uff0c\u518d\u6839\u636e\u5b57\u7b26\u663e\u793a\u7684\u4f4d\u7f6e\uff0c\u627e\u5230\u8be5\u4f4d\u7f6e\u627e\u51fa\u663e\u793aRAM\u6240\u5bf9\u5e94\u7684\u5730\u5740\uff0c\u8bbe\u7acb\u5149\u6807\uff0c\u5728\u628a\u6240\u9700\u8981\u7684\u5b57\u7b26\u4ee3\u7801\u9001\u4e0a\u53bb\u5c31\u53ef\u4ee5\u4e86\u3002\u663e\u793a\u6a21\u5757\u8f6f\u4ef6\u6d41\u7a0b\u56fe\u5982\u56fe4.5\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t4\u3001\u9a71\u52a8\u6a21\u5757\u4ecb\u7ecd<\/strong><\/span><\/p>\n \n\t4.1\u9a71\u52a8\u6a21\u5757\u786c\u4ef6\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\t\u672c\u8bbe\u8ba1\u91c7\u7528\u7535\u673a\u4e13\u7528\u9a71\u52a8\u82af\u7247LM621\u9a71\u52a8\u9006\u53d8\u7535\u8def\u5b9e\u73b0\u7535\u673a\u7684\u8fd0\u884c\u3002LM621\u7684HS1\uff0cHS2\uff0cHS3\u4e0e\u970d\u5c14\u4f4d\u7f6e\u4f20\u611f\u5668\u76f8\u8fde\uff0c\u63a5\u5165\u4f4d\u7f6e\u4fe1\u53f7\u4ee5\u63a7\u5236\u7535\u673a\u7684\u7535\u5b50\u6362\u76f8\uff0c\u5f15\u811a11\u300112\u300113(\u704c\u7535\u6d41\u8f93\u51fa\u7aef)\uff0c\u5f15\u811a14\u300115\u300116(\u62bd\u7535\u6d41\u8f93\u51fa\u7aef)\u5206\u522b\u4e0e\u9006\u53d8\u7535\u8def\u8fde\u63a5\u9a71\u52a8\u7535\u673a\uff0cVCC2\u63a5+5V\u7535\u6e90JINH\u63a5\u5355\u7247\u673aP2.7\u53e3\u8f93\u5165PWM\u6ce2\uff0cDIR\u63a5\u5355\u7247\u673aP2.6\u53e3\u63a7\u5236\u8f6c\u5411\uff0c\u786c\u4ef6\u8fde\u63a5\u56fe\u5982\u56fe4.6\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t4.2PWM\u63a7\u5236\u8f6f\u4ef6\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\tPWM(\u8109\u51b2\u5bbd\u5ea6\u8c03\u5236)\u662f\u901a\u8fc7\u63a7\u5236\u56fa\u5b9a\u7535\u538b\u7684\u76f4\u6d41\u7535\u6e90\u5f00\u5173\u9891\u7387\uff0c\u6539\u53d8\u8d1f\u8f7d\u4e24\u7aef\u7684\u7535\u538b\uff0c\u4ece\u800c\u8fbe\u5230\u63a7\u5236\u8981\u6c42\u7684\u4e00\u79cd\u7535\u538b\u8c03\u6574\u65b9\u6cd5\u3002\u672c\u6b21\u8bbe\u8ba1\u91c7\u7528\u5b9a\u9891\u8c03\u5bbd\u65b9\u5f0fMSP430F149\u672c\u8eab\u542b\u6709PWM\u4ea7\u751f\u6a21\u5757\uff0c\u5229\u7528MSP430F149\u5355\u7247\u673a\u7684TIMEA\u7684\u6a21\u5f0f7\u4ea7\u751fPWM\u6ce2\u5bf9\u7535\u673a\u8fdb\u884c\u8c03\u901f\u3002\u6839\u636e\u7535\u673a\u53c2\u6570\u8bbe\u5b9a\u8c03\u901f\u8303\u56f4\u4e3a2000\u8f6c~4000\u8f6c\uff0c\u6bcf\u6b21\u52a0\u901f\u952e(\u51cf\u901f\u952e)\u6309\u4e0b\uff0c\u7535\u673a\u8f6c\u901f\u8bda\u5c11(\u589e\u52a0)100\u8f6c\uff0c\u8c03\u901f\u7b49\u7ea7\u5206\u4e3a20\u7ea7\uff0c\u7ecf\u8ba1\u7b97\uff0c\u6bcf\u6b21\u5360\u7a7a\u6bd4\u6539\u53d80.025\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t5\u3001\u6309\u952e\u6a21\u5757\u4ecb\u7ecd<\/strong><\/span><\/p>\n \n\t5.1\u6309\u952e\u6a21\u5757\u786c\u4ef6\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\t\u672c\u8bbe\u8ba1\u91c7\u75281*4\u77e9\u9635\u952e\u76d8\u5b9e\u73b0\u5bf9\u6574\u4e2a\u7cfb\u7edf\u7684\u64cd\u4f5c\uff0c\u56db\u6309\u952e\u4e00\u7aef\u5206\u522b\u901a\u8fc71k\u7684\u7535\u963b\u4e0e\u5355\u7247\u673a\u7684P3.0\uff0cP3.1\uff0cP3.2\uff0cP3.3\u63a5\u53e3\u8fde\u63a5\uff0c\u53e6\u4e00\u7aef\u901a\u8fc7100k\u7684\u7535\u963b\u4e0e+5V\u7535\u6e90\u8fde\u63a5\u3002\u6309\u952e\u6a21\u5757\u8fde\u63a5\u5982\u56fe4.8\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t5.2\u6309\u952e\u6a21\u5757\u8f6f\u4ef6\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\t\u672c\u7cfb\u7edf\u4f7f\u7528\u6700\u7b80\u5355\u76841*4\u77e9\u9635\u952e\u76d8\u5b9e\u73b0\u5bf9\u6574\u4e2a\u7cfb\u7edf\u7684\u64cd\u4f5c\u3002\u5404\u952e\u5bf9\u5e94\u7684\u529f\u80fd\u548c\u952e\u503c\u52a0\u572d4.1<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t\u5404\u952e\u8be6\u7ec6\u529f\u80fd\u5982\u4e0b\uff1a<\/p>\n \n\tBUTTON1\uff1a\u542f\u52a8\u7cfb\u7edf\u3002\u5355\u7247\u673a\u4e0a\u7535\u521d\u59cb\u5316\u540e\uff0c\u9996\u5148\u626b\u63cf\u952e\u76d8\uff0c\u82e5BUTTON1\u88ab\u6309\u4e0b\uff0c\u5219\u542f\u52a8\u7cfb\u7edf\uff0c\u5426\u5219\u5c06\u4e00\u76f4\u626b\u63cf\u952e\u76d8\uff0c\u6b64\u65f6\u5176\u4ed6\u952e\u6ca1\u6709\u4efb\u4f55\u529f\u80fd\u3002BUTTON2\u548cBUTTON4\uff1a\u901a\u8fc7\u6309BUTTON4\u6216BUTTON4\uff0c\u5f53\u524d\u4f4d\u95ea\u70c1\uff0c\u6b64\u65f6\u901a\u8fc7BUTTON2\u548cBUTTON4\u53ef\u5bf9\u5f53\u524d\u4f4d\u8fdb\u884c+1\/-1\uff0c\u82e52S\u5185\u6ca1\u6709\u64cd\u4f5c\uff0c\u7cfb\u7edf\u81ea\u52a8\u786e\u8ba4\u5f53\u524d\u8f93\u5165\u503c\u3002<\/p>\n \n\tBUTTON3\uff1a\u6b63\u53cd\u8f6c\uff0c\u5b9e\u73b0\u7535\u673a\u673a\u7684\u53cd\u8f6c\u3002\u6309\u952e\u6a21\u5757\u5b50\u7a0b\u5e8f\u6d41\u7a0b\u56fe\u5982\u56fe4.9<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t6\u3001\u9650\u6d41\u7535\u8def\u8bbe\u8ba1<\/span><\/strong><\/p>\n \n\t\u4e3b\u56de\u8def\u4e2d\u901a\u8fc7\u7535\u52a8\u673a\u7684\u7535\u6d41\u6700\u7ec8\u662f\u7ecf\u8fc7\u7535\u963bR4\u63a5\u5730\u3002\u56e0\u6b64\uff0cU=R4IM\uff1a\u5176\u5927\u5c0f\u6b63\u6bd4\u4e8e\u7535\u52a8\u673a\u7684\u7535\u6d41IMO\u800cU{\u540c\u6570\/\u6a21\u8f6c\u6362\u5668\u7684\u8f93\u51fa\u7535\u538bUO\u5206\u522b\u9001\u5230LM324\u8fd0\u7b97\u653e\u5927\u5668\u7684\u4e24\u4e2a\u8f93\u5165\u7aef\uff0c\u4e00\u65e6\u53cd\u9988\u7535\u538bUf\u5927\u4e8e\u6765\u81ea\u6570\/\u6a21\u8f6c\u6362\u5668\u7684\u7ed9\u5b9a\u4fe1\u53f7Uo\uff0c\u5219LM324\u8fd0\u7b97\u653e\u5927\u5668\u8f93\u51fa\u4e3a\u4f4e\u7535\u5e73\uff0c\u901a\u8fc7\u975e\u95e8\u53d8\u4e3a\u9ad8\u7535\u5e73\u8f93\u5165\u5230LM621\u7684\u5f15\u811a17\uff0c\u4f7f\u8f93\u51fa\u5173\u65ad\uff0c\u4ece\u800c\u622a\u65ad\u4e86\u76f4\u6d41\u65e0\u5237\u7535\u52a8\u673a\u5b9a\u5b50\u7ed5\u7ec4\u7684\u6240\u6709\u7535\u6d41\u901a\u8def\uff0c\u8feb\u4f7f\u7535\u52a8\u673a\u7535\u6d41\u4e0b\u964d\uff0c\u4e00\u65e6\u7535\u6d41\u4e0b\u964d\u5230\u65f6Uq\u5c0f\u4e8eUo\uff0c\u5219LM324\u8fd0\u7b97\u653e\u5927\u5668\u8f93\u51fa\u56de\u5230\u9ad8\u7535\u5e73\uff0c\u901a\u8fc7\u975e\u95e8\u53d8\u4e3a\u4f4e\u7535\u5e73\uff0c\u63a5LM621\u768417\u811a\uff0cLM621\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t7\u3001\u901f\u5ea6\u53cd\u9988\u7535\u8def\u8bbe\u8ba1<\/strong><\/span><\/p>\n \n\t\u6da1\u8f6e\u6d41\u91cf\u8ba1\u91c7\u752824V\u76f4\u6d41\u4f9b\u7535\uff0c\u8f93\u51fa24V\u8109\u51b2\u4fe1\u53f7\u7ecf\u8fc7\u7535\u963b\u5206\u538b\u53d8\u4e3a3.3V\u8109\u51b2\u4fe1\u53f7\uff0c\u4e0e\u5355\u7247\u673aP2.5\u53e3\u8fde\u63a5\u3002\u7535\u8def\u786c\u4ef6\u8fde\u63a5\u89c1\u56fe4.11\u3002\u6da1\u8f6e\u6d41\u91cf\u8ba1\u8f93\u51fa\u7684\u7535\u538b\u8109\u51b2\u4fe1\u53f7\u4e0e\u77ac\u65f6\u6d41\u91cf\u4e4b\u95f4\u7684\u8ba1\u7b97\u516c\u5f0f\u4e3aQ=3600xfk\uff0c\u901a\u8fc7\u91c7\u96c6\u6d41\u91cf\u53cd\u9988\u4fe1\u53f7\u5b9e\u73b0\u5bf9\u6d41\u91cf\u7684\u95ed\u73af\u7cbe\u786e\u63a7\u5236\u3002<\/p>\n \n\t <\/p>\n MSP430\u6982\u8ff0 MSP430\u662f\u5fb7\u5dde\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u4e00\u7c7b\u5177\u670916\u4f4d\u603b\u7ebf\u7684\u5e26HLASH\u7684\u5355\u7247\u673a\uff0c\u7531\u4e8e\u5176\u6027\u4ef7\u6bd4\u548c\u96c6\u6210\u5ea6\u9ad8\uff0c\u53d7\u5230\u5e7f\u5927\u6280\u672f\u5f00\u53d1\u4eba\u5458\u7684\u9752\u7750\u3002 \u5b83\u91c7\u752816\u4f4d\u7684\u603b\u7ebf\uff0c\u5916\u8bbe\u548c\u5185\u5b58\u7edf\u4e00\u7f16\u5740\uff0c\u5bfb\u5740\u8303\u56f4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/1554"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1554"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/1554\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n
\n\t<\/center><\/p>\n","protected":false},"excerpt":{"rendered":"