PIC16CE625-04/SS Microchip Technology, PIC16CE625-04/SS Datasheet - Page 39

IC MCU OTP 2KX14 EE COMP 20SSOP

PIC16CE625-04/SS

Manufacturer Part Number
PIC16CE625-04/SS
Description
IC MCU OTP 2KX14 EE COMP 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet

Specifications of PIC16CE625-04/SS

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Eeprom Size
128 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
20-SSOP
For Use With
309-1016 - ADAPTER 20-SSOP TO 18-DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Connectivity
-
7.3.1
The prescaler assignment is fully under software
control (i.e., it can be changed “on-the-fly” during
program execution). To avoid an unintended device
RESET,
(Example 7-1) must be executed when changing the
prescaler assignment from Timer0 to WDT.
EXAMPLE 7-1:
10.BCF
TABLE 7-1:
Address
01h
0Bh/8Bh
81h
85h
Legend: — = Unimplemented locations, read as ‘0’, x = unknown, u = unchanged.
1.BCF
2.CLRWDT
3.CLRF
4.BSF
5.MOVLW
6.MOVWF
7.CLRWDT
8.MOVLW
9.MOVWF
1999 Microchip Technology Inc.
Note:
SWITCHING PRESCALER ASSIGNMENT
the
Name
TMR0
INTCON
OPTION
TRISA
STATUS, RP0 ;Skip if already in
TMR0
STATUS, RP0 ;Bank 1
'00101111’b ;These 3 lines (5, 6, 7)
OPTION
'00101xxx’b ;Set Postscaler to
OPTION
STATUS, RP0
Shaded bits are not used by TMR0 module.
REGISTERS ASSOCIATED WITH TIMER0
following
CHANGING PRESCALER
(TIMER0 WDT)
Timer0 module register
RBPU
Bit 7
GIE
;Clear WDT
;Clear TMR0 & Prescaler
; desired PS<2:0> are
; 000 or 001
; Bank 0
; are required only if
; desired WDT rate
;Return to Bank 0
INTEDG
instruction
Bit 6
PEIE
T0CS
Bit 5
T0IE
sequence
TRISA4
T0SE
INTE
Bit 4
TRISA3
RBIE
Bit 3
PSA
To change prescaler from the WDT to the TMR0
module, use the sequence shown in Example 7-2. This
precaution must be taken even if the WDT is disabled.
EXAMPLE 7-2:
TRISA2
CLRWDT
BSF
MOVLW
MOVWF
BCF
Bit 2
T0IF
PS2
TRISA1
INTF
Bit 1
PS1
STATUS, RP0
b'xxxx0xxx' ;Select TMR0, new
OPTION_REG
STATUS, RP0
CHANGING PRESCALER
(WDT TIMER0)
TRISA0 ---1 1111 ---1 1111
PIC16CE62X
RBIF
Bit 0
PS0
;Clear WDT and
;prescaler
;prescale value and
;clock source
xxxx xxxx uuuu uuuu
0000 000x 0000 000u
1111 1111 1111 1111
Value on:
POR
DS40182C-page 39
All Other
Value on
Resets

Related parts for PIC16CE625-04/SS