PIC18F86J72-I/PT Microchip Technology, PIC18F86J72-I/PT Datasheet - Page 289

IC PIC MCU 8BIT 14KB FLSH 80TQFP

PIC18F86J72-I/PT

Manufacturer Part Number
PIC18F86J72-I/PT
Description
IC PIC MCU 8BIT 14KB FLSH 80TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheet

Specifications of PIC18F86J72-I/PT

Program Memory Type
FLASH
Program Memory Size
64KB (32K x 16)
Package / Case
80-TQFP
Core Processor
PIC
Core Size
8-Bit
Speed
48MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, LVD, POR, PWM, WDT
Number Of I /o
51
Ram Size
3.8K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 3.6 V
Data Converters
A/D 12x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Data Bus Width
8 bit
Data Ram Size
4 KB
Interface Type
SPI, USART, SPI, I2C
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
51
Number Of Timers
4
Operating Supply Voltage
2 V to 3.6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
On-chip Adc
14
Controller Family/series
PIC18F
No. Of I/o's
51
Ram Memory Size
3923Byte
Cpu Speed
12MIPS
No. Of Timers
4
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F86J72-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Example 22-1 provides a general outline for imple-
menting a driver routine for the AFE. Example 22-2
through Example 22-5 show the details for each step.
The example shown here assumes the following
loopback connections:
• RC4 (SDI) to SDOA
• RC5 (SDO) to SDIA
• RC3 (SCK) to SCKA
• RD0 to ARESET
• RD7 to CSA
• RC2 (CCP1) to CLKIA
• RB0 (INT0) to DR
EXAMPLE 22-1:
 2010 Microchip Technology Inc.
///////////////////////////////////////////////////////////////////////////////////////////////
// Outline of a typical driver routine for the dual-channel AFE.
///////////////////////////////////////////////////////////////////////////////////////////////
#include "p18F87J72.h"
void main(void)
{
///////////////////////////////////////////////////////////////////////////////////
// STEP 1:Initialize MSSP (Example 22-2)
////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
// STEP 2: Issue Reset to AFE (Example 22-2)
/////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
// STEPS 3: Disable all Chip Selects on all SPI devices (Example 22-2)
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
// STEP 4: Write to AFE registers; read back (optionally) to confirm settings (Example 22-4)
////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// STEP 5: Configure CCP1 to serve as AFE clock source (Example 22-3)
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
///STEP 6: Configure Interrupt INT0 for use with DR pin (Example 22-3)
/////////////////////////////////////////////////////////////////////////////////////////////
while(1);
}
/////////////////////////////////////////////////////////////////////////////////////////////
//STEP 7: ISR for reading AFE data (Example 22-5)
////////////////////////////////////////////////////////////////////////////////////////////
OVERALL STRUCTURE FOR USING THE AFE
Preliminary
PIC18F87J72 FAMILY
Aside from the SPI, which is determined by the
microcontroller’s single MSSP module, the other
connections may change based on the particular appli-
cation’s requirements. For example, the AFE clock on
CLKIA is generated from the PWM of CCP1 in this
demonstration; other clock sources may be available.
Users should modify the individual code segments
accordingly.
DS39979A-page 289

Related parts for PIC18F86J72-I/PT