16.25.16 PSC 0 Input Capture Register – PICR0H and PICR0L
16.25.17 PSC 1 Input Capture Register – PICR1H and PICR1L
16.25.18 PSC 2 Input Capture Register – PICR2H and PICR2L
AT90PWM2/3/2B/3B
170
PRFMnx3:0
Description
PSC Input Mode 9: Fixed Frequency Edge Retrigger PSC
1001b
Reserved (do not use)
1010b
1011b
1100b
1101b
PSC Input Mode 14: Fixed Frequency Edge Retrigger PSC and Disactivate
1110b
Output
Reserved (do not use)
1111b
Bit
7
PCST0
Read/Write
R
Initial Value
0
Bit
7
PCST1
Read/Write
R
Initial Value
0
Bit
7
PCST2
Read/Write
R
Initial Value
0
• Bit 7 – PCSTn : PSC Capture Software Trig bit (not implemented on AT90PWM2/3)
Set this bit to trigger off a capture of the PSC counter. When reading, if this bit is set it means
that the capture operation was triggered by PCSTn setting otherwise it means that the capture
operation was triggered by a PSC input.
The Input Capture is updated with the PSC counter value each time an event occurs on the
enabled PSC input pin (or optionally on the Analog Comparator output) if the capture function is
enabled (bit PCAEnx in PFRCnx register is set).
The Input Capture Register is 12-bit in size. To ensure that both the high and low bytes are read
simultaneously when the CPU accesses these registers, the access is performed using an 8-bit
temporary high byte register (TEMP). This temporary register is shared by all the other 16-bit or
12-bit registers.
Note for AT90PWM2/3 : This register is read only and a write to this register is not allowed.
6
5
4
–
–
–
PICR0[7:0]
R
R
R
0
0
0
6
5
4
–
–
–
PICR1[7:0]
R
R
R
0
0
0
6
5
4
–
–
–
PICR2[7:0]
R
R
R
0
0
0
3
2
1
PICR0[11:8]
R
R
R
0
0
0
3
2
1
PICR1[11:8]
R
R
R
0
0
0
3
2
1
PICR2[11:8]
R
R
R
0
0
0
0
PICR0H
PICR0L
R
0
0
PICR1H
PICR1L
R
0
0
PICR2H
PICR2L
R
0
4317I–AVR–01/08
Need help?
Do you have a question about the AT90PWM2 and is the answer not in the manual?