Motorola MC68328 Informações Técnicas Página 38

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 44
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 37
3-20 FLEX Alphanumeric Chip MC68175 Interface
Software Development
Porting FLEX One-Way Stack to the MC68328 MPU
3.2.4 Setting up Initialization Buffer
The host software must provide initialization data to the FLEX One-Way Stack software
in a predefined format for the software for configure the IC after enabling it. The
initialization buffer is set up by function BuildInitBuffer(), as illustrated in Example 3-10.
This function is part of FLEX One-Way Stack software and can be found in data.c.
Please note that data should usually be placed directly in a reserved EPROM section for
code optimization. However, to better illustrate how the buffer is set up, we define
structures and hard-code the initialization data in function BuildInitBuffer(). The host
software must call this function right after enabling the FLEX Alphanumeric Chip.
Example 3-10 Function BuildInitBuffer()
/************************************************************************
* FUNCTION NAME: BuildInitBuffer() *
* Date created: 07/26/96 *
* *
* Description: *
* This function dynamically stores data in the initialization *
* buffer. Note that this function is designed for software testing, *
* and better illustration of how the initialization buffer is *
* constructed. For users' end-products, initialization data can be *
* stored in EEPROM for better performance and reducing code size. *
* *
* INPUT: None *
* OUTPUT: None *
* *
* GLOBAL VARIABLES: *
* init_buffer: Pointer to the beginning of the *
* initialization buffer. *
***********************************************************************/
void BuildInitBuffer()
{
volatile FS_DRIVER_STRUCT *ptr1;
volatile E_NOTIFY_STRUCT *ptr2;
volatile MMLITE_STRUCT *ptr3;
volatile FILTER_STRUCT *ptr4;
volatile FLEXCHIP_STRUCT *ptr5;
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Vista de página 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 44

Comentários a estes Manuais

Sem comentários