{"id":2386,"date":"2019-05-07T08:25:22","date_gmt":"2019-05-07T08:25:22","guid":{"rendered":""},"modified":"2019-05-07T16:25:47","modified_gmt":"2019-05-07T08:25:47","slug":"c8051f340%e5%8d%95%e7%89%87%e6%9c%ba%e5%af%b9%e6%99%ba%e8%83%bd%e6%b5%8b%e9%87%8f%e7%b3%bb%e7%bb%9f%e7%9a%84%e6%8e%a7%e5%88%b6%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2386","title":{"rendered":"C8051F340\u5355\u7247\u673a\u5bf9\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u63a7\u5236\u8bbe\u8ba1"},"content":{"rendered":"

\n\t1 \u5f15\u8a00<\/p>\n

\n\t\u667a\u80fd\u6d4b\u91cf\u5728\u5404\u884c\u5404\u4e1a\u5df2\u5f97\u5230\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u6d4b\u91cf\u6240\u5f97\u5230\u7684\u6570\u636e\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u6216\u7ecf\u5916\u90e8\u7684 USB<\/u> \u6865\u63a5\u5668<\/u>\u6865\u63a5\u540e\u7ecf USB \u53e3\u4e0e\u4e0a\u4f4d\u673a \u4ea4\u6362 \u6570\u636e\u3002\u5982\u679c\u5355\u7247\u673a<\/u>\u672c\u8eab\u5df2\u96c6\u6210\u4e86 USB\u901a\u8baf\u6a21\u5757\uff0c\u8fd9\u5c06\u5927\u5927\u964d\u4f4e\u7cfb\u7edf\u6210\u672c\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u3002\u672c\u7cfb\u7edf\u6b63\u662f\u57fa\u4e8e\u6b64\u800c\u9009\u7528 C8051F34x \u82af\u7247\uff0c\u5b83\u662fSILICon Laboratories \u516c\u53f8\u6700\u65b0\u63a8\u51fa\u7684\u4e00\u6b3e\u53ef\u63d0\u4f9b USB \u529f\u80fd\u7684\u6df7\u5408\u4fe1\u53f7\u5fae\u63a7\u5236\u5668 \u7684\u9ad8\u5ea6\u96c6\u6210\u4ea7\u54c1\uff3b1\uff3d\uff0c\u5305\u542b\u4e86\u9ad8\u901f\u7ba1\u7ebf\u7684 8051 \u517c\u5bb9\u5fae\u63a7\u5236\u5668\u6838\u5fc3\uff0c\u53ef\u4ee5\u5728\u9ad8\u8fbe 48 MI<\/u>PS \u7684\u901f\u7387\u4e0b\u5de5\u4f5c\uff0c\u5b83\u63d0\u4f9b 64 KB \u7684\u82af\u7247\u5185\u5efa\u95ea\u5b58\u4ee5\u53ca 5376 \u5b57\u8282\u7684 RAM<\/u>\uff0c\u5176\u4e2d 70%\u7684\u6307\u4ee4\u53ef\u4ee5\u5728\u4e00\u4e2a\u6216\u4e24\u4e2a\u673a\u5668\u5468\u671f\u4e2d\u6267\u884c\uff0c\u5e76\u83b7\u5f97\u540c\u7b49\u7ea7\u4e2d\u6700\u4f73\u7684 CPU<\/u> \u4f20\u8f93\u7387\uff1bUSB \u529f\u80fd\u63a7\u5236\u5668\u5177\u6709\u5b8c\u6574\u7684 USB 2.0 \u8ba4\u8bc1\uff0c\u652f\u6301\u5168\u901f\u4e0e\u4f4e\u901f\u64cd\u4f5c\u5e76\u5305\u542b 8 \u4e2a\u7aef\u70b9\u7ba1\u7ebf\uff1b\u6a21\u62df\u5916\u8bbe\u5305\u542b\u4e00\u4e2a\u771f\u6b63 10\u4f4d 200 ksps \u5dee\u5206\u6216\u5355\u7aef ADC<\/u>\uff0c\u53ef\u4ee5\u652f\u6301\u9ad8\u8fbe 17 \u4e2a\u5916\u90e8\u6a21\u62df\u8f93\u5165\uff1b\u65f6\u5e8f\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7 4 \u4e2a\u901a\u7528\u578b 16 \u4f4d\u5b9a\u65f6\u5668<\/u>\u6216\u4e00\u4e2a 5 \u901a\u9053\u7684\u53ef\u7f16\u7a0b\u8ba1\u6570\u5668\/\u5b9a\u65f6\u5668\u9635\u5217\uff08PCA\uff09\u6765\u5b9e\u73b0\uff0c\u5728\u6b64\u6709 5 \u4e2a\u5168\u529f \u80fd\u7aef\u53e3\u53ef\u4ee5\u63d0\u4f9b 40 \u4e2a\u53ef\u63a7\u5236\u7684 I\/O \u5f15\u811a\uff085 \u4e2a 8 \u4f4d\u53e3\uff09\u3002<\/p>\n

\n\t <\/div>\n

\n\t\"C8051F340\u5355\u7247\u673a\u5bf9\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe 1 \u7cfb\u7edf\u7ed3\u6784\u6846\u56fe<\/p>\n

\n\t\u667a\u80fd\u6570\u636e\u91c7\u96c6\u7cfb\u7edf\u5305\u62ec\uff1a\u6b65\u8fdb\u7535\u673a<\/u>\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\u3001\u6570\u636e\u4f20\u8f93\u3001\u6570\u636e\u5904\u7406\u7b49\u90e8\u5206\uff08\u5982\u56fe1 \u6240\u793a\uff09\u3002\u4e3a\u4e86\u8fdb\u4e00\u6b65\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u964d\u4f4e\u6210\u672c\uff0c\u672c\u6587\u63d0\u51fa\u4e86\u91c7\u7528\u7247\u4e0a\u7cfb\u7edf\uff08SOC\uff09\u7684\u89e3\u51b3\u65b9\u6848——\u57fa\u4e8eC8051F340 \u7684\u667a\u80fd\u6d4b\u91cf\u6a21\u5757\uff0c\u8be5\u6a21\u5757\u63a5\u6536\u4e0a\u4f4d\u673a\u7684\u6307\u4ee4\u6765\u63a7\u5236\u6b65\u8fdb\u7535\u673a\u7684\u52a8 \u4f5c\uff0c\u5bf9\u4f20\u611f\u5668<\/u>\u9001\u6765\u7684\u4fe1\u53f7\u8fdb\u884cA\/D\u8f6c\u6362\uff0c\u5411\u4e0a\u4f4d\u673a\u4f20\u9001\u6d4b\u91cf\u6570\u636e\u3002<\/p>\n

\n\t2 \u6a21\u5757\u7684\u5de5\u4f5c\u539f\u7406\u548c\u529f\u80fd<\/p>\n

\n\t\u667a\u80fd\u6d4b\u91cf\u6a21\u5757\u7684\u6838\u5fc3\u662f\u7247\u4e0a\u7cfb\u7edf\uff08SOC\uff09\uff0c\u5373 C8051F340 \u5355\u7247\u673a\uff0c\u5b83\u5177\u6709 USB \u901a\u4fe1\u7aef\u53e3\u548c A\/D \u8f6c\u6362\u6a21\u5757\u3002\u901a\u8fc7\u5e94\u7528 C8051F340 \u5185\u542b\u7684\u6570\u5b57\u7aef\u53e3\u5b9e\u73b0\u5bf9\u6b65\u8fdb\u7535\u673a\u7684\u63a7\u5236\uff0cA\/D \u6a21\u5757 \u5bf9\u6a21\u62df\u8f93\u5165\u7aef\u7684\u4fe1\u53f7\u8fdb\u884c\u6570\u636e\u91c7\u96c6\uff0c\u901a\u8fc7\u82af\u7247\u4e2d\u7684 USB \u7aef\u53e3\u4e0e\u4e0a\u4f4d\u673a\u8fdb\u884c\u6570\u636e \u4ea4\u6362 \u3002\u91c7\u7528C8051F340 \u5355\u7247\u673a\u540e\uff0c\u53ef\u4ee5\u5145\u5206\u5229\u7528\u82af\u7247\u7684\u5185\u90e8\u8d44\u6e90\uff0c\u4ece\u800c\u8282\u7ea6\u7cfb\u7edf\u6210\u672c\u3002<\/p>\n

\n\t2.1 \u6b65\u8fdb\u7535\u673a\u63a7\u5236\u529f\u80fd<\/p>\n

\n\t\u6b65\u8fdb\u7535\u673a\u7684\u63a7\u5236\u91cf\u4e3a\u65f6\u949f<\/u>\u8109\u51b2\u3001\u542f\u3001\u505c\u548c\u65b9\u5411\u63a7\u5236\u4fe1\u53f7\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u542f\u3001\u505c\u4fe1\u53f7\u548c\u65b9 \u5411\u63a7\u5236\u4fe1\u53f7\u76f8\u5bf9\u6765\u8bf4\u6bd4\u8f83\u7b80\u5355\uff0c\u53ea\u8981\u5411\u6307\u5b9a\u7684\u6570\u5b57\u7aef\u53e3\u8f93\u51fa\u9ad8\u3001\u4f4e\u7535\u5e73\u5c31\u80fd\u63a7\u5236\u6b65\u8fdb\u7535\u673a\u7684\u542f\u52a8\u3001\u505c\u6b62\u3001\u6b63\u5411\u548c\u9006\u5411\u8f6c\u52a8\u3002 \u6b65\u8fdb\u7535\u673a\u6240\u9700\u7684\u65f6\u949f\u8109\u51b2\u5219\u8981\u901a\u8fc7\u5bf9\u7247\u5185\u5b9a\u65f6\u5668\u8fdb\u884c\u7f16\u7a0b\uff0c\u4f7f\u7528\u5b9a\u65f6\u4e2d\u65ad\u5728\u6307\u5b9a\u7684\u6570\u5b57\u7aef\u53e3\u8f93\u51fa\u8109\u51b2\u4fe1\u53f7\u3002C8051F340 \u5185\u542b\u7684\u5b9a\u65f6\u5668 2 \u662f\u4e00\u4e2a 16 \u4f4d\u7684\u8ba1\u6570\u5668\/\u5b9a\u65f6\u5668\uff08\u89c1\u56fe 2\uff09\uff0c\u7531\u4e24\u4e2a 8 \u4f4d\u7684 SFR \u7ec4\u6210\uff1aTMR2L\uff08\u4f4e\u5b57\u8282\uff09\u548c TMR2H\uff08\u9ad8\u5b57\u8282\uff09\u3002\u5b9a\u65f6\u5668 2 \u53ef\u4ee5\u5de5\u4f5c\u5728 16 \u4f4d\u81ea\u52a8 \u91cd\u88c5\u8f7d\u65b9\u5f0f\u30018 \u4f4d\u81ea\u52a8\u91cd\u88c5\u8f7d\u65b9\u5f0f\uff08\u4e24\u4e2a 8 \u4f4d\u5b9a\u65f6\u5668\uff09\u6216 USB \u5e27\u8d77\u59cb\uff08SOF\uff09\u6355\u6349\u65b9\u5f0f\u3002\u5f53T2SPLIT =“0”\u4e14 T2SOF =“0”\u65f6\uff0c\u5b9a\u65f6\u5668 2 \u5de5\u4f5c\u5728\u81ea\u52a8\u91cd\u88c5\u8f7d\u7684 16 \u4f4d\u5b9a\u65f6\u5668\u65b9\u5f0f\u3002<\/p>\n

\n\t\"C8051F340\u5355\u7247\u673a\u5bf9\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe 2 \u5b9a\u65f6\u5668 2 \u7684 16 \u4f4d\u65b9\u5f0f\u539f\u7406\u56fe<\/p>\n

\n\t\u5b9a\u65f6\u5668 2 \u53ef\u4ee5\u4f7f\u7528 SYSCLK\u3001SYSCLK\/12 \u6216\u5916\u90e8\u632f\u8361\u5668<\/u>\u65f6\u949f\/8 \u4f5c\u4e3a\u65f6\u949f\u6e90\u3002\u5f53 16 \u4f4d\u5b9a \u65f6\u5668\u5bc4\u5b58\u5668<\/u>\u53d1\u751f\u6ea2\u51fa\uff08\u4ece 0xFFFF \u5230 0x0000\uff09\u65f6\uff0c\u5b9a\u65f6\u5668 2 \u91cd\u8f7d\u5bc4\u5b58\u5668\uff08TMR2RLH \u548c TMR2RLL\uff09 \u4e2d\u7684 16 \u4f4d\u8ba1\u6570\u521d\u503c\u88ab\u81ea\u52a8\u88c5\u5165\u5230\u5b9a\u65f6\u5668 2 \u5bc4\u5b58\u5668\u5bf9 TMR2H:TMR2L\uff0c\u5e76\u5c06\u5b9a\u65f6\u5668 2 \u9ad8\u5b57\u8282 \u6ea2\u51fa\u6807\u5fd7 TF2H \u7f6e“1”\u3002\u5982\u679c\u5b9a\u65f6\u5668 2 \u4e2d\u65ad\u88ab\u5141\u8bb8\uff0c\u6bcf\u6b21\u6ea2\u51fa\u90fd\u5c06\u4ea7\u751f\u4e2d\u65ad\u3002\u5728\u5b9a\u65f6\u5668 2 \u7684\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u6839\u636e\u4e0a\u4f4d\u673a\u4e0b\u8fbe\u7684\u6307\u4ee4\uff0c\u5bf9\u4e2d\u65ad\u6b21\u6570\u8fdb\u884c\u8ba1\u6570\u3002\u5f53\u4e2d \u65ad\u6b21\u6570\u8fbe\u5230\u6307\u5b9a\u6570\u503c\u65f6\u7acb\u5373\u6539\u53d8\u6307\u5b9a\u7aef\u53e3\u7684\u6570\u503c\uff080 \u53d8 1\u30011 \u53d8 0\uff09\uff0c\u4ece\u800c\u5c31\u80fd\u5728\u8be5\u6570\u5b57\u7aef\u53e3\u4ea7 \u751f\u4e00\u4e2a\u6307\u5b9a\u8109\u5bbd\u7684\u8109\u51b2\u4fe1\u53f7\u3002\u667a\u80fd\u6d4b\u91cf\u6a21\u5757\u91c7\u7528 C8051F340 \u7247\u5185\u632f\u8361\u5668\uff0812MHz\uff09\u4ea7\u751f\u7684 SYSCLK\/12 \u4f5c\u4e3a\u5b9a\u65f6\u5668\u7684\u65f6\u949f\u6e90\uff0c\u6570\u5b57\u7aef\u53e3\u8bbe\u7f6e\u4e3a\u63a8\u633d\u8f93\u51fa\uff0c\u5f53\u91cd\u8f7d\u5bc4\u5b58\u5668\u7684\u503c\u4e3a 0xFF64 \u65f6\u80fd\u5728\u6570\u5b57\u7aef\u53e3\u8f93\u51fa\u6700\u9ad8\u4e3a3205Hz \u7684\u65b9\u6ce2\u3002\u7531\u4e8e\u6240\u9009\u7528\u7684\u82af\u7247\u662f\u4f4e\u7535\u538b\u3001\u4f4e\u529f\u8017\u7684\u9ad8\u901f\u5668\u4ef6\uff0c\u6709\u65f6\u8fd8\u5b58\u5728\u7740\u6570\u5b57\u7aef\u53e3\u4e0e\u6b65\u8fdb\u7535\u673a\u63a7\u5236\u7535\u8def<\/u>\u4e4b\u95f4\u4fe1\u53f7\u7535\u5e73\u7684\u5339\u914d\u95ee\u9898\uff0c\u4e3a\u6b64\u53ef\u9009\u7528\u76f8\u5e94\u7684\u7535\u5e73\u8f6c\u79fb\u7535\u8def\u6765\u89e3\u51b3\u3002<\/p>\n

\n\t2.2 \u6570\u636e\u91c7\u96c6\u548c\u5904\u7406\u529f\u80fd<\/p>\n

\n\tC8051F340 \u5185\u90e8\u6709\u4e00\u4e2a 10 \u4f4d SAR ADC \u548c\u4e00\u4e2a\u5dee\u5206\u8f93\u5165\u591a\u8def\u9009\u62e9\u5668\u3002\u8be5 ADC \u5de5\u4f5c\u5728200ksps \u7684\u6700\u5927\u91c7\u6837\u901f\u7387\u65f6\u53ef\u63d0\u4f9b\u771f\u6b63 10 \u4f4d\u7684\u7ebf\u6027\u5ea6\u3002ADC \u7cfb\u7edf\u5305\u542b\u4e00\u4e2a\u53ef\u7f16\u7a0b\u7684\u6a21\u62df\u591a \u8def\u9009\u62e9\u5668\uff0c\u7528\u4e8e\u9009\u62e9 ADC \u7684\u6b63\u8f93\u5165\u548c\u8d1f\u8f93\u5165\u4ee5\u53ca\u6d4b\u91cf\u4fe1\u53f7\u6e90\u3002A\/D \u8f6c\u6362\u53ef\u4ee5\u6709 6 \u79cd\u542f\u52a8\u65b9\u5f0f\uff1a\u8f6f\u4ef6\u547d\u4ee4\u3001\u5b9a\u65f6\u5668 0 \u6ea2\u51fa\u3001\u5b9a\u65f6\u5668 1 \u6ea2\u51fa\u3001\u5b9a\u65f6\u5668 2 \u6ea2\u51fa\u3001\u5b9a\u65f6\u5668 3 \u6ea2\u51fa\u6216\u5916\u90e8\u8f6c\u6362\u542f\u52a8\u4fe1\u53f7\u3002\u8fd9\u79cd\u7075\u6d3b\u6027\u5141\u8bb8\u7528\u8f6f\u4ef6\u4e8b\u4ef6\u3001\u5468\u671f\u6027\u4fe1\u53f7\uff08\u5b9a\u65f6\u5668\u6ea2\u51fa\uff09\u6216\u5916\u90e8\u786c\u4ef6\u4fe1\u53f7\u89e6\u53d1\u8f6c\u6362\u3002 \u4e00\u4e2a\u72b6\u6001\u4f4d\u7528\u4e8e\u6307\u793a\u8f6c\u6362\u5b8c\u6210\uff0c\u6216\u4ea7\u751f\u4e2d\u65ad\uff08\u5982\u679c\u88ab\u5141\u8bb8\uff09\u3002\u8f6c\u6362\u7ed3\u675f\u540e 10 \u4f4d\u7ed3\u679c\u6570\u636e\u5b57\u88ab\u9501<\/u>\u5b58\u5230 ADC \u6570\u636e\u5bc4\u5b58\u5668\uff0c\u5373 ADC0H \u548c ADC0L \u4e2d\uff08\u89c1\u56fe 3\uff09\u3002<\/p>\n

\n\t\"C8051F340\u5355\u7247\u673a\u5bf9\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe3 10\u4f4dADC\u7535\u8def\u56fe<\/p>\n

\n\t\u667a\u80fd\u6d4b\u91cf\u6a21\u5757\u5728\u6570\u636e\u91c7\u96c6\u65f6\uff0cGND \u88ab\u9009\u62e9\u4e3a\u8d1f\u8f93\u5165\uff0c\u5219 ADC0 \u5de5\u4f5c\u5728\u5355\u7aef\u65b9\u5f0f\uff0c\u8f6c\u5316 \u7801\u4e3a 10 \u4f4d\u65e0\u7b26\u53f7\u6574\u6570\uff0c\u6240\u6d4b\u91cf\u7684\u8f93\u5165\u4fe1\u53f7\u8303\u56f4\u4e3a 0 ~VR<\/u>EF×1023\/1024\u3002VREF \u4e3a A\/D \u8f6c\u6362 \u65f6\u7684\u53c2\u8003\u7535\u538b\uff0c\u53ef\u7528\u7247\u5185\u63d0\u4f9b\u7684\u57fa\u51c6\u7535\u538b\u3002\u8f6c\u6362\u6570\u636e\u5728\u5bc4\u5b58\u5668\u5bf9 ADC0H:ADC0L \u4e2d\u7684 \u5b58\u50a8 \u65b9\u5f0f\u53ef\u4ee5\u662f\u5de6\u5bf9\u9f50\u6216\u53f3\u5bf9\u9f50\uff0c\u91c7\u7528\u53f3\u5bf9\u9f50\u65f6\u6d4b\u91cf\u7ed3\u679c\u7684\u6570\u503c\u8303\u56f4\u4e3a 0 ~0x3FF\u3002\u5411 AD0BUSY \u5199“1”\u65b9\u5f0f\u63d0\u4f9b\u4e86\u7528\u8f6f\u4ef6\u63a7\u5236 ADC0 \u8f6c\u6362\u7684\u80fd\u529b\u3002AD0BUSY \u4f4d\u5728\u8f6c\u6362\u671f\u95f4\u88ab\u7f6e“1”\uff0c\u8f6c \u6362\u7ed3\u675f\u540e\u590d“0”\u3002\u5728\u5b9a\u65f6\u5668 2 \u7684\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u6839\u636e\u6b65\u8fdb\u7535\u673a\u7684\u5de5\u4f5c\u6a21\u5f0f\u548c\u4e0a\u4f4d\u673a\u7684\u6307\u4ee4\uff0c\u786e\u5b9a\u6b65\u8fdb \u7535\u673a\u8fd0\u52a8\u591a\u5c11\u6b65\u540e\u518d\u542f\u52a8 A\/D \uff08AD0BUSY \u5199“1”\uff09——\u91c7\u96c6\u6570\u636e\uff0c\u5e76\u5c06\u6570\u636e\u4fdd\u5b58\u5728\u95ea\u5b58\u4e2d\u3002 \u5bf9\u4e8e\u88ab\u6d4b\u4fe1\u53f7\u7535\u5e73\u6709\u4e25\u683c\u7684\u8981\u6c42\uff0c\u524d\u7f6e\u653e\u5927\u5668<\/u>\u7684\u8f93\u51fa\u7ea7\u53ef\u7528\u8fd0\u653e OP07 \u7ec4\u6210\u7535\u538b\u8ddf\u968f\u7535\u8def\uff0c\u5e76\u5728\u8f93\u51fa\u7aef\u52a0\u88c5\u9650\u538b\u4fdd\u62a4\u7535\u8def<\/u>\u4ee5\u4fdd\u8bc1\u5355\u7247\u673a\u6a21\u62df\u8f93\u5165\u7aef\u7684 \u5b89\u5168 \u3002<\/p>\n

\n\t2.3 \u6570\u636e\u901a\u4fe1<\/u>\u529f\u80fd<\/p>\n

\n\tC8051F340 \u96c6\u6210\u4e86 USB \u529f\u80fd\u63a7\u5236\u5668\uff0c\u7528\u4e8e\u5b9e\u73b0 USB \u63a5\u53e3\u7684\u5916\u90e8\u8bbe\u5907\uff08C8051F340 \u4e0d\u80fd\u4f5c USB \u4e3b\u8bbe\u5907\uff09\uff0cUSB \u529f\u80fd\u63a7\u5236\u5668\u548c\u6536\u53d1\u5668<\/u>\u5177\u6709\u5b8c\u6574\u7684 USB 2.0 \u8ba4\u8bc1\uff0c\u652f\u6301\u5168\u901f\u4e0e\u4f4e\u901f\u64cd\u4f5c \u5e76\u5305\u542b 8 \u4e2a\u7aef\u70b9\u7ba1\u7ebf\uff0c\u63a7\u5236\u7aef\u70b9\uff08\u7aef\u70b9 0\uff09\u603b\u662f\u4f5c\u4e3a\u53cc\u5411 IN\/OUT \u7aef\u70b9\uff0c\u5176\u5b83\u7aef\u70b9\u88ab\u4f5c\u4e3a 3 \u5bf9IN\/OUT \u7aef\u70b9\u7ba1\u7ebf\uff0c\u901a\u4fe1\u901f\u5ea6\u53ef\u901a\u8fc7\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668 USB0XCN \u4e2d\u7684 SPEED \u4f4d\u9009\u62e9\uff0c\u8981\u4f7fUSB0 \u5de5\u4f5c\u5728\u5168\u901f\u65b9\u5f0f\uff0cUSB0 \u7684\u65f6\u949f\u5fc5\u987b\u4e3a 48 MHz\u3002\u5f53 USB \u63a5\u6536\u6570\u636e\u65f6\uff0c\u4e32\u884c\u63a5\u53e3\u5f15\u64ceSIE\uff09\u5728\u63a5\u6536\u5b8c\u4e00\u4e2a\u5b8c\u6574\u7684\u6570\u636e\u5305\u540e\u4e2d\u65ad\u5904\u7406\u5668\uff1b\u76f8\u5e94\u7684\u63e1\u624b\u4fe1\u53f7\u7531 SIE \u81ea\u52a8\u4ea7\u751f\u3002\u5f53\u53d1\u9001 \u6570\u636e\u65f6\uff0cSIE \u5728\u53d1\u9001\u5b8c\u4e00\u4e2a\u5b8c\u6574\u7684\u6570\u636e\u5305\u5e76\u4e14\u6536\u5230\u76f8\u5e94\u7684\u63e1\u624b\u4fe1\u53f7\u540e\u4e2d\u65ad\u5904\u7406\u5668\u3002\u667a\u80fd\u6d4b\u91cf\u6a21\u5757\u91c7\u7528 C8051F340 \u7247\u5185\u632f\u8361\u5668\uff0812MHz\uff09\u4ea7\u751f\u7684 SYSCLK\uff0c\u7ecf\u5185\u7f6e\u7684 4 \u500d\u65f6\u949f \u4e58\u6cd5\u5668\u4ea7\u751f 48MHz \u65f6\u949f\uff0c\u4f7f USB0 \u5de5\u4f5c\u5728\u5168\u901f\u65b9\u5f0f\u3002\u6a21\u5757\u8bbe\u7f6e\u6210\u901a\u8fc7\u7aef\u70b9 1 \u5411\u4e0a\u4f4d\u673a\u53d1\u9001\u6570\u636e\uff0c\u7aef\u70b9 2 \u63a5\u6536\u4e0a\u4f4d\u673a\u9001\u6765\u7684\u6570\u636e\uff0cUSB \u5de5\u4f5c\u5728\u4e2d\u65ad\u65b9\u5f0f\u3002<\/p>\n

\n\t3 \u8f6f\u4ef6\u8bbe\u8ba1\u53ca\u7cfb\u7edf \u6d4b\u8bd5<\/u><\/p>\n

\n\t\u6a21\u5757\u901a\u8baf \u534f\u8bae \u7684\u4e09\u5c42\u7ed3\u6784\u6a21\u578b\u4e3a\uff1a\u7269\u7406\u5c42\u3001\u6570\u636e\u94fe\u8def\u5c42\u548c\u5e94\u7528\u5c42\u3002\u7269\u7406\u5c42\u548c\u6570\u636e\u94fe\u8def\u5c42\u7684\u529f\u80fd\u5305\u62ec\u5404\u79cd\u901a\u8baf\u5e27\u7ed3\u6784\u7684\u7ec4\u7ec7\u548c\u6536\u53d1\uff0c \u662f\u7531 SOC \u672c\u8eab\u5b9e\u73b0\u7684\uff0c \u56e0\u6b64\u7cfb\u7edf\u7684\u5f00\u53d1\u5c06\u96c6\u4e2d\u5728\u5e94\u7528\u5c42\u8f6f\u4ef6\u7684\u8bbe\u8ba1\u3002<\/p>\n

\n\t\u56fa\u4ef6\u7a0b\u5e8f\u4e3b\u8981\u5305\u62ec\u521d\u59cb\u5316\u3001\u4e3b\u63a7\u7a0b\u5e8f\u548c 3 \u4e2a\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u3002\u6a21\u5757\u521d\u59cb\u5316\u90e8\u5206\u5c31\u662f\u8981\u5b9a\u4e49SOC \u7684\u5de5\u4f5c\u9891\u7387\uff0c\u5b9a\u4e49\u6a21\u62df\u3001\u6570\u5b57\u7aef\u53e3\u7684\u8f93\u5165\/\u8f93\u51fa\u6a21\u5f0f\uff0c\u5b9a\u4e49 USB \u4e2d\u65ad\u3001\u5b9a\u65f6\u5668 2 \u4e2d\u65ad\u548cA\/D \u4e2d\u65ad\u7684\u5de5\u4f5c\u6a21\u5f0f\uff1b\u4e3b\u63a7\u7a0b\u5e8f\u5904\u7406\u524d\u53f0\u4efb\u52a1\uff0c\u4e3b\u8981\u662f\u54cd\u5e94\u5404\u7c7b\u4e2d\u65ad\u548c\u5229\u7528\u516c\u5171\u6570\u636e\u533a\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff1b\u6b65\u8fdb\u7535\u673a\u7684\u63a7\u5236\u3001\u6570\u636e\u7684\u91c7\u96c6\u548c\u6570\u636e\u7684\u901a\u4fe1\u90fd\u5c06\u5229\u7528\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u5728\u540e\u53f0\u5b9e\u73b0\u3002<\/p>\n

\n\t\"C8051F340\u5355\u7247\u673a\u5bf9\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t\"C8051F340\u5355\u7247\u673a\u5bf9\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe 5 \u4e0a\u4f4d\u673a\u7a0b\u5e8f\u6846\u56fe<\/p>\n

\n\t\u4e0a\u4f4d\u673a\u7a0b\u5e8f\u91c7\u7528 VC \u53ef\u89c6\u5316\u5f00\u53d1\u5e73\u53f0\uff0c\u5bf9 USB \u7aef\u53e3\u5f62\u6210\u7684\u901a\u4fe1\u7ba1\u9053\u8fdb\u884c\u6807\u51c6\u7684\u8bfb\u5199\u64cd\u4f5c\uff0c\u4ece\u800c\u5b9e\u73b0\u4e0a\u4f4d\u673a\u4e0e C8051F340 \u7684\u6570\u636e\u901a\u8baf\uff0c\u5b9e\u65f6\u663e\u793a\u73b0\u573a\u53c2\u6570\u3001\u7ed8\u5236\u56fe\u5f62<\/u>\uff0c\u5e76\u5bf9\u73b0\u573a\u53c2\u6570\u8fdb\u884c\u7cfb\u7edf\u5206\u6790\u3002<\/p>\n

\n\t\u4e0a\u4f4d\u673a\u7a0b\u5e8f\u91c7\u7528\u4e3b\u7ebf\u7a0b\u548c\u8f85\u7ebf\u7a0b\u534f\u8c03\u5de5\u4f5c\u6a21\u5f0f\uff0c \u53ef\u4ee5\u964d\u4f4e\u4e3b\u7a0b\u5e8f\u5904\u7406\u65f6\u95f4\uff0c \u63d0\u9ad8\u901a<\/u>\u8baf\u6548\u7387\u3002<\/p>\n

\n\t\u5bf9\u56fe 1 \u6240\u793a\u7684\u7cfb\u7edf\u8fdb\u884c \u6d4b\u8bd5 \uff1a\u5206\u522b\u5bf9\u692d\u5706\u504f\u632f\u7247\u3001\u5706\u504f\u632f\u7247\u7ec4\u6210\u7684\u5149\u8def\u8fdb\u884c\u5149\u5f3a\u5206\u5e03\u6d4b\u8bd5\uff0c\u6b65\u8fdb\u7535\u673a\u7531 C8051F\u5355\u7247\u673a\u63a7\u5236\uff0c\u6bcf\u79d2\u949f\u8f6c\u4e00\u5708\u6d4b 200 \u4e2a\u6570\u636e\uff1bPC \u673a\u901a\u8fc7 USB \u53e3\u63a5\u6536\u6570\u636e\uff0c\u5e76\u5bf9\u6570\u636e\u8fdb\u884c\u5206\u6790\u548c\u62df\u5408\uff0c\u6839\u636e\u504f\u632f\u7247\u7684\u4e0d\u540c\u7ec4\u5408\uff0c\u53ef\u5f97\u5230\u5706\u5f62\u3001\u692d\u5706\u5f62\u3001\u8170\u679c\u5f62\u7b49\u4e0d\u540c\u7c7b\u578b\u7684\u56fe\u5f62\u3002<\/p>\n

\n\t4 \u7ed3\u675f\u8bed<\/p>\n

\n\t\u8bba\u6587\u63d0\u51fa\u7684\u57fa\u4e8e C8051F340 \u7684\u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7531\u4e8e\u91c7\u7528\u5c0f\u4f53\u79ef\u8d34\u88c5\u82af\u7247\uff0c\u4e0d\u5fc5\u5916\u63a5\u5176\u5b83A\/D\u8f6c\u6362\u548c USB \u901a\u4fe1\u63a5\u53e3\u5668\u4ef6\uff0c\u51cf\u5c0f\u4e86\u6574\u673a\u7684\u4f53\u79ef\uff0c\u63d0\u9ad8\u4e86\u6574\u673a\u7684\u6027\u4ef7\u6bd4\u548c\u53ef\u9760\u6027\u3002\u6d4b\u8bd5\u8868\u660e\uff0c\u8be5\u6a21\u5757\u5728\u5b9e\u9645\u68c0\u6d4b\u8fc7\u7a0b\u4e2d\u80fd\u591f\u51c6\u786e\u7684\u63d0\u53d6\u88ab\u6d4b\u5bf9\u8c61\u7684\u4fe1\u53f7\u7279\u5f81\uff0c\u5404\u9879\u6307\u6807\u90fd\u7b26\u5408\u6d4b\u8bd5\u8981\u6c42\u3002<\/p>\n

\n\t\u672c\u6587\u4f5c\u8005\u521b\u65b0\u70b9\uff1a\u91c7\u7528SILICon Laboratories \u516c\u53f8\u6700\u65b0\u63a8\u51fa\u7684\u4e00\u6b3e\u5fae\u63a7\u5236\u5668 C8051F340 \u4e3a \u667a\u80fd\u6d4b\u91cf\u7cfb\u7edf\u7684\u6838\u5fc3\uff0c\u56e0\u5176\u53ef\u63d0\u4f9b USB \u529f\u80fd\uff0c\u96c6\u6d4b\u91cf\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\u3001\u6570\u636e\u901a\u8baf\u4e3a\u4e00\u4f53\uff0c\u4fbf\u4e8e\u8f6f\u4ef6\u5f00\u53d1\uff0c\u5e76\u51cf\u5c0f\u4e86\u6574\u673a\u7684\u4f53\u79ef\uff0c\u63d0\u9ad8\u4e86\u6574\u673a\u7684\u6027\u4ef7\u6bd4\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

1 \u5f15\u8a00 \u667a\u80fd\u6d4b\u91cf\u5728\u5404\u884c\u5404\u4e1a\u5df2\u5f97\u5230\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u6d4b\u91cf\u6240\u5f97\u5230\u7684\u6570\u636e\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u6216\u7ecf\u5916\u90e8\u7684 USB \u6865\u63a5\u5668 \u6865\u63a5\u540e\u7ecf USB \u53e3\u4e0e\u4e0a\u4f4d\u673a \u4ea4\u6362 \u6570\u636e\u3002\u5982\u679c \u5355\u7247\u673a \u672c\u8eab\u5df2\u96c6\u6210\u4e86 USB\u901a\u8baf\u6a21\u5757\uff0c\u8fd9\u5c06<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2386"}],"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=2386"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2386\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2386"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}