| Electronic Components Datasheet Search |
|
STC12LE5616AD Datasheet(PDF) 247 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5616AD Datasheet(HTML) 247 Page - STCmicro Technology Co,.Ltd |
|
247 / 377 page ![]() 10.3 PCA Modules Operation Mode The operation mode of PCA modules set as shown in the below table. Setting the operation mode of PCA modules CCAPMn register n = 0,1 - ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn Function of PCA modules 0 0 0 0 0 0 0 No operation 1 0 0 0 0 1 0 8-bit PWM, no interrupt 11 0 0 0 1 1 8-bit PWM output, interrupt can be generated on rising edge. 10 1 0 0 1 1 8-bit PWM output, interrupt can be generated on falling edge. 11 1 0 0 1 1 8-bit PWM output, interrupt can be generated on both rising and falling edges. X1 0 0 0 0 X 16-bit Capture Mode, caputre triggered by the rising edge on CCPn/PCAn pin X0 1 0 0 0 X 16-bit Capture Mode, capture triggered by the falling edge on CCPn/PCAn pin X1 1 0 0 0 X 16-bit Capture Mode, capture triggered by the transition on CCPn/PCAn pin 1 0 0 1 0 0 X 16-bit software timer 1 0 0 1 1 0 X 16-bit high-speed output 10.3.1 PCA Capture Mode To use one of the PCA modules in the capture mode either one or both of the CCAPM bits – CAPPn and CAPNn, for the module must be set. The external CCPn input (CCP0/P3.7, CCP1/P3.5) for the module is sampled for a transition. When a valid transition occurs, the PCA hardware loads the value of the PCA counter register(CH and CL) into the module’s capture registers(CCAPnH and CCAPnL). If the CCFn bit for the module in the CCON SFR and the ECCFn bit in the CCAPMn SFR are set then an interrupt will be generated. CF CR CCF1 CCF0 ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CH CL CCAPnH CCAPnL CCPn 00 0 0 Capture PCA interrupt CCON (address:D8H) CCAPMn, n=0,1,2,3 Address: DAh, DBh, DCh, DDh PCA Capture Mode CCF3 CCF2 247 |
|
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 |