PIC16C715/JW Microchip Technology, PIC16C715/JW Datasheet - Page 35

IC MCU EPROM 2KX14 A/D 18CDIP

PIC16C715/JW

Manufacturer Part Number
PIC16C715/JW
Description
IC MCU EPROM 2KX14 A/D 18CDIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C715/JW

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
EPROM, UV
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-CDIP (0.300", 7.62mm) Window
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Connectivity
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C715/JW
Manufacturer:
AD
Quantity:
73
6.3.1
The prescaler assignment is fully under software con-
trol, i.e., it can be changed “on the fly” during program
execution.
EXAMPLE 6-1:
To change prescaler from the WDT to the Timer0
module use the sequence shown in Example 6-2.
EXAMPLE 6-2:
TABLE 6-1:
Address
01h
0Bh,8Bh,
81h
85h
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by Timer0.
1997 Microchip Technology Inc.
BCF
CLRF
BSF
CLRWDT
MOVLW
MOVWF
BCF
CLRWDT
BSF
MOVLW
MOVWF
BCF
SWITCHING PRESCALER ASSIGNMENT
STATUS, RP0
TMR0
STATUS, RP0
b'xxxx1xxx'
OPTION_REG
STATUS, RP0
Name
TMR0
INTCON
OPTION RBPU INTEDG
TRISA
STATUS, RP0 ;Bank 1
b'xxxx0xxx' ;Select TMR0, new prescale value and
OPTION_REG
STATUS, RP0 ;Bank 0
REGISTERS ASSOCIATED WITH TIMER0
CHANGING PRESCALER (TIMER0 WDT)
CHANGING PRESCALER (WDT TIMER0)
Timer0 module’s register
Bit 7
GIE
;Bank 0
;Clear TMR0 & Prescaler
;Bank 1
;Clears WDT
;Selects new prescale value
;and assigns the prescaler to the WDT
;Bank 0
;Clear WDT and prescaler
;clock source
ADIE
Bit 6
T0CS
Bit 5
T0IE
PORTA Data Direction Register
T0SE
INTE
Bit 4
RBIE
Bit 3
PSA
Note:
Bit 2
T0IF
PS2
To avoid an unintended device RESET, the
following instruction sequence (shown in
Example 6-1) must be executed when
changing the prescaler assignment from
Timer0 to the WDT. This sequence must be
followed even if the WDT is disabled.
INTF
Bit 1
PS1
Bit 0
RBIF
PS0
PIC16C71X
xxxx xxxx
0000 000x
1111 1111
---1 1111
Value on:
POR,
BOR
DS30272A-page 35
other resets
Value on all
uuuu uuuu
0000 000u
1111 1111
---1 1111

Related parts for PIC16C715/JW