Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
722 B
2
Indexable
Never
v
#include <mspa30_h>
unsigned jat tranzitii:
int main(void)
franzitin- 0;
WNDTCTL - IDTPW I HRTHRLDin
PMSCTLO 8= -LOCKLPM5;
// stop watchdog timer
// sonfieucars Bentou pcoRlene 1
PEDIR 1- BIT3; // p6.3 pin digital de issice
POUT 8-- BIT?; // p6.3 pin digital de insire
P6DIR 1- BITG: //p6.6 iesire. Rentcy led P6OUT [= EIT6; // p6.6 insics, Rentcy led
PADIR &=~ BIT4; // p4.4 pin digital de intracCh de pulldown
PAREN = BIT4; // cez de pulldown
POUT 8=~ BIT4; // cez de pulldown
PAIES 8=~BIT4; // confieucan genecarea moei intreurperi la tranzitia din low in high a lui p4.4
PATE - BIT4; //astivam generarea. intreurpecia
PAIFG &=~BIT4; //aducem la 0 valgarea Bitului care indica o rosibila intrerupere.
ssnerata de p4.4