| Electronic Components Datasheet Search |
|
PIC16F707-E/ML Datasheet(PDF) 60 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F707-E/ML Datasheet(HTML) 60 Page - Microchip Technology |
|
60 / 284 page ![]() PIC16F707/PIC16LF707 DS41418A-page 60 Preliminary 2010 Microchip Technology Inc. 6.4.1 ANSELC REGISTER The ANSELC register (Register 6-12) is used to configure the Input mode of an I/O pin to analog. Setting the appropriate ANSELC bit high will cause all digital reads on the pin to be read as ‘0’ and allow analog functions on the pin to operate correctly. The state of the ANSELC bits has no affect on digital output functions. A pin with TRIS clear and ANSELC set will still operate as a digital output, but the Input mode will be analog. This can cause unexpected behavior when executing read-modify-write instruc- tions on the affected port. 6.4.2 PIN DESCRIPTIONS Each PORTC pin is multiplexed with other functions. The pins and their combined functions are briefly described here. For specific information about individual functions such as the SSP, I2C or interrupts, refer to the appropriate section in this data sheet. 6.4.2.1 RC0/T1OSO/T1CKI/CPSB2 These pins are configurable to function as one of the following: • General purpose I/O • Timer1 oscillator output • Timer1 clock input • Capacitive sensing input 6.4.2.2 RC1/T1OSi/CCP2/CPSB3 These pins are configurable to function as one of the following: • General purpose I/O • Timer1 oscillator input • Capture 2 input, Compare 2 output, and PWM2 output • Capacitive sensing input Note: The ANSELC register must be initialized to configure an analog channel as a digital input. Pins configured as analog inputs will read ‘0’. REGISTER 6-12: ANSELC: PORTC ANALOG SELECT REGISTER R/W-1 R/W-1 R/W-1 U-0 U-0 R/W-1 R/W-1 R/W-1 ANSC7 ANSC6 ANSC5 — — ANSC2 ANSC1 ANSC0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown bit 7-5 ANSC<7:5>: Analog Select between Analog or Digital Function on Pins RC<7:5>, respectively 0 = Digital I/O. Pin is assigned to port or digital special function. 1 = Analog input. Pin is assigned as analog input(1). Digital input buffer disabled. bit 4-3 Unimplemented: Read as ‘0’ bit 2-0 ANSC<2:0>: Analog Select between Analog or Digital Function on Pins RC<2:0>, respectively 0 = Digital I/O. Pin is assigned to port or digital special function. 1 = Analog input. Pin is assigned as analog input(1). Digital input buffer disabled. Note 1: When setting a pin to an analog input, the corresponding TRIS bit must be set to Input mode in order to allow external control of the voltage on the pin. Note: CCP2 pin location may be selected as RB3 or RC1. |
|
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 |