Maxim-integrated 73S12xxF Software Manual de usuario Pagina 29

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 93
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 28
UG_12xxF_016 73S12xxF Software User Guide
Rev. 1.50 29
Where MONTH is defined as: enum { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG,
SEP, OCT, NOV, DEC }; and RTC_INTERVAL is defined as:
enum {HALF_SEC, ONE_SEC, TWO_SEC, FOUR_SEC, EIGHT_SEC, NO_INT};
Parameters Sec: Output parameter
Current second unit.
Min : Output parameter
Current minute unit.
Hour: Output parameter
Current hour unit.
Date: Output parameter
Current date unit.
Month: Output parameter
Current month unit as specified in the enum MONTH type.
Year: Output parameter
Current year unit, e.g. 2005.
TicInterval: Output parameter
Tic interval as HALF_SEC, ONE_SEC or TWO_SEC, defined in RTC_INTERVAL.
IntInterval: Output parameter
Interrupt interval as defined in RTC_INTERVAL.
Return Codes None.
RTCClk_SetTIME ()
Purpose Set time and start clocking immediately. Time conversion is done by the Gregorian/Julian
conversion method as defined on website: http://webexhibits.org/calendars/calendar-
christian.html.
Synopsis Bbool RTCClk_SetTIME ( struct C_RTC_t xdata *RTC_Time )
struct C_RTC_t
{
Unsigned char Sec;
Unsigned char Min;
Unsigned char Hour;
Unsigned char Date;
enum MONTH Month;
Unsigned integer Year;
enum RTC_INTERVAL TicInterval; //Tic interval - 1, 1/2 or 2 sec
enum RTC_INTERVAL IntInterval; //int interval. NO_INT=disable int.
};
Where MONTH is defined as: enum { JAN=1, FEB, MAR, APR, MAY, JUN, JUL,
AUG, SEP, OCT, NOV, DEC }; and RTC_INTERVAL is defined as: enum
{HALF_SEC, ONE_SEC, TWO_SEC, FOUR_SEC, EIGHT_SEC, NO_INT };
Parameters Sec: Input parameter
Current second unit.
Min: Input parameter
Current minute unit.
Hour: Input parameter
Current hour unit.
Date: Input parameter
Current Date unit.
Month: Input parameter
Current month unit as specified in the enum MONTH type.
Vista de pagina 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 92 93

Comentarios a estos manuales

Sin comentarios