Advertisement
gunigma

uC_1

Jan 7th, 2019
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .org 0x00
  2.     LJMP INIT;  // inicjalizacja
  3.  
  4. .org 0x03       //przerwanie zewnętrzne - początek procedury
  5.     LJMP EXTERNAL_IRQ
  6.  
  7. .org 0x23       // przerwanie z portu szeregowego - początek procedury
  8.     LJMP SERIAL_IRQ
  9.  
  10. .org 0x1000   // ciało programu
  11.  
  12. INIT
  13.     SETB ES     //zezwolenie na przerwanie z portu szeregowego
  14.     SETB EA     // ogólnie włączenie obsługi przerwań
  15.     CLR SM0
  16.     SETB SM1    // ustawienie transmisji szeregowej na tryb 1 : asynchroniczna 8 bitów
  17.     SETB SM2    // podobno warto przy asynchronicznej
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement