welcome: please sign in
location: Diff for "UsefulFunctions"
Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2010-08-07 09:10:06
Size: 146
Editor: guest
Comment:
Revision 6 as of 2010-08-21 01:43:17
Size: 1102
Editor: guest
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Useful Functions === MICrODEC ===
Line 3: Line 3:
 1. codec intialiization
 2. 16b x 16b unsigned multiply
 3. 16b x 16b signed multiply
 4.
 5.
 6.
 7.
 8.
 9.
==== Useful Functions ====

Although it can be fun to reinvent the wheel, its often a lopsided wheel you end up with. Hopefully some of these functions can save you time and headache. Its also good to copy and paste from a single source, to reduce bugs and typos. This listing will be added to as we do more useful things.

A complete file of these functions is here: [[attachment:useful_functions.asm|useful_functions.asm]]

----
 1. reading and writing to the codec.
 2. reading from the sram - 16b
 3. reading from the sram - 18b
 4. writing to the sram - 16b
 5. writing to the sram - 18b
 6. sampling the switch to change functions - no initialization
 7. sampling the switch to change functions - with initialization
 8. initialization routine
 9. 16b signed x 16b signed to (16b or 32b) signed number
 10. 16b signed x 8b unsigned to (16b or 24b) signed number
 11. 16b signed x 16b unsigned to (16b or 32b) signed number
 12. two's complement of 16b number
 13. two's complement of 24b number
 14. adding signed numbers of different lengths

MICrODEC

Useful Functions

Although it can be fun to reinvent the wheel, its often a lopsided wheel you end up with. Hopefully some of these functions can save you time and headache. Its also good to copy and paste from a single source, to reduce bugs and typos. This listing will be added to as we do more useful things.

A complete file of these functions is here: useful_functions.asm


  1. reading and writing to the codec.
  2. reading from the sram - 16b
  3. reading from the sram - 18b
  4. writing to the sram - 16b
  5. writing to the sram - 18b
  6. sampling the switch to change functions - no initialization
  7. sampling the switch to change functions - with initialization
  8. initialization routine
  9. 16b signed x 16b signed to (16b or 32b) signed number
  10. 16b signed x 8b unsigned to (16b or 24b) signed number
  11. 16b signed x 16b unsigned to (16b or 32b) signed number
  12. two's complement of 16b number
  13. two's complement of 24b number
  14. adding signed numbers of different lengths

UsefulFunctions (last edited 2010-08-21 01:44:55 by guest)