| Moteur de recherche de fiches techniques de composants électroniques |
|
STM8S Fiches technique(PDF) 122 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM8S Fiches technique(HTML) 122 Page - STMicroelectronics |
|
122 / 467 page ![]() 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) |
|
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 |
| 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 |