Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

AN413 Fiches technique(PDF) 12 Page - STMicroelectronics

No de pièce AN413
Description  Initialization of the ST9
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN413 Fiches technique(HTML) 12 Page - STMicroelectronics

Back Button AN413 Datasheet HTML 8Page - STMicroelectronics AN413 Datasheet HTML 9Page - STMicroelectronics AN413 Datasheet HTML 10Page - STMicroelectronics AN413 Datasheet HTML 11Page - STMicroelectronics AN413 Datasheet HTML 12Page - STMicroelectronics AN413 Datasheet HTML 13Page - STMicroelectronics AN413 Datasheet HTML 14Page - STMicroelectronics AN413 Datasheet HTML 15Page - STMicroelectronics AN413 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 45 page
background image
ST9 basic system configuration
AN413
12/45
Doc ID 1875 Rev 2
The Baud Rate Generator Register, BRGR, specifies a 16-bit division ratio.
Example:
BF DC 00 4E ldw s_brgr,#DIV_9600
This example specifies a division ratio yielding 9600 Bauds with a 24 Mhz external clock.
Writing to a Baud Rate Generator Register immediately disables and resets both the SCI
Baud Rate generator, the transmitter and receiver circuitry. After writing to the remaining
Baud Rate Generator Register, the transmitter and receiver circuits are enabled. The Baud
Rate Generator will load the new value and start counting.
To initialize the SCI, user should first initialize one Baud Rate Generator Divisor Register.
This will reset all SCI circuitry. Initialize all other SCI registers for the desired operating
mode. To enable the SCI, initialize the remaining Baud Rate Generator Register.
The Address Compare Register, ACR, contains an 8-bit value which may be used as a
match against which a received address may be tested to set the Receive Address Pending
bit.
Example:
5C 0D ld s_acr,#RETURN
This will cause the Receive Address Pending bit to be set if an End of Command character
bit-pattern is received.
The Interrupt Vector Register, IVR, defines the most significant 5 bits of the vector table byte
address. It thus points to the first of four vector table word address entries.
Example:
4C 00x ld s_ivr,#SCI_IT
In this example, after the external symbol has been linked in, the Vector Table entry address
will be loaded into IVR at execution time.
The Interrupt Mask Register, IMR, contains five interrupt masking bits and two End of Block
DMA status bits. It also selects the shift register or holding register as source of the
transmitter register empty interrupt.
Example:
6C 05 ld s_imr,#00000101b
In this example the interrupt pending bits are reset, the Transmitter data interrupt is masked,
and the Receiver data, data error, and address interrupts are unmasked.
The Interrupt/DMA Priority Register, IDPR, specifies the Interrupt/DMA priority, selects one
of four Address modes, and controls the emission of Break characters and enables
address/9th bit data mode. It also provides mask bits for Receive and Transmit DMA
transfers.
Example:
9C 04 ld s_idpr,#04h
In this example a priority level of 4 is specified, and Transmitter DMA requests are masked.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com