Renesas MN4 Spécifications Page 7

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 33
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 6
V850E2/MN4 UARTJ Control
R01AN0926EJ0100 Rev.1.00 Page 7 of 30
Feb 07, 2012
4. Sample Application
This section explains how to set up the UARTJ functions.
4.1 Flow Charts
The flow charts of this sample program are given below.
4.1.1 Main Processing
The main processing disables maskable interrupts first. After each setup ends, the maskable interrupts and
transmit/receive status interrupts are enabled. The main loop processing repeatedly controls transmission/reception and
awaits the end of FIFO transmission/reception.
START
Start program
DI
Disable maskable interrupts
EI
Enable maskable interrupts
FLAGS CLEAR
Clear user flag in internal RAM,
indicating end of transmission/
reception
InitializationMain loop
Initialize ports
PORT INITIAL
Initialize UARTJ1 transmission and
enable transmit interrupts
TRANSMIT INITIAL
Initialize UARTJ3 reception and
enable receive interrupts
RECEIVE INITIAL
NO
YES
Start communication
TRANSMIT START
APPLICATION INITIAL
Initialize variables
OVER?
Await end of transmission/reception
SYSTEM INITIAL
Initialize system
Figure 4.1 Main Processing Flowchart
Vue de la page 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 32 33

Commentaires sur ces manuels

Pas de commentaire