PIC16C782-I/SO Microchip Technology, PIC16C782-I/SO Datasheet - Page 115
PIC16C782-I/SO
Manufacturer Part Number
PIC16C782-I/SO
Description
3.5 KB OTP, 128 RAM, 16 I/O 20 SOIC .300in TUBE
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16C781-ISO.pdf
(186 pages)
2.PIC16C781-ISO.pdf
(8 pages)
3.PIC16C781-ISO.pdf
(8 pages)
Specifications of PIC16C782-I/SO
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x8b; D/A 1x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164028 - MODULE SKT PROMATEII 20SOIC/DIP
Eeprom Size
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16C782I/SO
- Current page: 115 of 186
- Download datasheet (4Mb)
EXAMPLE 13-3:
************************************************
;*
;*
;*
;*
;*
;*
;*
;*
;*
;*
;*
;*
************************************************
;*
;************************************************
;*
;*
;************************************************
;*
;*
;************************************************
*
*
*
;************************************************
;*
;*
;*
2001 Microchip Technology Inc.
This code block will configure the PSMC and
all additional peripherals for a motor speed
control.
Order of configuration
1.
2.
3.
4.
5.
6.
This code block will configure all analog ports.
BANKSEL
MOVLW
MOVWF
MOVLW
MOVWF
MOVLW
MOVWF
This code block will configure the DAC for VR as
DACREF, and no output.
BANKSEL
BSF
BANKSEL
CLRF
MOVLW
MOVWF
MOVLW
MOVWF
This code block will configure the OPA module
as an Op Amp, with a 2 MHz GBWP
MOVLW
MOVWF
This code block will configure Comparator C1
for normal speed and output polarity,
input on AN6, and Reference from the VDAC
MOVLW
MOVWF
This code block will configure the PSMC module
for PWM, Fosc/16, Single input, Single output
Non-inverting out, DC min = 0%, DC max = 94%
MOVLW
MOVWF
MOVLW
MOVWF
BSF
PORTA/B I/O and analog configured
DAC enabled, configured, and preset
Op Amp enabled and configured
Comparator C1 enabled and configured
PSMC configured
PSMC enabled
TRISA
B’01000011’
TRISA
B’00001100’
TRISB
B’11000011’
ANSEL
REFCON
REFCON, VREN
DACON0
DAC
B’10000010’
DACON0
OUTPUT_VALUE
DAC
B’10000001’
OPACON
B’10001110’
CM1CON0
B’11001100’
PSMCCON0
B’00000010’
PSMCCON1
PSMCCON1,SMCON
PERIPHERAL CONFIGURATION EXAMPLE
; Select Bank 1
; Set RA0,1 & 6 as inputs
; Set RB2 & 3 as inputs
; Set AN0,1,6,& 7 as analog
; Enable VR
; Select Bank 2
; Set DAC to safe value
; Enable DAC, no output
;
; Set DAC output level
; Set Op Amp mode and
;
; Set C1; no ext out, norm
;
; Set DCmin 0, DCmax 94, Fosc/16
; Set PWM, Sngl in/out, noninvert
; Enable PSMC
and set DACREF = VR
2 MHz GBWP
speed & pol, VDAC, AN6
Preliminary
PIC16C781/782
DS41171A-page 113
Related parts for PIC16C782-I/SO
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC MCU CMOS 8BIT 2K 20MHZ 20-DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 8BIT 2K 20DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU CMOS 8BIT 2K 20MHZ 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 8BIT 2K 20SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 8BIT 2K 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU EPROM 2KX14 COMP 20CDIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
8-bit Cmos Microcontrollers With A/d, D/a, Opamp, Comparators And Psmc
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
BOARD DEMO FLOW RATE SENSOR MSC1
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 40MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 4MHZ, DIP-28
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 4MHZ, DIP-28
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 4MHZ, DIP-40
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: