电子类 自动化 单片机 毕业设计论文 外文翻译 中英文对照:芯片STC12C5204AD的IO口配置.doc
《电子类 自动化 单片机 毕业设计论文 外文翻译 中英文对照:芯片STC12C5204AD的IO口配置.doc》由会员分享,可在线阅读,更多相关《电子类 自动化 单片机 毕业设计论文 外文翻译 中英文对照:芯片STC12C5204AD的IO口配置.doc(16页珍藏版)》请在沃文网上搜索。
1、Chip STC12C5204AD I/O port configurationSTC12C5204AD series microcontroller its all I/O ports are controlled by the software configuration into 4 kinds of work type 4 types are respectively: quasi two-way mouth (standard the 8051 output mode), push-pull output, only for input (high resistance) or op
2、en-drain output functions. Every mouth consists of two control register the relevant position control each pin type of work. STC12C5204AD series microcontroller to electricity reattachment shall prevail two-way mouth (standard the 8051 output mode) mode: 2V above high level, 0.8 V for low level belo
3、w.1. Quasi two-way mouth output configurationQuasi two-way mouth output type can be used as output and input function but dont need to reconfigure mouth lines output state. This is because juncture lines output is 1 drive ability is very weak, allowing external devices will its down. When pins for l
4、ow, it output driving ability, can absorb the considerable current. Quasi two-way mouth have 3 pull_up transistor adapted to different needs.In the three and one transistor, pull up transistor called weak on pull , for 1 and paternal line registers itself pins for 1 open. This pull_up provides basic
5、 drive current make prospective two-way mouth for 1 output. If a pin for 1 and output by external devices to drop down to low, pull up close and weak very weak pull_up maintain open position, in order to put this pin for low, strong to pull the external devices must have enough power to make pin inf
6、used current threshold voltage of a voltage to the following.Article 2 pull_up transistors, called extremely weak on pull, 1 latch paternal line when open. When pin, the very weak suspended the pull_up source generates very weak and current will pin and high level.Article 3 pull_up transistor called
7、 powerful pull. Juncture line latches from 0 to 1, the jumping to accelerate must pull up by logic 0 to two-way mouth logic 1 conversion. When this happened, powerful pull open about 2 machine cycle to make pins can quickly pull to the earth high level.Quasi two-way mouth output shown below.STC12C52
8、0 series microcontroller 3V device, if the user is in pins plus 5V voltage, there will be a current flow from pins, this has caused additional VDD power consumption. Accordingly, the proposal is not in quasi two-way mouth mode 3V microcontroller pins to exert 5V voltage, such as the use of words, wi
9、ll add current limiting resistor, or using diode do input isolation, or use triode do output segregation.Quasi two-way mouth with a schmidt trigger input and a interference suppression circuit.2. The push-pull output configurationThe drop-down push-pull output configuration open-drain output and the
10、 structure and the prospective two-way mouth down same structure, but when latches is 1 provides continuous strong pull up. The push-pull model need more commonly used for driving current situation.The push-pull pins configuration are shown below.3. Only for input (high resistance) configurationInpu
11、t port configuration are shown below.Input port with a schmidt trigger input and a interference suppression circuit.4. Open-drain output configurationJuncture line latches is 0, the open-drain output close all pull_up transistors. When, as a logical output, this configuration mode must have external
12、ly pull, usually by resistance receiving V D D outside. This style of drop-down and quasi two-way mouth the same. The jammer line configuration are shown below.Open-drain port with a schmidt trigger input and a interference suppression circuit.A typical transistor control circuitIf use weak pull_up
13、control, suggestion plus pull-up resistors R1 (3.3 K 10K), if not add pull-up resistors R 1 (3.3 K 10K), suggest R2 value in the 15K above, or use a strong push-pull output.STC12C5204AD series microcontroller programmable counter array (PCA)PCA contains a special 16 timer, has four 16 bits of captur
14、e/comparison of module and connected. Each module programmable workIn four mode: increase/decrease along the capture, software timer, high-speed output or could be modulated pulse output. Modules connected to P3.7 (0 CEX0 / PCA0 / PWM0), module 1 connected to P3.5 (CEX1 / PCA1 / PWM1), modules conne
15、cted to P2.0 (2 CEX2 / PCA2 / PWM2), modules connected to P2.4 (3 CEX3 / PCA3 / PWM3). Register the content of CH and CL is free of 16 PCA increasing count the value of the timer. PCA timer is four modules, the public time benchmark by programming work .Programmable Counter ArrayPCA Timer/CounterCMO
16、D SFR there are 2 bytes and PCA related. They were: CIDL, idle mode allows stop PCA; ECF, buy a, enabling PCA interrupt, when PCA timer spillover will PCA counting overflow marks CCON SFR (CF) buy bits.CCON SFR contains PCA operating control bits (CR) and PCA timer mark (CF) and symbol of each modul
17、e CCF3 / CCF2 (CCF0). CCF1 / / Through the software for a CR bits (CCON. 6) to run PCA. CR bit is reset when PCA closed. When PCA counter overflow, CF patients (CCON. 7) buy a, if CMOD register, it produces ECF position a disruption. CF bits can only through software cleared. CCON register a 0 3 is
18、PCA modules logo (a 0 0, a corresponding module 1 corresponding module 1, bits 2 corresponding module 2, a 3 corresponding module 3), when there is a match or by hardware buy a comparisons. These signals are the only through software cleared.PCA capture of patterningIf CCON SFR bits of the throne of
19、 CCFn and CCAPMn SFR ECCFn bit is set position, will produce the interruption.A software timer modeThrough the CCAPMn registers for a ECOM and MAT bits, can make the PCA module used for software timer (below). PCA timer values and module of the register compared to capture, when both values equal, i
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10 积分
下载 | 加入VIP,下载更划算! |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 电子类 自动化 单片机 毕业设计论文 外文翻译 中英文对照:芯片STC12C5204AD的IO口配置 子类 毕业设计 论文 外文 翻译 中英文 对照 芯片 STC12C5204AD IO 配置
链接地址:http://www.wodocx.com/p-844314.html