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

X  

STM8S Fiches technique(PDF) 122 Page - STMicroelectronics

No de pièce STM8S
Description  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S Fiches technique(HTML) 122 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 118Page - STMicroelectronics STM8S Datasheet HTML 119Page - STMicroelectronics STM8S Datasheet HTML 120Page - STMicroelectronics STM8S Datasheet HTML 121Page - STMicroelectronics STM8S Datasheet HTML 122Page - STMicroelectronics STM8S Datasheet HTML 123Page - STMicroelectronics STM8S Datasheet HTML 124Page - STMicroelectronics STM8S Datasheet HTML 125Page - STMicroelectronics STM8S Datasheet HTML 126Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 122 / 467 page
background image
Beeper (BEEP)
RM0016
122/467
DocID14587 Rev 14
13.2.2
Beeper calibration
This procedure can be used to calibrate the LS 128 kHz clock in order to reach the standard
frequency output, 1 kHz, 2 kHz or 4 kHz.
Use the following procedure:
1.
Measure the LSI clock frequency (refer to Section 12.3.3: LSI clock frequency
measurement above).
2.
Calculate the BEEPDIV value as follows, where A and x are the integer and fractional
part of fLS/8 (in kHz):
BEEPDIV = A-2 when x is less than or equal to A/(1+2*A), else
BEEPDIV = A-1
3.
Write the resulting BEEPDIV value in the BEEPDIV[4:0] bits in the Beeper control/status
register (BEEP_CSR).
13.3
Beeper registers
13.3.1
Beeper control/status register (BEEP_CSR)
Address offset: 0x00
Reset value: 0x1F
7
654
3210
BEEPSEL[1:0]
BEEPEN
BEEPDIV[4:0]
rw
rw
rw
Bits 7:6 BEEPSEL[1:0]: Beep selection
These bits are set and cleared by software to select 1, 2 or 4 kHz beep output when calibration is
done.
00: fLS/(8 x BEEPDIV) kHz output
01: fLS/(4 x BEEPDIV) kHz output
1x: fLS/(2 x BEEPDIV) kHz output
Bit 5 BEEPEN: Beep enable
This bit is set and cleared by software to enable the beep feature.
0: Beep disabled
1: Beep enabled
Bits 4:0 BEEPDIV[4:0]: Beep prescaler divider
These bits are set and cleared by software to define the Beeper prescaler dividing factor BEEPDIV.
0x00: BEEPDIV = 2
0x01: BEEPDIV = 3
...
0x0E: BEEPDIV = 16
0x0F: BEEPDIV = 17
0x1E: BEEPDIV = 32
Note: This register must not be kept at its reset value (0x1F)



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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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