Electronic Components Datasheet Search |
|
MG82FX564AE Datasheet(PDF) 84 Page - Megawin Technology Co., Ltd |
|
MG82FX564AE Datasheet(HTML) 84 Page - Megawin Technology Co., Ltd |
84 / 151 page 84 MG82FEL564 Data Sheet MEGAWIN 14.4. Operation Modes of the PCA Table 14-1 shows the CCAPMn register settings for the various PCA functions. Table 14-1. PCA Module Modes ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn Module Function 0 0 0 0 0 0 0 No operation X 1 0 0 0 0 X 16-bit capture by a positive-edge trigger on CEXn X 0 1 0 0 0 X 16-bit capture by a negative-edge trigger on CEXn X 1 1 0 0 0 X 16-bit capture by a transition on CEXn 1 0 0 1 0 0 X 16-bit Software Timer 1 0 0 1 1 0 X 16-bit High Speed Output 1 0 0 0 0 1 0 8-bit Pulse Width Modulator (PWM) 14.4.1. Capture Mode To use one of the PCA modules in the capture mode, either one or both of the bits CAPN and CAPP for that module must be set. The external CEX input for the module is sampled for a transition. When a valid transition occurs the PCA hardware loads the value of the PCA counter registers (CH and CL) into the module‘s capture registers (CCAPnL and CCAPnH). If the CCFn and the ECCFn bits for the module are both set, an interrupt will be generated. Figure 14-4. PCA Capture Mode CCF0 CCF1 CCF2 CCF3 CCF4 CCF5 CR CF CCON ECCFn PWMn TOGn MATn CAPNn CAPPn ECOMn -- CCAPMn, n= 0 to 5 CCAPnL CCAPnH CH CL Capture CEXn (To CCFn) PCA Timer/Counter PCA Interrupt 0 0 0 0 1 1 CAPPn or CAPNn =1 14.4.2. 16-bit Software Timer Mode The PCA modules can be used as software timers by setting b oth the ECOM and MAT bits in the module‘s CCAPMn register. The PCA timer will be compared to the module‘s capture registers, and when a match occurs an interrupt will occur if the CCFn and the ECCFn bits for the module are both set. |
Similar Part No. - MG82FX564AE |
|
Similar Description - MG82FX564AE |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |