PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 81

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
FIGURE 12-10: TMR1, TMR2, AND TMR3 OPERATION IN TIMER MODE
TABLE 12-6:
Address
16h, Bank 3
17h, Bank 3
10h, Bank 2
11h, Bank 2
12h, Bank 2
13h, Bank 2
16h, Bank 1
17h, Bank 1
07h, Unbanked INTSTA
06h, Unbanked CPUSTA
14h, Bank 2
15h, Bank 2
16h, Bank 2
17h, Bank 2
10h, Bank 3
11h, Bank 3
12h, Bank 3
13h, Bank 3
14h, Bank 3
15h, Bank 3
Legend: x = unknown, u = unchanged, - = unimplemented read as '0',
Note 1: Other (non power-up) resets include: external reset through MCLR and WDT Timer Reset.
1996 Microchip Technology Inc.
WR_TCON2
AD15:AD0
WR_TMR1
RD_TMR1
Instruction
fetched
TMR1IF
TMR1ON
TMR1
ALE
PR1
shaded cells are not used by TMR1, TMR2 or TMR3.
Name
TCON1
TCON2
TMR1
TMR2
TMR3L
TMR3H
PIR
PIE
PR1
PR2
PR3L/CA1L
PR3H/CA1H Timer3 period/capture1 register; high byte
PW1DCL
PW2DCL
PW1DCH
PW2DCH
CA2L
CA2H
Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4 Q1Q2 Q3 Q4
Write TMR1
MOVWF
TMR1
04h
SUMMARY OF TMR1, TMR2, AND TMR3 REGISTERS
Read TMR1
TMR1, W
Timer1 register
Timer2 register
TMR3 register; low byte
TMR3 register; high byte
Timer1 period register
Timer2 period register
Timer3 period/capture1 register; low byte
Capture2 low byte
Capture2 high byte
CA2ED1 CA2ED0
CA2OVF CA1OVF PWM2ON PWM1ON CA1/PR3 TMR3ON TMR2ON TMR1ON 0000 0000
MOVF
RBIF
RBIE
Bit 7
PEIF
DC1
DC1
DC9
DC9
05h
Read TMR1
TMR1
reads 03h
TMR1, W
TMR3IE
TMR3IF
T0CKIF
MOVF
Bit 6
DC0
DC0
DC8
DC8
03h
TMR1
reads 04h
MOVLB
TM2PW2
CA1ED1
TMR2IE
TMR2IF
STKAV
Bit 5
T0IF
DC7
DC7
04h
3
Stop TMR1
TCON2, 0
CA1ED0
TMR1IF
TMR1IE
GLINTD
BSF
Bit 4
INTF
DC6
DC6
05h
CA2IE
CA2IF
Bit 3
PEIE
DC5
DC5
T16
NOP
06h
TO
q
- value depends on condition,
Start TMR1
TMR3CS TMR2CS TMR1CS 0000 0000
TCON2, 0
T0CKIE
CA1IE
CA1IF
Bit 2
DC4
DC4
BCF
PD
TXIF
TXIE
Bit 1
T0IE
DC3
DC3
NOP
07h
RCIE
RCIF
INTE
Bit 0
DC2
DC2
NOP
PIC17C4X
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
0000 0010
0000 0000
0000 0000
--11 11--
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
xx-- ----
xx0- ----
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
Power-on
Value on
Reset
NOP
DS30412C-page 81
08h
other resets
Value on all
0000 0000
0000 0000
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
0000 0010
0000 0000
0000 0000
--11 qq--
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uu-- ----
uu0- ----
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
NOP
00h
(Note1)

Related parts for PIC17C42