| Electronic Components Datasheet Search |
|
MCP19124 Datasheet(PDF) 123 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP19124 Datasheet(HTML) 123 Page - Microchip Technology |
|
123 / 236 page ![]() 2016 Microchip Technology Inc. DS20005619A-page 123 MCP19124/5 EXAMPLE 19-1: A/D CONVERSION ;This code block configures the ADC ;for polling, Frc clock and AN0 input. ; ;Conversion start & polling for completion ; are included. ; BANKSELADCON1; MOVLWB’01110000’;Frc clock MOVWFADCON1; BANKSELTRISGPA; BSF TRISGPA,0;Set GPA0 to input BANKSELANSELA; BSF ANSELA,0;Set GPA0 to analog BANKSELADCON0; MOVLWB’01100001’;Select channel AN0 MOVWFADCON0;Turn ADC On CALLSampleTime;Acquisiton delay BSF ADCON0,1;Start conversion BTFSCADCON0,1;Is conversion done? GOTO$-1 ;No, test again BANKSELADRESH; MOVFADRESH,W;Read upper 2 bits MOVWFRESULTHI;store in GPR space BANKSELADRESL; MOVFADRESL,W;Read lower 8 bits MOVWFRESULTLO;Store in GPR space |
|
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 |