| 数据搜索系统,热门电子元器件搜索 |
|
ST6200C 数据表(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST6200C 数据表(HTML) 40 Page - STMicroelectronics |
|
40 / 100 page ![]() ST6200C/ST6201C/ST6203C 40/100 I/O PORTS (Cont’d) 7.5 REGISTER DESCRIPTION DATA REGISTER (DR) Port x Data Register DRx with x = A or B. Address DRA: 0C0h - Read /Write Address DRB: 0C1h - Read /Write Reset Value: 0000 0000 (00h) Bit 7:0 = D[7:0] Data register bits. Reading the DR register returns either the DR reg- ister latch content (pin configured as output) or the digital value applied to the I/O pin (pin configured as input). Caution: In input mode, modifying this register will modify the I/O port configuration (see Table 8). Do not use the Single bit instructions on I/O port data registers. See (Section 7.2.5). DATA DIRECTION REGISTER (DDR) Port x Data Direction Register DDRx with x = A or B. Address DDRA: 0C4h - Read /Write Address DDRB: 0C5h - Read /Write Reset Value: 0000 0000 (00h) Bit 7:0 = DD[7:0] Data direction register bits. The DDR register gives the input/output direction configuration of the pins. Each bit is set and cleared by software. 0: Input mode 1: Output mode OPTION REGISTER (OR) Port x Option Register ORx with x = A or B. Address ORA: 0CCh - Read/Write Address ORB: 0CDh - Read/Write Reset Value: 0000 0000 (00h) Bit 7:0 = O[7:0] Option register bits. The OR register allows to distinguish in output mode if the push-pull or open drain configuration is selected. Output mode: 0: Open drain output(with P-Buffer deactivated) 1: Push-pull Output Input mode: See Table 8. Each bit is set and cleared by software. Caution: Modifying this register, will also modify the I/O port configuration in input mode. (see Ta- ble 8). Table 10. I/O Port Register Map and Reset Values 70 D7 D6 D5 D4 D3 D2 D1 D0 70 DD7 DD6 DD5 DD4 DD3 DD2 DD1 DD0 70 O7 O6 O5 O4 O3 O2 O1 O0 Address (Hex.) Register Label 7654 3210 Reset Value of all I/O port registers 00 0 0 0000 0C0h DRA MSB LSB 0C1h DRB 0C4h DDRA MSB LSB 0C5h DDRB 0CCh ORA MSB LSB 0CDh ORB 1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |