PIC16C711-04/P Microchip Technology Inc., PIC16C711-04/P Datasheet - Page 35

no-image

PIC16C711-04/P

Manufacturer Part Number
PIC16C711-04/P
Description
18 PIN, 1.75 KB OTP, 68 RAM, 13 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16C711-04/P

A/d Inputs
4-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
13
Memory Type
OTP
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
1.75K Bytes
Ram Size
68 Bytes
Speed
20 MHz
Timers
1-8-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C711-04/P
Manufacturer:
TI
Quantity:
9
Part Number:
PIC16C711-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
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 PIC16C711-04/P