PIC16C765T-I/L Datasheet

  • PIC16C765T-I/L

  • IC MCU OTP 8KX14 USB 44PLCC

  • 4945.70KB

  • 165页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16C745/765
6.2
Using Timer0 with an External Clock
The PSA and PS<2:0> bits (OPTION_REG<3:0>) deter-
mine the prescaler assignment and prescale ratio.
When assigned to the Timer0 module, all instructions
writing to the TMR0 register (e.g.
CLRF 1, MOVWF 1,
BSF 1,x....etc.)
will clear the prescaler. When assigned
to WDT, a
CLRWDT
instruction will clear the prescaler
along with the watchdog timer. The prescaler is not
readable or writable.
Note:
Writing to TMR0, when the prescaler is
assigned to Timer0, will clear the prescaler
count, but will not change the prescaler
assignment.
When no prescaler is used, the external clock input is
the same as the prescaler output. The synchronization
of T0CKI with the internal phase clocks is accom-
plished by sampling the prescaler output on the Q2 and
Q4 cycles of the internal phase clocks. Therefore, it is
necessary for T0CKI to be high for at least 2Tosc (and
a small RC delay of 20 ns) and low for at least 2Tosc
(and a small RC delay of 20 ns). Refer to the electrical
specification of the desired device.
6.3
Prescaler
There is only one prescaler available which is mutually
exclusively shared between the Timer0 module and the
watchdog timer. A prescaler assignment for the Timer0
module means that there is no prescaler for the watch-
dog timer, and vice-versa. This prescaler is not readable
or writable (see Figure 6-1).
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 fol-
lowed even if the WDT is disabled.
EXAMPLE 6-1:
CHANGING PRESCALER (TIMER0鈫扺DT)
1)
BSF
MOVLW
MOVWF
BCF
CLRF
BSF
MOVLW
MOVWF
CLRWDT
b鈥檟xxx1xxx鈥?/div>
OPTION_REG
STATUS, RP0
STATUS, RP0
b鈥檟x0x0xxx鈥?/div>
OPTION_REG
STATUS, RP0
TMR0
STATUS, RP1
b鈥檟xxx1xxx鈥?/div>
OPTION_REG
;Bank1
;Select clock source and prescale value of
;other than 1:1
;Bank0
;Clear TMR0 and prescaler
;Bank1
;Select WDT, do not change prescale value
;
;Clears WDT and prescaler
;Select new prescale value and WDT
;
;Bank0
2)
3)
4)
5)
6)
7)
8)
9)
Lines 2 and 3 do
NOT have to be
included if the final
desired prescale
value is other than
1:1. If 1:1 is the final
desired value, then a
temporary prescale
value is set in lines 2
and 3 and the final
prescale value will
be set in lines 10
and 11.
10) MOVLW
11) MOVWF
12) BCF
TABLE 6-1:
Address
01h,101h
0Bh,8Bh,
10Bh,18Bh
81h,181h
REGISTERS ASSOCIATED WITH TIMER0
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
xxxx xxxx
INTE
T0SE
RBIE
PSA
T0IF
PS2
INTF
PS1
RBIF
PS0
0000 000x
1111 1111
Value on all
other resets
uuuu uuuu
0000 000u
1111 1111
TMR0
INTCON
Timer0 module鈥檚 register
GIE
PEIE
T0IE
T0CS
OPTION_REG RBPU INTEDG
Legend:
x
= unknown,
u
= unchanged,
-
= unimplemented locations read as '0'. Shaded cells are not used by Timer0.
DS41124A-page 44
Advanced Information
1999 Microchip Technology Inc.

PIC16C765T-I/L 产品属性

  • Microchip

  • 8-bit Microcontrollers (MCU)

  • PIC

  • PIC16

  • 8 bit

  • 24 MHz

  • 14 KB

  • 256 B

  • Yes

  • 4.35 V to 5.25 V

  • PLCC-44

  • SMD/SMT

  • 8 bit

  • 8

  • 256 B

  • 3.87 mm

  • USART, USB

  • 16.59 mm

  • + 85 C

  • - 40 C

  • 33

  • 3 bit

  • Reel

  • EPROM

  • 500

  • 5.25 V

  • 4.35 V

  • 16.59 mm

PIC16C765T-I/L相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    Microcontroller
    MICROCHIP
  • 英文版
    Microcontroller 
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM-Based 8-Bit CMOS Microcontroller
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    ETC
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    28-Pin Programmable Mixed Signal Controller
    Microchip
  • 英文版
    EPROM Memory Programming Specification
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
    MICROCHIP

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:
技术客服:

0571-85317607

网站技术支持

13606545031

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!