| Electronic Components Datasheet Search |
|
C8051F360 Datasheet(PDF) 267 Page - Silicon Laboratories |
|
|
|||||||||||||||||||||||||||||
C8051F360 Datasheet(HTML) 267 Page - Silicon Laboratories |
|
267 / 288 page ![]() Table 22.2. PCA0CPM Register Settings for PCA Capture/Compare Modules Rev. 1.0 267 C8051F360/1/2/3/4/5/6/7/8/9 22.2.1. Edge-triggered Capture Mode In this mode, a valid transition on the CEXn pin causes PCA0 to capture the value of the PCA0 counter/ timer and load it into the corresponding module's 16-bit capture/compare register (PCA0CPLn and PCA0CPHn). The CAPPn and CAPNn bits in the PCA0CPMn register are used to select the type of transi- tion that triggers the capture: low-to-high transition (positive edge), high-to-low transition (negative edge), or either transition (positive or negative edge). When a capture occurs, the Capture/Compare Flag (CCFn) in PCA0CN is set to logic ‘1’ and an interrupt request is generated if CCF interrupts are enabled. The CCFn bit is not automatically cleared by hardware when the CPU vectors to the interrupt service routine, and must be cleared by software. If both CAPPn and CAPNn bits are set to logic ‘1’, then the state of the Port pin associated with CEXn can be read directly to determine whether a rising-edge or falling-edge caused the capture. PCA0L PCA0CPLn PCA Timebase CEXn Crossbar Port I/O PCA0H Capture PCA0CPHn 0 1 0 1 PCA Interrupt PCA0CPMn P W M 1 6 n E C O M n E C C F n T O G n P W M n C A P P n C A P N n M A T n PCA0CN C F C R C C F 0 C C F 2 C C F 1 C C F 5 C C F 4 C C F 3 Figure 22.4. PCA Capture Mode Diagram Note: The signal at CEXn must be high or low for at least 2 system clock cycles to be recognized by the hardware. PWM16 ECOM CAPP CAPN MAT TOG PWM ECCF Operation Mode XX 1 0 0 0 0 X Capture triggered by positive edge on CEXn XX 0 1 0 0 0 X Capture triggered by negative edge on CEXn XX 1 1 0 0 0 X Capture triggered by transition on CEXn X 1 0 0 1 0 0 X Software Timer X 1 0 0 1 1 0 X High Speed Output X 1 0 0 0 1 1 X Frequency Output 0 1 0 0 0 0 1 0 8-Bit Pulse Width Modulator 1 1 0 0 0 0 1 0 16-Bit Pulse Width Modulator X = Don’t Care |
|
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 |