| 전자부품 데이터시트 검색엔진 |
|
COP8782C 데이터시트(PDF) 10 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
COP8782C 데이터시트(HTML) 10 Page - National Semiconductor (TI) |
|
10 / 28 page ![]() Functional Description (Continued) TLDD11299 – 12 FIGURE 9 TimerCounter Auto Reload Mode Block Diagram TLDD11299 – 13 FIGURE 10 Timer Capture Mode Block Diagram TIMER PWM APPLICATION Figure 11 shows how a minimal component DA converter can be built out of the Timer-Register pair in the Auto-Re- load mode The timer is placed in the ‘‘Timer with auto re- load’’ mode and the TIO pin is selected as the timer output At the outset the TIO pin is set high the timer T1 holds the on time and the register R1 holds the signal off time Setting TRUN bit starts the timer which counts down at the instruc- tion cycle rate The underflow toggles the TIO output and copies the off time into the timer which continues to run By alternately loading in the on time and the off time at each successive interrupt a PWM frequency can be easily gener- ated TLDD11299 – 14 FIGURE 11 Timer Application Control Registers CNTRL REGISTER (ADDRESS X’00EE) The Timer and MICROWIREPLUS control register contains the following bits SL1 SL0 Select the MICROWIREPLUS clock divide-by IEDG External interrupt edge polarity select (0 e rising edge 1 e falling edge) MSEL Enable MICROWIREPLUS functions SO and SK TRUN StartStop the TimerCounter (1 e run 0 e stop) TC3 Timer input edge polarity select (0 e rising edge 1 e falling edge) TC2 Selects the capture mode TC1 Selects the timer mode TC1 TC2 TC3 TRUN MSEL IEDG S1 S0 Bit 7 Bit 0 PSW REGISTER (ADDRESS X’00EF) The PSW register contains the following select bits GIE Global interrupt enable ENI External interrupt enable BUSY MICROWIREPLUS busy shifting IPND External interrupt pending ENTI Timer interrupt enable TPND Timer interrupt pending C Carry Flag HC Half carry Flag HC C TPND ENTI IPND BUSY ENI GIE Bit 7 Bit 0 Addressing Modes REGISTER INDIRECT This is the ‘‘normal’’ mode of addressing for the device The operand is the memory location addressed by the B register or X register DIRECT The instruction contains an 8-bit address field that directly points to the data memory location for the operand IMMEDIATE The instruction contains an 8-bit immediate field as the op- erand REGISTER INDIRECT (AUTO INCREMENT AND DECREMENT) This is a register indirect mode that automatically incre- ments or decrements the B or X register after executing the instruction RELATIVE This mode is used for the JP instruction the instruction field is added to the program counter to get the new program location JP has a range of b31 to a32 to allow a one byte relative jump (JP a 1 is implemented by a NOP instruction) There are no ‘‘pages’’ when using JP all 15 bits of PC are used http www nationalcom 10 |
|
|
링크 URL |
| 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 |