The Analog-to-Digital (A/D) Converter module in the
PIC18F66K80 family of devices. It is a 13-bit differential
A/D with 12-bit single-ended compatibility. It has inputs
eight inputs for the 28-pin devices, 11 inputs for the
40/44-pin and 64-pin devices. This module allows conversion
of an analog input signal to a corresponding
12-bit digital number.
The module has these registers:
• A/D Control Register 0 (ADCON0)
• A/D Control Register 1 (ADCON1)
• A/D Control Register 2 (ADCON2)
• A/D Port Configuration Register 1 (ANCON0)
• A/D Port Configuration Register 2 (ANCON1)
• ADRESH (the upper, A/D Results register)
• ADRESL (the lower, A/D Results register)
The ADCON0 register, shown in Register 23-1, controls
the operation of the A/D module. The ADCON1
register, shown in Register 23-2, configures the voltage
reference and special trigger selection. The ADCON2
register, shown in Register 23-3, configures the A/D
clock source and programmed acquisition time and
justification.
ADCON0 = 0;
ADCON1 = 0;
ANCON0 = 0;
ANCON1 = 0;
Si te referis a modulos que pueden configurarse en diferentes pines, este micro ya los tiene, el Can y Usart son intercambiables, entre otros... :D :D :D
Si te referis a modulos que pueden configurarse en diferentes pines, este micro ya los tiene, el Can y Usart son intercambiables, entre otros... :D :D :D
Nop, los registros tienen la misma dirección a otros y hay que seleccionar sobre cual trabajar :D El tema de los RPn, son espectaculares, lo he trabajado bastante en los PIC24H.
Si te referis a modulos que pueden configurarse en diferentes pines, este micro ya los tiene, el Can y Usart son intercambiables, entre otros... :D :D :D
Nop, los registros tienen la misma dirección a otros y hay que seleccionar sobre cual trabajar :D El tema de los RPn, son espectaculares, lo he trabajado bastante en los PIC24H.
Y los registros con la misma direccion supongo deben corresponderse con la seleccion de funciones del hardware, no??
Si no recuerdo mal de una forma configuraba el timer y comparadores, y seleccionando los alternos el ADC. Nada complicado, pero como venis de un 18F4550 y te quedas corto de pines y memoria, pasas a un 18f67j50 y pensas que todo es mas o menos lo mismo, pero no! hay que darle siempre una leida detallada al datasheet :mrgreen: