MB91F465XA EMULATION
Chapter 5 Appendix
MCU-AN-300015-E-V11
- 36 -
© Fujitsu Microelectronics Europe GmbH
Figure 5-2: Reload Timer functions
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics Europe GmbH */
…
void
Init_rldtmr_3 (uint16_t rldvalue, uint16_t setup){
TMCSR3_CNTE = 0;
/* stop reload Timer */
TMRLR3 = rldvalue;
/* set reload value */
TMCSR3 = setup;
}
void
start_rldtmr_3 (void){
TMCSR3_TRG = 1;
/* start count operation */
}
void
enable_rldtmr_3 (void){
TMCSR3_CNTE = 1;
/* enable reload Timer operation (waiting for trigger) */
}
…