Changing MUX Values
Anonymous
Not applicable
Mar 28, 2011
03:28 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Mar 28, 2011
03:28 AM
Question: How do I Change the Second Level MUX or ACol1mux Value?
Answer:
The second level MUX or Acol1Mux value can be changed by the bit-banging register ABF_CR - analog output buffer control register. This register happens to be a write-only register. To change the value of a write-only register, shadow registers need to be used.
1. Declare a variable to act as the shadow register - for example, MuxShadow.
2. Initialize the shadow register to have the same value as the ABF_CR register.
MuxShadow = ABF_CR
3. Do the corresponding operation on the shadow register MuxShadow to get the value for ABF_CR. For example, if bit 7 of ABF_CR ( Acol1Mux value) needs to be changed to 1,
MuxShadow or 80h
4. Now, move the value of MuxShadow into ABF_CR.
Labels
- Tags:
- psoca 1
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous