Directed Electronics 3200HS Informazioni Techniche Pagina 49

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 99
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 48
SCI to SPI Peripheral Communication in V850ES Microcontrollers
** **************************************************************************
*/
#include "macrodriver.h"
#include "port.h"
#include "timer.h"
#include "serial.h"
/* include for temperature sensors */
#include "temper.h"
/* includes for M-Station I/O */
#include "sw_vkj1.h" /* switch input */
#include "led_vkj1.h" /* LED output */
/*
** **************************************************************************
** MacroDefine
** **************************************************************************
*/
/*
**---------------------------------------------------------------------------
** Abstract:
** Function to check status for error and report problem
**
** Parameters: MD_STATUS status
** if MD_OK, return; if not, display and loop
** Returns:
** None (does not return)
**---------------------------------------------------------------------------
*/
void CheckStatusError(MD_STATUS status)
{
if (status == MD_OK)
return;
led_dig_left(0xE); /* display "E" for Error */
led_dig_right(status & 0x0F); /* display low four bits of error code */
while (1) {
__nop(); /* endless loop */
__nop();
__nop();
}
}
/*
**---------------------------------------------------------------------------
**
** Abstract:
** main function
**
** Parameters:
** None
**
** Returns:
** None
43
Vedere la pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 98 99

Commenti su questo manuale

Nessun commento