PIC12F510-I/SN Microchip Technology, PIC12F510-I/SN Datasheet - Page 44

no-image

PIC12F510-I/SN

Manufacturer Part Number
PIC12F510-I/SN
Description
IC PIC MCU FLASH 1KX14 8SOIC
Manufacturer
Microchip Technology
Series
PIC® 12Fr

Specifications of PIC12F510-I/SN

Program Memory Type
FLASH
Program Memory Size
1.5KB (1K x 12)
Package / Case
8-SOIC (3.9mm Width)
Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Peripherals
POR, WDT
Number Of I /o
5
Ram Size
38 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC12F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
38 B
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
5
Number Of Timers
1
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, DV164101, DV164120, DM163029
Minimum Operating Temperature
- 40 C
On-chip Adc
8 bit, 3 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC162070 - HEADER INTRFC MPLAB ICD2 8/14P
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F510-I/SN
Manufacturer:
MICROCHIP
Quantity:
7 600
Part Number:
PIC12F510-I/SN
Manufacturer:
MICROCHIP
Quantity:
500
Part Number:
PIC12F510-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F510-I/SN
0
Company:
Part Number:
PIC12F510-I/SN
Quantity:
10 000
Company:
Part Number:
PIC12F510-I/SN
Quantity:
15 000
PIC12F510/16F506
6.2.1
The prescaler assignment is fully under software
control (i.e., it can be changed “on-the-fly” during pro-
gram execution). To avoid an unintended device Reset,
the following instruction sequence (Example 6-1) must
be executed when changing the prescaler assignment
from Timer0 to the WDT.
EXAMPLE 6-1:
FIGURE 6-5:
DS41268D-page 42
CLRWDT
CLRF
MOVLW
OPTION
CLRWDT
MOVLW
OPTION
Comparator
Output
Note 1: T0CS, T0SE, PSA, PS<2:0> are bits in the OPTION register.
T0CKI
‘00xx1xxx’b
TMR0
‘00xx1111’b ;These 3 lines (5, 6, 7)
Pin
SWITCHING PRESCALER
ASSIGNMENT
2: T0CKI is shared with pin GP2 on the PIC12F510 and shared with RC5 on the PIC16F506.
3: Bit C1T0CS is located in the CM1CON0 register.
(2)
WDT Enable bit
C1T0CS
Watchdog
CHANGING PRESCALER
(TIMER0 → WDT)
BLOCK DIAGRAM OF THE TIMER0/WDT PRESCALER
Timer
T
;Clear WDT
;Clear TMR0 & Prescaler
;are required only if
;desired
;PS<2:0> are 000 or 001
;Set Postscaler to
;desired WDT rate
1
0
CY
(= F
T0SE
(3)
OSC
(1)
/4)
0
1
PSA
M
U
X
(1)
0
1
T0CS
M
U
X
(1)
8-bit Prescaler
0
8-to-1 MUX
Time-Out
To change prescaler from the WDT to the Timer0
module, use the sequence shown in Example 6-2. This
sequence must be used even if the WDT is disabled. A
CLRWDT instruction should be executed before
switching the prescaler.
EXAMPLE 6-2:
8
CLRWDT
MOVLW
OPTION
MUX
WDT
1
0
1
PSA
‘xxxx0xxx’
M
U
X
(1)
PSA
PS<2:0>
(1)
CHANGING PRESCALER
(WDT→TIMER0)
Cycles
;Clear WDT and
;prescaler
;Select TMR0, new
;prescale value and
;clock source
© 2007 Microchip Technology Inc.
Sync
2
(1)
TMR0 Reg
Data Bus
8

Related parts for PIC12F510-I/SN