# lib_mcu

Copyright (c) 2003

## Library Usage

### Package Description

### Package Summary

#### Constants

    PLL_3MHz
    PLL_4MHz
    PLL_6MHz
    PLL_8MHz
    PLL_12MHz
    PLL_16MHz
    PLL_18MHz
    PLL_20MHz
    PLL_24MHz
    PLL_32MHz
    PLL_40MHz

#### Global Variables

#### Macros

#### Functions

### Files List

- 5131_drv.h

This file contains the C51 driver definition

- compiler.h

This file redefines dedicated KEIL, RAISONANCE and TASKINKG C51/C251 keywords in order to ensure that any source file can be processed by these compilers.

- ext_5131.h

It defines mask for registers. ---------------------------------------------------------------------------- CHANGES:

- reg_5131.h

This file defines Sfr registers and BIT Registers for AT89C5131 (Keil notation is the reference)

### Included Files

- keil.h

## Types Description

- Bool

    unsigned char

- Byte

    unsigned char

- DWord

    unsigned long int

- Float16

    float

- Int8

    char

- Int16

    int

- Int32

    long int

- Uchar

    unsigned char

- Uint8

    unsigned char

- Uint16

    unsigned int

- Uint32

    unsigned long int

- Union16

    union
    {
      Uint16 w;
      Uint8  b[2];
    }

- Union32

    union
    {
      Uint32 dw; // l changed in dw (double word) because l is used for signed long...
      Uint16 w[2];
      Uint8  b[4];
    }

- Word

    unsigned int

## Constant Macros

### PLL_3MHz

    #define PLL_3MHz             0xF0

PLLDIV value for an oscillator frequency of 3MHz

### PLL_4MHz

    #define PLL_4MHz             0xC0

PLLDIV value for an oscillator frequency of 4MHz

### PLL_6MHz

    #define PLL_6MHz             0x70

PLLDIV value for an oscillator frequency of 6MHz

### PLL_8MHz

    #define PLL_8MHz             0x50

PLLDIV value for an oscillator frequency of 8MHz

### PLL_12MHz

    #define PLL_12MHz            0x30

PLLDIV value for an oscillator frequency of 12MHz

### PLL_16MHz

    #define PLL_16MHz            0x20

PLLDIV value for an oscillator frequency of 16MHz

### PLL_18MHz

    #define PLL_18MHz            0x72

PLLDIV value for an oscillator frequency of 18MHz

### PLL_20MHz

    #define PLL_20MHz            0xB4

PLLDIV value for an oscillator frequency of 20MHz

### PLL_24MHz

    #define PLL_24MHz            0x10

PLLDIV value for an oscillator frequency of 24MHz

### PLL_32MHz

    #define PLL_32MHz            0x21

PLLDIV value for an oscillator frequency of 32MHz

### PLL_40MHz

    #define PLL_40MHz            0xB9

PLLDIV value for an oscillator frequency of 40MHz

## Global Variables

## Function Macros

## Functions