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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 44
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 39
3-22 FLEX Alphanumeric Chip MC68175 Interface
Software Development
Porting FLEX One-Way Stack to the MC68328 MPU
/* Create Message Filter Module */
ptr4 = (FILTER_STRUCT *) _malloc((UVAR32)sizeof(FILTER_STRUCT));
ptr3->mmlite_hdr.next = (UVAR8*) ptr4;
ptr4->filter_hdr.size = sizeof(FILTER_STRUCT);
ptr4->filter_hdr.flag = 0;
ptr4->filter_hdr.type = 4;
ptr4->filter_data.hdlPoolAddress = (void*)
_malloc((UVAR32)16 * sizeof(UCHAR));
ptr4->filter_data.maxHdls = 1;
ptr4->filter_data.filterOptions = 1;
ptr4->filter_data.numSpare = 33;
/* Create FLEXchip Initialization Module */
ptr5 = (FLEXCHIP_STRUCT *)
_malloc((UVAR32)sizeof(FLEXCHIP_STRUCT));
ptr4->filter_hdr.next = (UVAR8*) ptr5;
ptr5->flexchip_hdr.size = sizeof(FLEXCHIP_STRUCT);
ptr5->flexchip_hdr.flag = 1;
ptr5->flexchip_hdr.type = 3;
ptr5->flexchip_hdr.next = NULL;
ptr5->flexchip_data.Major = 0x30;
ptr5->flexchip_data.Minor = 0x30;
ptr5->flexchip_data.reserved = 0;
ptr5->flexchip_data.cmapSize = 0x2B;
/*
* These are packets of information to be sent out to configure
* the FLEXchip IC. Please refer to FLEXchip User’s Manual on
* how to construct these parameters.
*/
ptr5->cmds[0] = 0x010100D8;/* Configuration packet */
ptr5->cmds[1] = 0x03400000;/* All frame mode */
ptr5->cmds[2] = 0x0400FFFF;/* Reserved */
ptr5->cmds[3] = 0x05000000;/* Reserved */
ptr5->cmds[4] = 0x0F000700;/* Receiver line control */
ptr5->cmds[5] = 0x10000132;/* Off settings */
ptr5->cmds[6] = 0x11000132;/* Warm-up 1 setting */
ptr5->cmds[7] = 0x12000132;/* Warm-up 2 setting */
ptr5->cmds[8] = 0x13000132;/* Warm-up 3 setting */
ptr5->cmds[9] = 0x14000132;/* Warm-up 4 setting */
Example 3-10 Function BuildInitBuffer() (Continued)
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Vista de página 39
1 2 ... 35 36 37 38 39 40 41 42 43 44

Comentários a estes Manuais

Sem comentários