PIC16HV540-20/SO Microchip Technology, PIC16HV540-20/SO Datasheet - Page 25

IC MCU OTP 512X12 18SOIC

PIC16HV540-20/SO

Manufacturer Part Number
PIC16HV540-20/SO
Description
IC MCU OTP 512X12 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16HV540-20/SO

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
768B (512 x 12)
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3.5 V ~ 15 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-SOIC (7.5mm Width)
Processor Series
PIC16H
Core
PIC
Data Bus Width
8 bit
Data Ram Size
25 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
12
Number Of Timers
8
Operating Supply Voltage
3.5 V to 15 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
0 C
For Use With
309-1075 - ADAPTER 18-SOIC TO 18-SOICAC164002 - MODULE SKT PROMATEII 18/28SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
6.0
The Timer0 module has the following features:
• 8-bit timer/counter register, TMR0
• 8-bit software programmable prescaler
• Internal or external clock select
Figure 6-1 is a simplified block diagram of the Timer0
module, while Figure 6-2 shows the electrical structure
of the Timer0 input.
Timer mode is selected by clearing the T0CS bit
(OPTION<5>). In timer mode, the Timer0 module will
increment every instruction cycle (without prescaler). If
TMR0 register is written, the increment is inhibited for
the following two cycles (Figure 6-3 and Figure 6-4).
The user can work around this by writing an adjusted
value to the TMR0 register.
FIGURE 6-1:
- Readable and writable
- Edge select for external clock
2000 Microchip Technology Inc.
T0CKI
pin
Note 1:
TIMER0 MODULE AND TMR0
REGISTER
T0SE
2:
3:
F
(1)
Bits T0CS, T0SE, PSA, PS2, PS1 and PS0 are located in the OPTION register.
The prescaler is shared with the Watchdog Timer (Figure 6-6).
Bit 0 of TMR0 will be output on OSC2/CLKOUT pin when RC oscillator mode is selected.
TIMER0 BLOCK DIAGRAM
OSC
/4
T0CS
0
1
(1)
PS2, PS1, PS0
Programmable
Prescaler
3
Preliminary
(2)
(1)
PSA
1
0
(1)
Counter mode is selected by setting the T0CS bit
(OPTION<5>). In this mode, Timer0 will increment
either on every rising or falling edge of pin T0CKI. The
incrementing edge is determined by the source edge
select bit T0SE (OPTION<4>). Clearing the T0SE bit
selects the rising edge. Restrictions on the external
clock input are discussed in detail in Section 6.1.
The prescaler may be used by either the Timer0 mod-
ule or the Watchdog Timer, but not both. The prescaler
assignment is controlled in software by the control bit
PSA (OPTION<3>). Clearing the PSA bit will assign the
prescaler to Timer0. The prescaler is not readable or
writable. When the prescaler is assigned to the Timer0
module, prescale values of 1:2, 1:4,..., 1:256 are select-
able. Section 6.2 details the operation of the prescaler.
A summary of registers associated with the Timer0
module is found in Table 6-1.
PSout
Internal Oscillator
Drive Circuit
(2 cycle delay)
Sync with
Internal
Clocks
Oscillator Mode
PSout
Select
Sync
PIC16HV540
M
U
X
(3)
0
TMR0 reg
Data bus
“SLEEP”
DS40197B-page 25
8
OSC2/
CLKOUT
7

Related parts for PIC16HV540-20/SO