| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC16C925-S/CL bảng dữ liệu(PDF) 36 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16C925-S/CL bảng dữ liệu(HTML) 36 Page - Microchip Technology |
|
36 / 182 page ![]() PIC16C925/926 DS39544A-page 34 Preliminary 2001 Microchip Technology Inc. 4.4 PORTD and TRISD Registers PORTD is an 8-bit port with Schmitt Trigger input buff- ers. The first five pins are configurable as general pur- pose I/O pins or LCD segment drivers. Pins RD5, RD6 and RD7 can be digital inputs, or LCD segment, or common drivers. TRISD controls the direction of pins RD0 through RD4 when PORTD is configured as a digital port. EXAMPLE 4-4: INITIALIZING PORTD FIGURE 4-6: PORTD <4:0> BLOCK DIAGRAM FIGURE 4-7: PORTD<7:5> BLOCK DIAGRAM Note 1: On a Power-on Reset, these pins are configured as LCD segment drivers. 2: To configure the pins as a digital port, the corresponding bits in the LCDSE register must be cleared. Any bit set in the LCDSE register overrides any bit settings in the corresponding TRIS register. BCF STATUS,RP0 ;Select Bank2 BSF STATUS,RP1 ; BCF LCDSE, SE29 ;Make RD<7:5> digital BCF LCDSE, SE0 ;Make RD<4:0> digital BSF STATUS,RP0 ;Select Bank1 BCF STATUS,RP1 ; MOVLW 0xE0 ;Make RD<4:0> outputs MOVWF TRISD ;Make RD<7:5> inputs Data WR WR RD Data Latch TRIS Latch Schmitt Trigger Input Buffer Q D CK Q D CK EN Q D EN I/O pin RD LCD LCD LCD Segment Segment Data Output Enable Port TRIS Port TRIS SE<n> Bus RD Port Schmitt Trigger Input Buffer EN QD EN Digital Input/ LCDSE<n> LCD LCD Segment LCD Output pin LCD LCD Common Data Bus RD TRIS VDD Segment Data Output Enable Common Data Output Enable |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |