RE: Bit set / bit clear instruction
Guillaume Peron <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi, OK, but the PowerPC is able to clear or set a bit in a register : * let clear bit #N in register Rx : rlwinm rX,rX,0,N+1,N-1 * let set bit #N in register Rx : li rY,0xFFFF rlwimi rX,rY,0,N,N Dees Randy-rsaf30 <[email protected]> wrote: As a Reduced Instruction Set Computer (RISC) the PowerPC does not implement bit set and clear instructions. A bit set/clear instruction requires that the memory location be read, modified and then written back in a single operation. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Khairul Nizam How can i do a bit control with mpc555 since there is no specific instruction set to do it like the 68hc11.I really need it for switching purpose,to avoid other bit to be affected. [Non-text portions of this message have been removed] ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu SPONSORED LINKS Freescale semiconductor inc Microcontrollers --------------------------------- YAHOO! GROUPS LINKS Visit your group "MPC500" on the web. To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- Guillaume Tél : 33_672737487 --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. [Non-text portions of this message have been removed] ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MPC500/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/