| Electronic Components Datasheet Search |
|
PIC16C641-04/TQ Datasheet(PDF) 34 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16C641-04/TQ Datasheet(HTML) 34 Page - Microchip Technology |
|
34 / 136 page ![]() PIC16C64X & PIC16C66X DS30559A-page 34 Preliminary © 1996 Microchip Technology Inc. 5.3 PORTC and TRISC Registers PORTC is an 8-bit bi-directional port. Each pin is indi- vidually configurable as an input or output through the TRISC register. PORTC pins have Schmitt Trigger input buffers. EXAMPLE 5-3: INITIALIZING PORTC CLRF PORTC ; Initialize PORTC by ; clearing output ; data latches BSF STATUS, RP0 ; Select Bank 1 MOVLW 0xCF ; Value used to ; initialize data ; direction MOVWF TRISC ; Set RC<3:0> as inputs ; RC<5:4> as outputs ; RC<7:6> as inputs FIGURE 5-7: PORTC BLOCK DIAGRAM (IN I/O PORT MODE) Data bus WR PORT WR TRIS RD PORT Data Latch TRIS Latch RD TRIS Schmitt Trigger input buffer I/O pin(1) Note 1: I/O pins have protection diodes to VDD and VSS. Q D CK Q D CK EN QD EN TABLE 5-5: PORTC FUNCTIONS TABLE 5-6: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC Name Bit# Buffer Type Function RC0 bit0 ST Input/output RC1 bit1 ST Input/output RC2 bit2 ST Input/output RC3 bit3 ST Input/output RC4 bit4 ST Input/output RC5 bit5 ST Input/output RC6 bit6 ST Input/output RC7 bit7 ST Input/output Legend: ST = Schmitt Trigger input Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Value on: POR, BOR Value on all other resets 07h PORTC RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 xxxx xxxx uuuu uuuu 87h TRISC TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 1111 1111 1111 1111 Legend: x = unknown, u = unchanged. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |