PIC16C71-04/SO Microchip Technology, PIC16C71-04/SO Datasheet - Page 35

IC MCU OTP 1KX14 A/D 18SOIC

PIC16C71-04/SO

Manufacturer Part Number
PIC16C71-04/SO
Description
IC MCU OTP 1KX14 A/D 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C71-04/SO

Core Size
8-Bit
Program Memory Size
1.75KB (1K x 14)
Core Processor
PIC
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Type
OTP
Ram Size
36 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Data Converters
A/D 4x8b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
13
Ram Memory Size
36Byte
Cpu Speed
4MHz
No. Of Timers
1
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MIL309-1011 - ADAPTER 18-SOIC TO 18-DIP309-1010 - ADAPTER 18-SOIC TO 18-DIPAC164010 - MODULE SKT PROMATEII DIP/SOIC
Eeprom Size
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
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 PIC16C71-04/SO