PIC16F1936-I/ML Microchip Technology, PIC16F1936-I/ML Datasheet - Page 21

IC PIC MCU FLASH 512KX14 28-QFN

PIC16F1936-I/ML

Manufacturer Part Number
PIC16F1936-I/ML
Description
IC PIC MCU FLASH 512KX14 28-QFN
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr

Specifications of PIC16F1936-I/ML

Program Memory Type
FLASH
Program Memory Size
14KB (8K x 14)
Package / Case
28-VQFN Exposed Pad, 28-HVQFN, 28-SQFN, 28-DHVQFN
Core Processor
PIC
Core Size
8-Bit
Speed
32MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
25
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
512 B
Interface Type
EUSART/MI2C/SPI
Maximum Clock Frequency
32 MHz
Number Of Programmable I/os
25
Number Of Timers
5
Operating Supply Voltage
2.3 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005
Minimum Operating Temperature
- 40 C
On-chip Adc
11-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
#define UPDATE_COUNT
#define FILTER_WEIGHT
CBLOCK
#define _AD_DataReady BitVars,0
;++++++++++++
;
; ADD_FSR_FILTER - Adds 32 bit value pointed to by FSR to NewFilter
; FSR must point to LEAST significant byte, FSR-3 is most significant
;
ADD_FSR_FILTER MACRO
;++++++++++++
;
; DIV_FILTER_BY2 - Divide NewFilter by 2
;
;
DIV_FILTER_BY2 MACRO
© 2009 Microchip Technology Inc.
AD_NewValue:3
NewSample:4
OldFilter:4
NewFilter:4
FilterWeight:1
FilterCounter:1
UpdateCounter:1
AD_DataVal:3
Bitvars:1
ENDC
; 14-17 instructions
; add value pointed to by FSR to filter
; 5 instructions
; right shift filter value by 1 ( i.e. divide by 2 )
MOVF
ADDWF NewFilter+3,F
DECF
MOVF
SKPNC
INCFSZ INDF,W
ADDWF NewFilter+2,F
DECF
MOVF
SKPNC
INCFSZ INDF,W
ADDWF NewFilter+1,F
DECF
MOVF
SKPNC
INCFSZ INDF,W
ADDWF NewFilter,F
ENDM
0x020
FSR,F
INDF,W
FSR,F
INDF,W
FSR,F
INDF,W
INDF,W
0x20
0x80
; copy of AD_Newvalue, used locally
; previous value of filtering ( NewFilter from last run )
; the new filtered value
; how much weight that should be posed on old value
; to increase step response
; how often we want an global update
; the global update location
; get lowest byte
; add to filter sum lowest byte
; get next byte
;
; increase source
; and add to dest.
; get next byte
; get msb
if overflow
; 32 samples between global updates
; filterweight, i.e. 'A' in example above
DS41375A-page 21

Related parts for PIC16F1936-I/ML