oblig.py

Created by mailystrehel

Created on December 13, 2022

1.32 KB


MBCSTM32C = memoire 4go

decimal(10) - hexad(16) - binaire(2)
0-0-0000
1-1-0001
2-2-0010
3-3-0011
4-4-0100
5-5-0101
6-6-0110
7-7-0111
8-8-1000
9-9-1001
10-A-1010
11-B-1011
12-C-1100
13-D-1101
14-E-1110
15-F-1111

00 mode entrer 

00 entrer analogique (voltmetre)
01 entrer flotante : resistance de tirage externe
10 entrer tirage : resistence interne

10 mode sortie

00 sortie standart P.P => 0 à 5V
01 sotie standart CO => 0

Traz=1/fckpsc*(Psc+1)(Arr+1)

fckcnt=fckpsc(10^6)/psc+1
PSC+1=fckpsc/fckcnt
Psc=fckpsc/fckcnt-1

Traz=Arr+1
traz*fckcnt=ARR+1
Arr=traz+fckcnt-1

char 8
short 16
int long float 32

char -128 à 127 unsignedchar 0 à 255
short -32768 à 32767 unsignedshort 0 à 65535

& - ^(exclusif) - /(inclusif)force à 1
O+O=0-0-0
0+1=0-1-1
1+0=0-1-1
1+1=1-0-1

force a 0 =till complement a 1

autoriser interruption timer 3
NVIC_EnableIRQ(TIM3_IRQN);

valider interuption RAZ:
registre dier (Bit uie)

Programmer timer 3:
  Activer horloge 
  Mise en fonctionnement avec CR1
 
Quelles sont les opérations à effectuer pour que le TIMER3 puisse générer une
interruption périodique à la remise à 0 de CNT et à la détection des fronts sur
la voie 2 3 (TIM3_CH3)?
Il faut autoriser linterruption timer3 vis-à-vis du contrôleur NVIC et dans
le paramétrage du timer 3 il faut activer les drapeaux UIE et CC3IE.  







During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.