Xc878 product presentation
Download
1 / 7

XC878 Product Presentation - PowerPoint PPT Presentation


  • 87 Views
  • Uploaded on

XC878 Product Presentation. Multiplication/Division Unit (MDU). Operating Phases of the MDU. Phase 1: Load Registers - set SYSCON0.RMAP bit to 1 to access MDU register; - set MD0-MD5 to operands value according to type of operation. Operating Phases of the MDU. Phase 2: Execute calculation

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' XC878 Product Presentation' - randi


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Xc878 product presentation

XC878 Product Presentation

Multiplication/Division Unit (MDU)


Operating phases of the mdu
Operating Phases of the MDU

  • Phase 1: Load Registers

    - set SYSCON0.RMAP bit to 1 to access MDU register;

    - set MD0-MD5 to operands value according to type of operation.


Operating phases of the mdu1
Operating Phases of the MDU

  • Phase 2: Execute calculation

    - set the desired MDUCON.OPCODE

    - set MDUCON.RSEL to 1.

    - set the MDUCON.START bit to start calculation


Operating phases of the mdu2
Operating Phases of the MDU

  • Phase 3: Read result from the MRx registers

    - check the MDUSTAT.BSY is 0 which indicate calculation is finished

    - set the MDUCON.RSEL to 0 to read out the result from MRx register.


Sample code of mdu 01 example
Sample code of MDU_01 example

  • A subroutine for unsigned 16-bit multiplication in MDU_01 example.


Mdu example hot
MDU_Example HOT

  • In the MDU_01 example, the main.c will do unsigned 16bit multiplication, unsigned 32bit division, signed 16bit multiplication and Arithmetic right shift. The result obtained will stored in bb, aa, cc and dd respectively, which could be observed using the debugger.


ad