Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] I have two questions about the controller PIC16F886 related to ADC

Status
Not open for further replies.

dor8

Junior Member level 1
Joined
Mar 24, 2014
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
114
hi,
1.
I want to know what until which voltage the ADC can measure?
my circuit works between voltages 26V to 52V and I want to know if the ADC knows measure such voltages without making a voltage divider?
* Data sheet does not say obvious - Write high voltage.

2.
Can I please get some examples of C programs that explain to me how I work with the registers of the ADC?
* I work with COMPILER of HIGH-TECH

3.
Does anyone know if there is a component of the multi Sim?
**I have not found a component of controller

Thank you and good day
 


Thank you ..
Can you please bring me examples of programs (I'm basically doing Converter).
I just want to understand how to use the registers of the ADC?
**I'm using a controller pic 16f886 and HIGH-TECH COMPILER
 

This is how you initialize ADC process: (you call it in the main function)
Code:
ADCINIT
    MOVLW 0X0E
    MOVWF ADCON1
    MOVLW b'00000001'
    MOVWF ADCON0
    RETURN
This is the process itself:
Code:
CONAD
    BSF ADCON0,1
    CALL REPEAT
    MOVFF ADRESH,PORTD


REPEAT  BTFSC ADCON0,1
           GOTO REPEAT
           RETURN
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top