Revision: 1295
Author: robhamerling
Date: Sat Sep  5 12:13:38 2009
Log:
  Added chapter about aliases for enhance CCP modules to be able access
  these as legacy CCP modules (with corresonding register and subfield  
names).


http://code.google.com/p/jallib/source/detail?r=1295

Modified:
  /trunk/doc/html/devicefiles.html

=======================================
--- /trunk/doc/html/devicefiles.html    Sat Aug  8 02:29:47 2009
+++ /trunk/doc/html/devicefiles.html    Sat Sep  5 12:13:38 2009
@@ -428,6 +428,40 @@
  difference in register naming is not issue, on the contrary:
  a compiler message will inform you when you included the wrong library.

+<- -------- ->
+
+<h3>Names for registers and subfields of CCP modules</h3>
+<p>There are CCP modules and enhanced CCP modules.
+The first is also called 'legacy' CPP modules in this document.
+Most legacy CCP modules have registers names starting with CCP,
+most registers of enhanced CCP modules start with ECCP.
+The same is true for subfields of these registers.
+<p>However there are many deviations from these rules and contradictions
+between PMPLAB .dev files and the datasheets!
+
+<p>Enhanced CCP modules can be used as legacy CCP modules,
+in particular for PWM operations.
+For this purpose a number aliases are declared which allow a PWM library
+to access the CCP registers and subfields with legacy names.
+<ul>
+<li>ECCPxCON has alias CCPxCON (x in range 1..10).
+<li>ECCPxCON subfield EDCxB has alias DCxB
+<li>EXXPxCON subfield ECCPxM has alias CCPxM
+<li>ECCPRx has alias CCPRx,
+ECCPRxH and ECCPRxL have aliases CCPRxH and CCPRxL.
+</ul>
+Exception: for PICs with both an CCP1CON and a ECCP1CON register
+ECCP1CON has alias CCP2CON, EDC1B subfiled has alias DC2B,
+ECCPxM has alias CCP2xM
+(18f448,4480,458,4580,4585,4680,4682,4685).
+With these aliases the enhanced CCP module can be accessed as second
+(legacy) CCP module.
+
+<p>Some PICs have the CCPxCON 2-bits subfield DCxB defined
+as 2 separate bits CCPxX and CCPxY.
+For compatibility with other PICs a 2 bits field DCxB has been added.
+(16F91x,946,18F2321,2480,2580,4321,4480,4580).
+

  <h3>Names of ANSEL bits</h3>
  <p>For the selection of the ADC channel the ADC library has to set the

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to