PIC16F1937-I/ML Microchip Technology, PIC16F1937-I/ML Datasheet - Page 22

IC PIC MCU FLASH 512KX14 44-QFN

PIC16F1937-I/ML

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

Specifications of PIC16F1937-I/ML

Core Size
8-Bit
Program Memory Size
14KB (8K x 14)
Core Processor
PIC
Speed
32MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
36
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-QFN
Controller Family/series
PIC16F
No. Of I/o's
36
Eeprom Memory Size
256Byte
Ram Memory Size
512Byte
Cpu Speed
32MHz
No. Of Timers
5
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
;++++++++++++
;
; MUL_NEWOLD_BY2 - Multiply OldValue and NewSample with 2
;
;
MUL_NEWOLD_BY2 MACRO
ORG 0x0000
; ** interupt routine for data collection
ORG 0x0004
INT
; cold start vector
INIT
DS41375A-page 22
BCF STATUS,C
; divide by 2
RRF NewFilter,F
RRF NewFilter+1,F
RRF NewFilter+2,F
RRF NewFilter+3,F
ENDM
; 10 instructions
; right shift filter value by 1 ( i.e. divide by 2 )
BCF STATUS,C
; multiply old value with 2
RLF OldFilter+3,F
RLF OldFilter+2,F
RLF OldFilter+1,F
RLF OldFilter,F
; multiply new value with 2
BCF STATUS,C
RLF NewSample+3,F
RLF NewSample+2,F
RLF NewSample+1,F
RLF NewSample,F
ENDM
GOTO
; get data from AD
CALL
; for each sample, copy to AD_NewValue
; and call filter once
CALL
RETFIE
; only 'dummy' code here
BCF _AD_DataReady
; Note, this will inilialize the filter to gradually use
; no filtering to 'full' filtering ( increase once for each sample )
;
MOVLW FILTER_WEIGHT
MOVWF FilterCounter
INIT
GET_AD_DATA
TWIST24
; clear carry
; clear carry
; clear carry
; not included !
; clear data ready flag
© 2009 Microchip Technology Inc.

Related parts for PIC16F1937-I/ML