Electronic Components Datasheet Search |
|
PIC12F683 Datasheet(PDF) 36 Page - Microchip Technology |
|
|
PIC12F683 Datasheet(HTML) 36 Page - Microchip Technology |
36 / 148 page PIC12F683 DS41211B-page 34 Preliminary 2004 Microchip Technology Inc. EXAMPLE 4-2: ULTRA LOW-POWER WAKE-UP INITIALIZATION 4.2.4 PIN DESCRIPTIONS AND DIAGRAMS Each GPIO 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 comparator or the A/D, refer to the appropriate section in this data sheet. 4.2.4.1 GP0/AN0/CIN+/ICSPDAT/ULPWU Figure 4-1 shows the diagram for this pin. The GP0 pin is configurable to function as one of the following: • a general purpose I/O • an analog input for the A/D • an analog input to the comparator • an analog input to the Ultra Low-Power Wake-up • In-Circuit Serial Programming data FIGURE 4-1: BLOCK DIAGRAM OF GP0 BCF STATUS,RP0 ;Bank 0 BSF GPIO,0 ;Set GP0 data latch MOVLW H’7’ ;Turn off MOVWF CMCON0 ; comparator BSF STATUS,RP0 ;Bank 1 BCF ANSEL,0 ;GP0 to digital I/O BCF TRISIO,0 ;Output high to CALL CapDelay ; charge capacitor BSF PCON,ULPWUE ;Enable ULP Wake-up BSF IOC,0 ;Select GP0 IOC BSF TRISIO,0 ;GP0 to input MOVLW B’10001000’ ;Enable interrupt MOVWF INTCON ; and clear flag SLEEP ;Wait for IOC I/O pin VDD VSS D Q CK Q D Q CK Q D Q CK Q D Q CK Q VDD D EN Q D EN Q Weak RD GPIO RD WR WR RD WR IOC RD IOC Interrupt-on- To Comparator Analog Input Mode(1) GPPU Analog Input Mode(1) Change Q3 WR RD 01 IULP WPU Data Bus WPU GPIO TRISIO TRISIO GPIO Note 1: Comparator mode and ANSEL determines Analog Input mode. VT ULPWUE - + VSS To A/D Converter |
Similar Part No. - PIC12F683 |
|
Similar Description - PIC12F683 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |