| Electronic Components Datasheet Search |
|
SN8P2743KB Datasheet(PDF) 85 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P2743KB Datasheet(HTML) 85 Page - SONiX Technology Company |
|
85 / 136 page ![]() SN8P2740 Series ADC, OP-amp, Comparator 8-Bit Micro-Controller SONiX TECHNOLOGY CO., LTD Page 85 Version 2.0 8.3.5 TC0M MODE REGISTER TC0M is TC0 timer mode control register to configure TC0 operating mode including TC0 pre-scalar, clock source, PWM function…These configurations must be setup completely before enabling TC0 timer. 0B4H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 TC0M TC0ENB TC0rate2 TC0rate1 TC0rate0 TC0CKS TC0DIR TC0PO PWM0OUT Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Bit 0 PWM0OUT: PWM0 output and pulse generator output control bit. TC0PO = 0: 0 = Disable PWM0 output function, and P0.1 is GPIO mode. 1 = Enable PWM0 output function, and PWM0 signal outputs through P0.1 pin. TC0PO = 1: 0 = Stop pulse output, or the end of pulse output cleared automatically. 1 = Enable pulse output. Bit 1 TC0PO: TC0 pulse output function control bit. 0 = Disable. 1 = Enable TC0 pulse output function through P0.1 pin. \ Bit 2 TC0DIR: PWM0 and Pulse generator output phase select bit. 0 = Normal phase. High pulse and low idle status. 1 = Inverse phase. Low pulse and high idle status. Bit 3 TC0CKS: TC0 clock source select bit. 0 = TC0 clock source is internal system clock (Fcpu). 1 = TC0 clock source is high clock source (Fhosc). Bit [6:4] TC0RATE [2:0]: TC0 timer clock source select bits. TC0CKS = 0: 000 = Fcpu/256, 001 = Fcpu/128, 010 = Fcpu/64, 011 = Fcpu/32, 100 = Fcpu/16, 101 = Fcpu/8, 110 = Fcpu/4, 111 = Fcpu/2. TC0CKS = 1: 000 = Fhosc/256, 001 = Fhosc /128, 010 = Fhosc /64, 011 = Fhosc /32, 100 = Fhosc /16, 101 = Fhosc /8, 110 = Fhosc /4, 111 = Fhosc /2. Bit 7 TC0ENB: TC0 timer control bit. 0 = Disable. 1 = Enable. 8.3.6 TC0C COUNTING REGISTER TC0C is TC0 8-bit counter. When TC0C overflow occurs, the TC0IRQ flag is set as “1” and cleared by program. The TC0C decides TC0 interval time through below equation to calculate a correct value. It is necessary to write the correct value to TC0C register and TC0R register first time, and then enable TC0 timer to make sure the fist cycle correct. After one TC0 overflow occurs, the TC0C register is loaded a correct value from TC0R register automatically, not program. 0B5H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 TC0C TC0C7 TC0C6 TC0C5 TC0C4 TC0C3 TC0C2 TC0C1 TC0C0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 The equation of TC0C initial value is as following. TC0C initial value = 256 - (TC0 interrupt interval time * TC0 clock rate) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |