ButterflyMP3

BCD.c File Reference

AVR Butterfly BCD conversion algorithms. More...

Go to the source code of this file.

Functions

char CHAR2BCD2 (char input)
 Function name : CHAR2BCD2.

Detailed Description

AVR Butterfly BCD conversion algorithms.

Author:
ATMEL Norway
  Target(s)...: ATmega169
  Compiler....: IAR EWAAVR 2.28a
  Revisions...: 1.0

YYYYMMDD - VER. - COMMENT - SIGN. 20030116 - 1.0 - Created - KS

  
Id:
BCD.c,v 1.4 2007/06/04 15:11:27 brokentoaster Exp
Author:
ATMEL Norway
Target(s)...: ATmega169
Compiler....: IAR EWAAVR 2.28a
Revisions...: 1.0

YYYYMMDD - VER. - COMMENT - SIGN. 20030116 - 1.0 - Created - KS

Id:
BCD.h,v 1.2 2007/06/04 15:11:27 brokentoaster Exp

Definition in file BCD.c.


Function Documentation

char CHAR2BCD2 ( char  input)

Function name : CHAR2BCD2.

Returns:
Binary coded decimal value of the input (2 digits)
Parameters:
inputValue between (0-99) to be encoded into BCD

Convert a character into a BCD encoded character. The input must be in the range 0 to 99. The result is byte where the high and low nibbles contain the tens and ones of the input.

Definition at line 37 of file BCD.c.

Referenced by ADC2Temp(), ADC2Volt(), and play_track_number().

 All Files Functions Variables Typedefs Enumerations Enumerator Defines