Renesas Renasas Single-Chip Microcomputer SH7086 Informations techniques Page 90

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 108
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 89
Flash Development Toolkit
Method for Using the User Program Mode (SH7086 Application)
6. Sources of the Files for User Program Mode
The main sources of the files for user program mode are shown below.
6.1 Header Files
The files for user program mode use the header files listed below.
(1) Bit rate setting (GenTest.h)
Sets a bit rate.
/* RATE:9600/bps CLOCK:10MHz Main:x2 Peripheral:x2 */
#define MA_BRR_SCI 0x40 /* Bit rate register channel 1 */
The user program mode is connected at 9,600 bps. For this reason, it is necessary that the bit rate
register (BRR) value of the CSI module be set according to the operating clock frequency used. Here,
since the clock frequency is 20 MHz (10 MHz × 2), MA_BRR_SCI is set to 64 (0x40) to obtain a bit rate of
9,600 bps. The relationship between the operating clock frequency and the set value of the BRR register
when the bit rate = 9,600 bps is shown below.
BRR setting Error (%)
Clock frequency
φ
(MHz)
After setting the value of MA_BRR_SCI appropriately to suit the board’s operating clock frequency, build
the source in the HEW to create an S type file of program.
REJ06J0071-0100 /Rev.1.00 2009.2 Page 88 of 106
Vue de la page 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 107 108

Commentaires sur ces manuels

Pas de commentaire