| 数据搜索系统,热门电子元器件搜索 |
|
ATtiny5 数据表(PDF) 22 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATtiny5 数据表(HTML) 22 Page - ATMEL Corporation |
|
22 / 168 page ![]() 22 8127C–AVR–10/09 ATtiny4/5/9/10 6.5.3 CLKPSR – Clock Prescale Register • Bits 7:4 – Res: Reserved Bits These bits are reserved and will always read as zero. • Bits 3:0 – CLKPS[3:0]: Clock Prescaler Select Bits 3 - 0 These bits define the division factor between the selected clock source and the internal system clock. These bits can be written at run-time to vary the clock frequency and suit the application requirements. As the prescaler divides the master clock input to the MCU, the speed of all syn- chronous peripherals is reduced accordingly. The division factors are given in Table 6-4. To avoid unintentional changes of clock frequency, a protected change sequence must be fol- lowed to change the CLKPS bits: 1. Write the signature for change enable of protected I/O register to register CCP 2. Within four instruction cycles, write the desired value to CLKPS bits At start-up, CLKPS bits are reset to 0b0011 to select the clock division factor of 8. If the selected clock source has a frequency higher than the maximum allowed the application software must make sure a sufficient division factor is used. To make sure the write procedure is not inter- rupted, interrupts must be disabled when changing prescaler settings. Bit 7 6 5 4 3210 0x36 – – – – CLKPS3 CLKPS2 CLKPS1 CLKPS0 CLKPSR Read/Write R R R R R/W R/W R/W R/W Initial Value 0 0 0 0 0011 Table 6-4. Clock Prescaler Select CLKPS3 CLKPS2 CLKPS1 CLKPS0 Clock Division Factor 00 00 1 00 01 2 00 10 4 0 0 1 1 8 (default) 01 00 16 01 01 32 01 10 64 0 1 1 1 128 1 0 0 0 256 10 01 Reserved 10 10 Reserved 10 11 Reserved 11 00 Reserved 11 01 Reserved 11 10 Reserved 11 11 Reserved |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |